This commit is contained in:
cdle
2023-06-27 13:27:04 +08:00
parent 564ced7f4f
commit 3bdbb07ba3
11 changed files with 194 additions and 12 deletions
+3 -3
View File
@@ -85,12 +85,12 @@ func initWebBot() {
}
return false
})
adapter.SetReplyHandler(func(msg map[string]string) string {
adapter.SetReplyHandler(func(msg map[string]interface{}) string {
message := WebMessage{
UserID: msg[core.USER_ID],
UserID: msg[core.USER_ID].(string),
Images: []string{},
Type: "chat",
Content: msg[core.CONETNT],
Content: msg[core.CONETNT].(string),
}
sendWebMessage(&message)
return ""