func ready(s *discordgo.Session, event *discordgo.Ready) { // Set the playing status. _ = s.UpdateStatus(0, "!airhorn") }
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") }