package
0.0.0-20241212115551-6b312a513451
Repository: https://github.com/cutereimu/yinyangjade.git
Documentation: pkg.go.dev

# README

GMSR群机器人

配置

第一次启动后,会在 config/net.cutereimu.maplebots 下生成相关配置文件。

  • 配置文件 Config.yml
# 生效的QQ群
qq_groups:
  - 12345678
# 管理员QQ号
admin: 12345678
# 图片超时时间(单位:小时)
image_expire_hours: 72

根据自己的需要修改配置文件后,重启即可。

[!IMPORTANT] 想要正确使用词条功能,必须让本项目的运行目录相对于 Mirai 的运行目录为 ../YinYangJade,即:

$ tree -C -L 2
.
├── mirai
│   ├── libs
│   ├── mcl
│   ├── mcl.jar
│   ├── plugins
├── YinYangJade
│   ├── config.yml
│   ├── YinYangJade

开发相关

中文乱码问题

对于“洗魔方”功能,如遇Linux下中文乱码,请将黑体文件simhei.ttf放入/usr/share/fonts中,然后执行以下shell

# 刷新字体缓存
fc-cache
# 查看是否有黑体
fc-list :lang=zh | grep 黑体

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
only used for special line probability adjustment calculation.
No description provided by the author
No description provided by the author
No description provided by the author
only used for special line probability adjustment calculation.
No description provided by the author
only used for special line probability adjustment calculation.
only used for special line probability adjustment calculation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
INPUT_CATEGORY_MAP 有用的属性,例如: 如果需要力量%,则力量%和全属性%都是有用的属性 如果需要全属性%(尖兵),则除了全属性%以外,力量%|敏捷%|运气%都有用(算作1/3全属性%).
MAX_CATEGORY_COUNT 以下属性最多出现1条或者2条.
OUTCOME_MATCH_FUNCTION_MAP 判断是否满足条件的函数.

# Structs

No description provided by the author

# Type aliases

No description provided by the author