Only look for commands directly after @Thanos
This commit is contained in:
@ -76,7 +76,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
for _, cmd := range commands {
|
||||
for _, keyword := range cmd.Keywords {
|
||||
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)
|
||||
b.Command = keyword
|
||||
if !cmd.RequiresAdmin {
|
||||
|
||||
Reference in New Issue
Block a user