From 8decbdbc04dd2291064c1117e8bdd3a20848b8a0 Mon Sep 17 00:00:00 2001 From: DutchEllie Date: Thu, 19 May 2022 08:03:09 +0200 Subject: [PATCH] Add ben birthday --- discord/discord.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */