Add Maki Monday command

pull/20/head
pocketjawa 2019-08-05 21:05:30 -04:00
parent b9bc185650
commit 0c5d70da8f
2 changed files with 8 additions and 0 deletions

View File

@ -25,3 +25,9 @@ func getSwear(s *discordgo.Session, m *discordgo.Message, ctx *mux.Context) {
} }
s.ChannelMessageSend(m.ChannelID, resp) 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)
}

View File

@ -53,6 +53,8 @@ func main() {
// Register the build-in help command. // Register the build-in help command.
Router.Route("help", "Display this message.", Router.Help) Router.Route("help", "Display this message.", Router.Help)
Router.Route("swear", "Make me swear!", getSwear) 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 //Open a connection to Discord
err = Session.Open() err = Session.Open()