kovi-plugin-shindan-maker

Crates.iokovi-plugin-shindan-maker
lib.rskovi-plugin-shindan-maker
version0.1.11
created_at2024-11-04 08:48:12.619741+00
updated_at2025-07-27 03:51:53.367754+00
descriptionKovi 的 ShindanMaker 占卜插件。
homepage
repositoryhttps://github.com/araea/kovi-plugin-shindan-maker
max_upload_size
id1434687
size310,537
nawyjx (araea)

documentation

README

kovi-plugin-shindan-maker

github crates.io

Kovi 的 ShindanMaker 占卜插件。 内置 690+ 占卜项。

前置

  1. 创建 Kovi 项目
  2. 执行 cargo kovi add shindan-maker
  3. src/main.rs 中添加 kovi_plugin_shindan_maker

使用

  1. 发送 神断列表 查看所有指令
  2. 发送指令,如 抽老婆,生成结果
  3. 使用 -t-i 参数指定模式(文 / 图)
  4. 结合 神断帮助-h 自行探索

注意:若无法请求神断网,请使用 VPN。

配置

资源目录 : data/kovi-plugin-shindan-maker/*

首次运行时自动生成。

config.toml - 插件配置

# 频道过滤
[channel]
# 频道白名单(只允许)
white = ["123456789", "987654321"]
# 频道黑名单(排除)
black = ["123456789"]

# 插件配置
[plugin]
# 仅 @ 响应
only_at = false
# 指令前缀, 示例:["!", "。"]
prefixes = []
# 回复时 @
is_at = true
# 回复时引用
is_quote = false
# 神断网区域, 可选: "Jp", "En", "Cn", "Kr", "Th"
domain = "Cn"
# `随机神断` 时提示命令
random_return_command = true
# 排行榜最多显示
rank_max = 30

commands.toml - 指令配置

[[command]]
# 功能(勿改)
function = "插件指令列表"
# 指令名(可增删)
commands = ["神断帮助", "bz"]

shindans.toml - 占卜项

添加 : 使用 添加神断 指令 删除 : 编辑文件或使用 删除神断 指令

致谢


License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 22

cargo fmt