//LoadCommands loads commands from map created by either LoadBot, or RegisterCommand functions.
LoadCommands loads commands from map created by either LoadBot, or RegisterCommand functions.
// LoadCommands loads commands from map created by either LoadBot or RegisterCommand functions .
func (bot *Hitbot) LoadCommands() {
	for name, cmd := range bot.cmdHandlers {
		bot.cmds[name] = bot.handlers[cmd.Handler](cmd.Data)
	}
	for _, ch := range bot.chCmds {
		for name, cmd := range ch.cmdHandlers {
			ch.cmds[name] = bot.handlers[cmd.Handler](cmd.Data)
		}
	}
}
func ( bot * Hitbot ) LoadCommands ( ) { for name , cmd := range bot . cmdHandlers { bot . cmds [ name ] = bot . handlers [ cmd . Handler ] ( cmd . Data ) } for _ , ch := range bot . chCmds { for name , cmd := range ch . cmdHandlers { ch . cmds [ name ] = bot . handlers [ cmd . Handler ] ( cmd . Data ) } } }
LoadCommands loads commands from map created by either LoadBot, or RegisterCommand functions.
LoadCommands loads commands from map created by either LoadBot or RegisterCommand functions .