Merge branch 'dev' of pocketjawa/discord-buttsbot-go into master

master
pocketjawa 2020-04-30 04:04:32 +00:00 committed by Gogs
commit 3287ca485d
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@ func ready(s *discordgo.Session, event *discordgo.Ready) {
os.Exit(0) os.Exit(0)
} }
s.UpdateStatus(0, "with butts!") s.UpdateStatus(0, "with butts!")
if os.Getenv("BUTTSBOT_STARTUP_MESSAGE") == "TRUE" {
s.ChannelMessageSend(botChannel, "This isn't a butt...") s.ChannelMessageSend(botChannel, "This isn't a butt...")
}
} }
func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {