/*
Run through initial setup steps for Moebot. This is all that's necessary to setup Moebot for use
*/
Run through initial setup steps for Moebot. This is all that's necessary to setup Moebot for use
/ * Run through initial setup steps for Moebot . This is all that ' s necessary to setup Moebot for use * /
func SetupMoebot(session *discordgo.Session, redditHandle *reddit.Handle) {
	masterId = Config["masterId"]
	checker = permissions.PermissionChecker{MasterId: masterId}
	masterDebugChannel = Config["debugChannel"]
	dbHost := Config["dbHost"]
	if dbHost == "" {
		dbHost = "database"
	}
	db.SetupDatabase(dbHost, Config["dbPass"], Config["moeDataPass"])
	addGlobalHandlers(session)
	setupOperations(session, redditHandle)
	startOperationsTimer(commands.NewSchedulerFactory(session))
}
func SetupMoebot ( session * discordgo . Session , redditHandle * reddit . Handle ) { masterId = Config [ " " ] checker = permissions . PermissionChecker { MasterId : masterId } masterDebugChannel = Config [ " " ] dbHost := Config [ " " ] if dbHost == " " { dbHost = " " } db . SetupDatabase ( dbHost , Config [ " " ] , Config [ " " ] ) addGlobalHandlers ( session ) setupOperations ( session , redditHandle ) startOperationsTimer ( commands . NewSchedulerFactory ( session ) ) }
Run through initial setup steps for Moebot.
Run through initial setup steps for Moebot .