From 0c5d70da8ffcff63d56b8f13c4494b0dc2a66c60 Mon Sep 17 00:00:00 2001 From: pocketjawa Date: Mon, 5 Aug 2019 21:05:30 -0400 Subject: [PATCH] Add Maki Monday command --- commands.go | 6 ++++++ pocketbot.go | 2 ++ 2 files changed, 8 insertions(+) diff --git a/commands.go b/commands.go index 2b97917..a61c829 100644 --- a/commands.go +++ b/commands.go @@ -25,3 +25,9 @@ func getSwear(s *discordgo.Session, m *discordgo.Message, ctx *mux.Context) { } s.ChannelMessageSend(m.ChannelID, resp) } + +//Post the Maki Monday pic! +func makiMonday(s *discordgo.Session, m *discordgo.Message, ctx *mux.Context) { + resp := "https://maki.jawa.moe/monday.png" + s.ChannelMessageSend(m.ChannelID, resp) +} diff --git a/pocketbot.go b/pocketbot.go index fd0adec..791e9bc 100644 --- a/pocketbot.go +++ b/pocketbot.go @@ -53,6 +53,8 @@ func main() { // Register the build-in help command. Router.Route("help", "Display this message.", Router.Help) Router.Route("swear", "Make me swear!", getSwear) + Router.Route("maki", "It's Maki Monday my dudes!", makiMonday) + Router.Route("monday", "It's Maki Monday my dudes!", makiMonday) //Open a connection to Discord err = Session.Open()