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
|
||||
}
|
||||
|
||||
if strings.HasPrefix(m.Content, "!newpepe") {
|
||||
app.commandMux.Execute(s, m)
|
||||
app.LogToConsole(app.commandMux).Execute(s, m)
|
||||
|
||||
/* if strings.HasPrefix(m.Content, "!newpepe") {
|
||||
app.LogToConsole(app.commandMux).Execute(s, m)
|
||||
return
|
||||
}
|
||||
} */
|
||||
|
||||
app.limiter.LogInteraction(m.Author.ID, "messagecreate")
|
||||
|
||||
|
@ -80,7 +80,7 @@ func main() {
|
||||
app.errorLog.Fatal(err)
|
||||
}
|
||||
|
||||
mux.Handle("newcringe", app.LogToConsole(HandlerFunc(newCringe)))
|
||||
mux.HandleFunc("newcringe", newCringe)
|
||||
mux.HandleFunc(mux.prefix, app.sendPepe)
|
||||
|
||||
/* token, err := app.readAuthToken()
|
||||
|
Loading…
Reference in New Issue
Block a user