diff --git a/discord/discord.go b/discord/discord.go index a4fefa7..cc813ac 100644 --- a/discord/discord.go +++ b/discord/discord.go @@ -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 */