Add ben birthday
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-05-19 08:03:09 +02:00
parent d830404b06
commit 8decbdbc04
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package main
import ( import (
"strings" "strings"
"time"
"github.com/bwmarrin/discordgo" "github.com/bwmarrin/discordgo"
) )
@ -27,6 +28,13 @@ func (app *application) messageCreate(s *discordgo.Session, m *discordgo.Message
return 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 /* 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 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 */ if it does not then we check if it contains a triggerword from the database */