Skip to content
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

Closed
wants to merge 8 commits into from

Conversation

fangliuyu
Copy link
Contributor

先看一眼linit,没人玩,有多少bug现在不知道(小声

Copy link
Member

@fumiama fumiama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

总的来说我觉得不错,yaml你想改就改,不想改就算了。

return
}
// 下载文件
ctx.SendChain(message.Text("在群文件中找到了歌曲,信息如下:\n", fileSearchName, "\n确认正确后回复“是/否”进行设置"))
Copy link
Member

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.(详情看用法)"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

布局是吧(

// DefaultJSONFile COC面板
DefaultJSONFile = "COC面板.json"
// SettingJSONFile 设置
SettingJSONFile = "/setting.json"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要加/

)

// 默认的json模版
type cocJSON struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种我建议你用yaml,json对汉字支持不好。

@fangliuyu fangliuyu reopened this Sep 23, 2023
@1YIBAN

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants