-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[风控小能手]添加COC跑团辅助器插件 #714
[风控小能手]添加COC跑团辅助器插件 #714
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
总的来说我觉得不错,yaml你想改就改,不想改就算了。
plugin/coc/coc.go
Outdated
return | ||
} | ||
// 下载文件 | ||
ctx.SendChain(message.Text("在群文件中找到了歌曲,信息如下:\n", fileSearchName, "\n确认正确后回复“是/否”进行设置")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
歌曲是吧(
uid := ctx.Event.UserID | ||
infoFile := engine.DataFolder() + strconv.FormatInt(gid, 10) + "/" + DefaultJSONFile | ||
if file.IsNotExist(infoFile) { | ||
ctx.SendChain(message.Text("你群还没有布置coc,请相关人员后台布局coc.(详情看用法)")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
布局是吧(
plugin/coc/const.go
Outdated
// DefaultJSONFile COC面板 | ||
DefaultJSONFile = "COC面板.json" | ||
// SettingJSONFile 设置 | ||
SettingJSONFile = "/setting.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要加/
plugin/coc/const.go
Outdated
) | ||
|
||
// 默认的json模版 | ||
type cocJSON struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这种我建议你用yaml,json对汉字支持不好。
先看一眼linit,没人玩,有多少bug现在不知道(小声