func New(botKey, admin, listing, botCh, app string) (*Bot, error) {
	if botKey == "" {
		return nil, errors.New("isabellebot: you need to input a botKey in the .config file")
	}
	discord, err := discordgo.New("Bot " + botKey)
	if err != nil {
		return nil, errors.New("isabellebot: error connecting to discord")
	}
	// Commands Setup
	cmds := make(map[string]Command, 0)
	isa := &Bot{
		AdminRole: admin,
		Prefix:    "?",
		DS:        discord,
		Service:   models.Services{},
		Commands:  cmds,
		Listing:   listing,
		BotCh:     botCh,
		App:       app,
	}
	isa.compileCommands()
	// Add Handlers
	isa.DS.AddHandler(isa.ready)
	isa.DS.AddHandler(isa.handleMessage)
	return isa, nil
}
// New creates a new daisymae bot instance and loads bot commands.
//
// It will return the finished bot and nil upon success or
// empty bot and err upon failure
New creates a new daisymae bot instance and loads bot commands.

It will return the finished bot and nil upon success or
empty bot and err upon failure
// New creates a new daisymae bot instance and loads bot commands . // // It will return the finished bot and nil upon success or // empty bot and err upon failure
func New(botKey, admin, listing, botCh, app string) (*Bot, error) {
	if botKey == "" {
		return nil, errors.New("isabellebot: you need to input a botKey in the .config file")
	}
	discord, err := discordgo.New("Bot " + botKey)
	if err != nil {
		return nil, errors.New("isabellebot: error connecting to discord")
	}
	cmds := make(map[string]Command, 0)
	isa := &Bot{
		AdminRole: admin,
		Prefix:    "?",
		DS:        discord,
		Service:   models.Services{},
		Commands:  cmds,
		Listing:   listing,
		BotCh:     botCh,
		App:       app,
	}
	isa.compileCommands()
	isa.DS.AddHandler(isa.ready)
	isa.DS.AddHandler(isa.handleMessage)
	return isa, nil
}
func New ( botKey , admin , listing , botCh , app string ) ( * Bot , error ) { if botKey == " " { return nil , errors . New ( " " ) } discord , err := discordgo . New ( " " + botKey ) if err != nil { return nil , errors . New ( " " ) } cmds := make ( map [ string ] Command , 0 ) isa := & Bot { AdminRole : admin , Prefix : " " , DS : discord , Service : models . Services { } , Commands : cmds , Listing : listing , BotCh : botCh , App : app , } isa . compileCommands ( ) isa . DS . AddHandler ( isa . ready ) isa . DS . AddHandler ( isa . handleMessage ) return isa , nil }
New creates a new daisymae bot instance and loads bot commands.
New creates a new daisymae bot instance and loads bot commands .
// Commands Setup // Add Handlers