Add userid to logging executed commands
This commit is contained in:
parent
1978c5e811
commit
35555e27ee
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module.exports = function(client, owners, message, globalPrefix){
|
||||||
if (command.admin && owners.indexOf(message.author.id.toString()) == -1) return;
|
if (command.admin && owners.indexOf(message.author.id.toString()) == -1) return;
|
||||||
try {
|
try {
|
||||||
command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners})
|
command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners})
|
||||||
console.log(`${message.author.username} executed ${command.name}`)
|
console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name}`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(`${error}\n-------`)
|
console.log(`${error}\n-------`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue