test
Signed-off-by: dongl <2725096176@qq.com>
This commit is contained in:
parent
6a6842be4e
commit
44fc4a7395
@ -14,5 +14,5 @@ func SignInBegin(msg *openwechat.Message) {
|
||||
|
||||
func SignInEnd(msg *openwechat.Message){
|
||||
// 发送到微信
|
||||
self.SendTextToGroup("group", "打卡程序结束运行成功!")
|
||||
self.SendTextToGroup("叫啥好呢", "打卡程序结束运行成功!")
|
||||
}
|
7
main.go
7
main.go
@ -23,17 +23,16 @@ 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)
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,8 +0,0 @@
|
||||
package module
|
||||
|
||||
|
||||
import (
|
||||
"github.com/eatmoreapple/openwechat"
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user