func (b *Bot) addCommand(name string, cmd func(cmd.CommandInfo)) {
	if _, ok := b.Commands[name]; ok {
		fmt.Printf("addCommand: %s already exists in the map\n", name)
		return
	}
	command := Command{
		Cmd: cmd,
	}
	b.Commands[name] = command
}
// utility func to add command to bot command map
utility func to add command to bot command map
// utility func to add command to bot command map
func (b *Bot) addCommand(name string, cmd func(cmd.CommandInfo)) {
	if _, ok := b.Commands[name]; ok {
		fmt.Printf("addCommand: %s already exists in the map\n", name)
		return
	}
	command := Command{
		Cmd: cmd,
	}
	b.Commands[name] = command
}
func ( b * Bot ) addCommand ( name string , cmd func ( cmd . CommandInfo ) ) { if _ , ok := b . Commands [ name ] ; ok { fmt . Printf ( " \n " , name ) return } command := Command { Cmd : cmd , } b . Commands [ name ] = command }
utility func to add command to bot command map
utility func to add command to bot command map