added 'moon' command
This commit is contained in:
@@ -109,6 +109,8 @@ func message_create (s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
s.ChannelMessageSend(m.ChannelID, source())
|
||||
} else if message[0] == "retarded" {
|
||||
s.ChannelMessageSend(m.ChannelID, "https://youtu.be/kav7tifmyTg")
|
||||
} else if message[0] == "moon" {
|
||||
s.ChannelMessageSend(m.ChannelID, moon(content)) // print moon text
|
||||
} else if len(message[0]) > 0 { // as long as there is a message, try to find a picture
|
||||
// get url
|
||||
url := <-get_image(message[0])
|
||||
|
Reference in New Issue
Block a user