|
|
@ -76,7 +76,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { |
|
|
|
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) |
|
|
|
if strings.Contains(m.Content, keyword) { |
|
|
|
if strings.Contains(b.Parts[1], keyword) { |
|
|
|
log.LogDebug("%+v found!", keyword) |
|
|
|
log.LogDebug("%+v found!", keyword) |
|
|
|
b.Command = keyword |
|
|
|
b.Command = keyword |
|
|
|
if !cmd.RequiresAdmin { |
|
|
|
if !cmd.RequiresAdmin { |
|
|
|