This commit is contained in:
Jay 2019-07-13 04:56:11 +00:00
parent 7cc675bfda
commit e8b918f3f0

View File

@ -73,10 +73,10 @@ func messageCreateEvt(s *discordgo.Session, evt *discordgo.MessageCreate) {
for _, it := range acts {
res := selectAction(info, it.Key, it.Value, payload)
// TODO: command result parse message type
cmdmodel.Value = strings.ReplaceAll(cmdmodel.Value, fmt.Sprintf("{{%s}}", it.Origin), res)
}
// TODO: switch case message response format
client.SendMessage(channelID, cmdmodel.Value)
}