Log command executed and who executed it.

This commit is contained in:
SileNce5k 2021-06-30 16:04:42 +02:00
parent 1080a21d5b
commit 1978c5e811
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -23,6 +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} executed ${command.name}`)
} catch (error) {
console.log(`${error}\n-------`)
}