From 538db40037b572a7323258b8b84613ae2e0a4f20 Mon Sep 17 00:00:00 2001 From: pocketjawa Date: Mon, 5 Aug 2019 21:10:18 -0400 Subject: [PATCH] Add mixes command --- commands.go | 6 ++++++ pocketbot.go | 1 + 2 files changed, 7 insertions(+) diff --git a/commands.go b/commands.go index a61c829..7d9afb3 100644 --- a/commands.go +++ b/commands.go @@ -31,3 +31,9 @@ func makiMonday(s *discordgo.Session, m *discordgo.Message, ctx *mux.Context) { resp := "https://maki.jawa.moe/monday.png" s.ChannelMessageSend(m.ChannelID, resp) } + +//Post link to mixes B) +func postMixes(s *discordgo.Session, m *discordgo.Message, ctx *mux.Context) { + resp := "https://maki.jawa.moe/mixes/" + s.ChannelMessageSend(m.ChannelID, resp) +} diff --git a/pocketbot.go b/pocketbot.go index 791e9bc..040386a 100644 --- a/pocketbot.go +++ b/pocketbot.go @@ -55,6 +55,7 @@ func main() { 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) + Router.Route("mixes", "Post the link to my fire mixtapes!", postMixes) //Open a connection to Discord err = Session.Open()