fix: 修复疯狂星期四处理逻辑中的文案注册和回复内容
This commit is contained in:
parent
5b98da8cef
commit
83b0545747
@ -12,7 +12,7 @@ import (
|
||||
|
||||
func init() {
|
||||
handler.RegisterHelpInform("疯狂星期四test", "疯狂星期四", "随机输出疯狂星期四文案")
|
||||
handler.RegisterHandler("疯狂星期四", pickKfc, constants.LEVEL_USER)
|
||||
handler.RegisterHandler("疯狂星期四test", pickKfc, constants.LEVEL_USER)
|
||||
handler.RegisterHelpInform("疯狂星期四文案添加", "疯狂星期四文案添加", "添加疯狂星期四文案")
|
||||
handler.RegisterHandler("疯狂星期四文案添加", storeKfc, constants.LEVEL_TRUSTED)
|
||||
|
||||
@ -106,8 +106,8 @@ func pickKfc(msg model.Message) (reply model.Reply) {
|
||||
|
||||
if count == 0 {
|
||||
return model.Reply{
|
||||
ReplyMsg: "还没有任何疯狂星期四文案,快来添加吧!",
|
||||
ReferOriginMsg: true,
|
||||
ReplyMsg: "",
|
||||
ReferOriginMsg: false,
|
||||
FromMsg: msg,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user