ignore message sent by bot self on slack channel
This commit is contained in:
@@ -30,7 +30,7 @@ func (d *discord) read(tweetchannel chan<- string) {
|
||||
}
|
||||
|
||||
dgsession.AddHandler(func(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
if m.ChannelID == d.ChannelID {
|
||||
if m.ChannelID == d.ChannelID && m.Author.ID != s.State.User.ID {
|
||||
tweetchannel <- m.Content
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user