Sometimes I use shift() on the args to handle them which causes the logging to not log everything 100% accurately
This commit is contained in:
parent
be8d9660ba
commit
c74f323c1b
1 changed files with 1 additions and 1 deletions
|
@ -27,8 +27,8 @@ module.exports = function(client, owners, message, globalPrefix){
|
|||
}
|
||||
if (command.admin && owners.indexOf(message.author.id.toString()) == -1) return;
|
||||
try {
|
||||
command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners, globalPrefix: globalPrefix})
|
||||
console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name} with '${args}' as arguments`)
|
||||
command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners, globalPrefix: globalPrefix})
|
||||
} catch (error) {
|
||||
let divider = "------------------------"
|
||||
console.log(divider)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue