update
This commit is contained in:
@@ -29,6 +29,7 @@ func init() {
|
|||||||
server.SetMessageHandler(func(msg *message.MixMessage) *message.Reply {
|
server.SetMessageHandler(func(msg *message.MixMessage) *message.Reply {
|
||||||
//TODO
|
//TODO
|
||||||
//回复消息:演示回复用户发送的消息
|
//回复消息:演示回复用户发送的消息
|
||||||
|
fmt.Println(msg.Content)
|
||||||
text := message.NewText(msg.Content)
|
text := message.NewText(msg.Content)
|
||||||
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
|
return &message.Reply{MsgType: message.MsgTypeText, MsgData: text}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user