Add mixes command

pull/20/head
pocketjawa 2019-08-05 21:10:18 -04:00
parent 0c5d70da8f
commit 538db40037
2 changed files with 7 additions and 0 deletions

View File

@ -31,3 +31,9 @@ func makiMonday(s *discordgo.Session, m *discordgo.Message, ctx *mux.Context) {
resp := "https://maki.jawa.moe/monday.png" resp := "https://maki.jawa.moe/monday.png"
s.ChannelMessageSend(m.ChannelID, resp) 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)
}

View File

@ -55,6 +55,7 @@ func main() {
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("maki", "It's Maki Monday my dudes!", makiMonday)
Router.Route("monday", "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 //Open a connection to Discord
err = Session.Open() err = Session.Open()