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){
|
func SignInEnd(msg *openwechat.Message){
|
||||||
// 发送到微信
|
// 发送到微信
|
||||||
self.SendTextToGroup("group", "打卡程序结束运行成功!")
|
self.SendTextToGroup("叫啥好呢", "打卡程序结束运行成功!")
|
||||||
}
|
}
|
9
main.go
9
main.go
@ -22,18 +22,17 @@ 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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
package module
|
|
||||||
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/eatmoreapple/openwechat"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user