Don't react to bots
This commit is contained in:
parent
5e9f3d2c75
commit
85ac4fe9fe
2
main.go
2
main.go
|
@ -70,7 +70,7 @@ func createBot() (bot *discordgo.Session, err error) {
|
||||||
|
|
||||||
func messageOstmarkHandler(s *discordgo.Session, m *discordgo.MessageCreate) {
|
func messageOstmarkHandler(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||||
|
|
||||||
if m.Author.ID == s.State.User.ID {
|
if m.Author.ID == s.State.User.ID || m.Author.Bot {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue