this might break it all

This commit is contained in:
DutchEllie 2021-06-03 13:52:53 +02:00
parent ebbbc3680d
commit 8555a686a6
2 changed files with 6 additions and 4 deletions

View File

@ -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")

View File

@ -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()