Ejemplo n.º 1
0
func ready(s *discordgo.Session, event *discordgo.Ready) {
	// Set the playing status.
	_ = s.UpdateStatus(0, "!airhorn")
}
Ejemplo n.º 2
0
func onReady(s *discordgo.Session, event *discordgo.Ready) {
	log.Info("Recieved READY payload")
	s.UpdateStatus(0, "airhornbot.com")
}
Ejemplo n.º 3
0
// 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")
}