Signed-off-by: dongl <2725096176@qq.com>
This commit is contained in:
dongl 2022-07-19 09:38:09 +08:00
parent 6a6842be4e
commit 44fc4a7395
3 changed files with 5 additions and 14 deletions

View File

@ -14,5 +14,5 @@ func SignInBegin(msg *openwechat.Message) {
func SignInEnd(msg *openwechat.Message){ func SignInEnd(msg *openwechat.Message){
// 发送到微信 // 发送到微信
self.SendTextToGroup("group", "打卡程序结束运行成功!") self.SendTextToGroup("叫啥好呢", "打卡程序结束运行成功!")
} }

View File

@ -23,17 +23,16 @@ func main() {
// 注册消息处理函数 // 注册消息处理函数
bot.MessageHandler = func(msg *openwechat.Message) { bot.MessageHandler = func(msg *openwechat.Message) {
if msg.IsText() && msg.Content == "专升本英语" { if msg.IsText() && msg.Content == "英语" {
controller.SingleChoice(msg) controller.SingleChoice(msg)
} }
if msg.IsText() && msg.Content == "打卡开启" { if msg.IsText() && msg.Content == "打卡开启" {
module.SignInBegin(msg) controller.SignInBegin(msg)
} }
if msg.IsText() && msg.Content == "打卡关闭" { if msg.IsText() && msg.Content == "打卡关闭" {
module.SignInEnd(msg) controller.SignInEnd(msg)
} }

View File

@ -1,8 +0,0 @@
package module
import (
"github.com/eatmoreapple/openwechat"
)