Example #1
0
func ready(s *discordgo.Session, event *discordgo.Ready) {
	// Set the playing status.
	_ = s.UpdateStatus(0, "!airhorn")
}
Example #2
0
func onReady(s *discordgo.Session, event *discordgo.Ready) {
	log.Info("Recieved READY payload")
	s.UpdateStatus(0, "airhornbot.com")
}
// the below method is invoked when the Discord Websocket API transmits
// the 'ready' event to the bot
func onReady(s *discordgo.Session, event *discordgo.Ready) {
	logrus.Info("Received ready event from Discord Websocket API.")
	s.UpdateStatus(0, "Bill's PC")
}