added tagged user to coinflip
This commit is contained in:
@@ -71,7 +71,7 @@ func message_create (s *discordgo.Session, m *discordgo.MessageCreate) {
|
|||||||
|
|
||||||
// determine our actions
|
// determine our actions
|
||||||
if message == "coinflip" || message == "coin" { // flip a coin
|
if message == "coinflip" || message == "coin" { // flip a coin
|
||||||
s.ChannelMessageSend(m.ChannelID, "heads") // totally fair
|
s.ChannelMessageSend(m.ChannelID, "<@" + m.Author.ID + "> flipped a coin, it landed on **heads!**") // totally fair
|
||||||
} else if len(message) > 0 { // as long as there is a message, try to find a picture
|
} else if len(message) > 0 { // as long as there is a message, try to find a picture
|
||||||
// get url
|
// get url
|
||||||
url := <-get_image(message)
|
url := <-get_image(message)
|
||||||
|
Reference in New Issue
Block a user