|
|
@ -45,6 +45,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { |
|
|
|
Message: m, |
|
|
|
Message: m, |
|
|
|
Parts: strings.Split(m.Content, " ")[1:], |
|
|
|
Parts: strings.Split(m.Content, " ")[1:], |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
log.LogDebug("%+v", b.Parts) |
|
|
|
for _, cmd := range commands { |
|
|
|
for _, cmd := range commands { |
|
|
|
for _, keyword := range cmd.Keywords { |
|
|
|
for _, keyword := range cmd.Keywords { |
|
|
|
log.LogDebug("Checking if %+v contains %+v", m.Content, keyword) |
|
|
|
log.LogDebug("Checking if %+v contains %+v", m.Content, keyword) |
|
|
|