From 8555a686a6e464a033b1b25fd254233fcc216d14 Mon Sep 17 00:00:00 2001 From: DutchEllie Date: Thu, 3 Jun 2021 13:52:53 +0200 Subject: [PATCH] this might break it all --- discord/discord.go | 8 +++++--- discord/main.go | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/discord/discord.go b/discord/discord.go index ddcef4f..1c17b03 100644 --- a/discord/discord.go +++ b/discord/discord.go @@ -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") diff --git a/discord/main.go b/discord/main.go index 3bd6b4f..42b977d 100644 --- a/discord/main.go +++ b/discord/main.go @@ -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()