chore(go-wxhelper): add AI command functionality 🤖

Add AI command functionality to handle AI commands in the WeChat plugin. Includes options to enable or disable AI features.
This commit is contained in:
李寻欢
2024-04-12 10:48:46 +08:00
parent f775f1d67d
commit 3da8b327d0
5 changed files with 78 additions and 3 deletions

View File

@@ -42,6 +42,8 @@ func Command(m *plugin.MessageContext) {
command.LeiGodCmd(m.FromUser, msgArray[1], msgArray[2:]...)
case "/肯德基", "/kfc":
command.KfcCrazyThursdayCmd(m.FromUser)
case "/ai":
command.AiCmd(m.FromUser, m.GroupUser, msgArray[1])
default:
utils.SendMessage(m.FromUser, m.GroupUser, "指令错误", 0)
}