Only post startup message to Discord if env var POCKETBOT_STARTUP_MESSAGE is TRUE
parent
6cd0a56e26
commit
c5b91113a3
|
@ -81,5 +81,7 @@ func main() {
|
||||||
|
|
||||||
func ready(s *discordgo.Session, event *discordgo.Ready) {
|
func ready(s *discordgo.Session, event *discordgo.Ready) {
|
||||||
s.UpdateStatus(0, "with droids!")
|
s.UpdateStatus(0, "with droids!")
|
||||||
|
if os.Getenv("POCKETBOT_STARTUP_MESSAGE") == "TRUE" {
|
||||||
s.ChannelMessageSend(bot_channel, "This isn't Tatooine...")
|
s.ChannelMessageSend(bot_channel, "This isn't Tatooine...")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue