예제 #1
0
파일: main.go 프로젝트: 42wim/matterbridge
func ready(s *discordgo.Session, event *discordgo.Ready) {
	// Set the playing status.
	_ = s.UpdateStatus(0, "!airhorn")
}
예제 #2
0
func onReady(s *discordgo.Session, event *discordgo.Ready) {
	log.Info("Recieved READY payload")
	s.UpdateStatus(0, "airhornbot.com")
}
예제 #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")
}