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){
// 发送到微信
self.SendTextToGroup("group", "打卡程序结束运行成功!")
self.SendTextToGroup("叫啥好呢", "打卡程序结束运行成功!")
}

View File

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

View File

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