Add Maki Monday command
parent
b9bc185650
commit
0c5d70da8f
|
@ -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)
|
||||||
|
}
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue