From e56686ee3c66b60c1cc64a48c9dd64d7eba4e9c8 Mon Sep 17 00:00:00 2001 From: DutchEllie Date: Thu, 3 Jun 2021 12:54:03 +0200 Subject: [PATCH] added newsendpepe --- discord/handlers.go | 4 ++++ discord/main.go | 1 + 2 files changed, 5 insertions(+) diff --git a/discord/handlers.go b/discord/handlers.go index bde38c5..dcd1578 100644 --- a/discord/handlers.go +++ b/discord/handlers.go @@ -5,3 +5,7 @@ import "github.com/bwmarrin/discordgo" func newCringe(s *discordgo.Session, m *discordgo.MessageCreate) { s.ChannelMessageSend(m.ChannelID, "this is a test message right from the new command system!") } + +func newSendPepe(s *discordgo.Session, m *discordgo.MessageCreate) { + s.ChannelMessageSend(m.ChannelID, "cmd not yet working, but this needed to be registered otherwise the code would break") +} diff --git a/discord/main.go b/discord/main.go index c69c5bf..247451d 100644 --- a/discord/main.go +++ b/discord/main.go @@ -65,6 +65,7 @@ func main() { mux := NewCommandMux() mux.prefix = "!newpepe" mux.HandleFunc("newcringe", newCringe) + mux.HandleFunc(mux.prefix, newSendPepe) app := &application{ infoLog: infoLog,