mirror of https://github.com/velour/catbase.git
Compare commits
No commits in common. "5df7644229147ac7cf322700883e0144326b0585" and "30f3c26dd2c1279611ef57dcbc5c1fe229d4d2d2" have entirely different histories.
5df7644229
...
30f3c26dd2
|
@ -18,6 +18,10 @@ import (
|
|||
)
|
||||
|
||||
func (b *bot) Receive(conn Connector, kind Kind, msg msg.Message, args ...interface{}) bool {
|
||||
log.Debug().
|
||||
Interface("msg", msg).
|
||||
Msg("Received event")
|
||||
|
||||
// msg := b.buildMessage(client, inMsg)
|
||||
// do need to look up user and fix it
|
||||
if kind == Message && strings.HasPrefix(msg.Body, "help") && msg.Command {
|
||||
|
|
|
@ -192,6 +192,7 @@ func (d *Discord) Serve() error {
|
|||
}
|
||||
|
||||
func (d *Discord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
log.Debug().Msgf("discord message: %+v", m)
|
||||
if m.Author.ID == s.State.User.ID {
|
||||
return
|
||||
}
|
||||
|
@ -215,5 +216,7 @@ func (d *Discord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreate
|
|||
Time: tStamp,
|
||||
}
|
||||
|
||||
log.Debug().Interface("m", m).Interface("msg", msg).Msg("message received")
|
||||
|
||||
d.event(d, bot.Message, msg)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue