Add arguments to command exec log

This commit is contained in:
SileNce5k 2021-06-30 17:17:58 +02:00
parent 1bb6cf6f60
commit 3bb88034cd
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -23,7 +23,7 @@ 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})
console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name}`)
console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name} with '${args}' as arguments`)
} catch (error) {
console.log(`${error}\n-------`)
}