this might break it all
This commit is contained in:
parent
ebbbc3680d
commit
8555a686a6
@ -11,10 +11,12 @@ func (app *application) messageCreate(s *discordgo.Session, m *discordgo.Message
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(m.Content, "!newpepe") {
|
app.LogToConsole(app.commandMux).Execute(s, m)
|
||||||
app.commandMux.Execute(s, m)
|
|
||||||
|
/* if strings.HasPrefix(m.Content, "!newpepe") {
|
||||||
|
app.LogToConsole(app.commandMux).Execute(s, m)
|
||||||
return
|
return
|
||||||
}
|
} */
|
||||||
|
|
||||||
app.limiter.LogInteraction(m.Author.ID, "messagecreate")
|
app.limiter.LogInteraction(m.Author.ID, "messagecreate")
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ func main() {
|
|||||||
app.errorLog.Fatal(err)
|
app.errorLog.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
mux.Handle("newcringe", app.LogToConsole(HandlerFunc(newCringe)))
|
mux.HandleFunc("newcringe", newCringe)
|
||||||
mux.HandleFunc(mux.prefix, app.sendPepe)
|
mux.HandleFunc(mux.prefix, app.sendPepe)
|
||||||
|
|
||||||
/* token, err := app.readAuthToken()
|
/* token, err := app.readAuthToken()
|
||||||
|
Loading…
Reference in New Issue
Block a user