/*
Global handler that is called whenever moebot successfully connects to discord
*/
Global handler that is called whenever moebot successfully connects to discord
/ * Global handler that is called whenever moebot successfully connects to discord * /
func ready(session *discordgo.Session, event *discordgo.Ready) {
	status := ComPrefix + " help"
	err := session.UpdateStatus(0, status)
	if err != nil {
		log.Println("Error setting moebot status", err)
	}
	log.Println("Set moebot's status to", status)
}
func ready ( session * discordgo . Session , event * discordgo . Ready ) { status := ComPrefix + " " err := session . UpdateStatus ( 0 , status ) if err != nil { log . Println ( " " , err ) } log . Println ( " " , status ) }
Global handler that is called whenever moebot successfully connects to discord
Global handler that is called whenever moebot successfully connects to discord