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())
|
s.ChannelMessageSend(m.ChannelID, source())
|
||||||
} else if message[0] == "retarded" {
|
} else if message[0] == "retarded" {
|
||||||
s.ChannelMessageSend(m.ChannelID, "https://youtu.be/kav7tifmyTg")
|
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
|
} else if len(message[0]) > 0 { // as long as there is a message, try to find a picture
|
||||||
// get url
|
// get url
|
||||||
url := <-get_image(message[0])
|
url := <-get_image(message[0])
|
||||||
|
19
commands.go
19
commands.go
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user