diff --git a/src/Bot.ts b/src/Bot.ts index ae68e1d..2ebea1b 100644 --- a/src/Bot.ts +++ b/src/Bot.ts @@ -59,6 +59,7 @@ class Bot { async start(port?: number, token?: string) : Promise { try { console.log(`Bot name: ${this.name}`); + console.log(`Prefix: ${this.config.prefix} \n`); const loginToken: string = token || this.config.token || ''; if(loginToken === '') { throw new ReferenceError('No token specified. Please pass your Discord application token as an argument to the "start" method or in the constructor'); diff --git a/src/Commands.ts b/src/Commands.ts index 2856847..f9c3097 100644 --- a/src/Commands.ts +++ b/src/Commands.ts @@ -136,6 +136,9 @@ class CommandsManager { cmdArguments = cmdArguments.map((a) => { return a.replace(' ', ''); }); + if((cmdArguments[0] == '' || cmdArguments[0] == ' ') && cmdArguments.length == 1) { + cmdArguments = []; + } return { name: cmdName, arguments: cmdArguments