Add ben birthday
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d830404b06
commit
8decbdbc04
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/bwmarrin/discordgo"
|
||||
)
|
||||
|
@ -27,6 +28,13 @@ func (app *application) messageCreate(s *discordgo.Session, m *discordgo.Message
|
|||
return
|
||||
}
|
||||
|
||||
/*
|
||||
Temporary checking for Ben's birthday
|
||||
*/
|
||||
if time.Now().Month() == time.May && time.Now().Day() == 19 && m.Author.ID == "287892688919986176" {
|
||||
s.ChannelMessageSend(m.ChannelID, "Happy birthday ben!! https://www.youtube.com/watch?v=z21HOwUk5oM")
|
||||
}
|
||||
|
||||
/* Checking if the message starts with the trigger specified in application struct
|
||||
if it does then we start the switch statement to trigger the appropriate function
|
||||
if it does not then we check if it contains a triggerword from the database */
|
||||
|
|
Loading…
Reference in New Issue