Remove time measurement of command
All checks were successful
CI / CI (push) Successful in 16s

It never worked anyways
This commit is contained in:
SileNce5k 2024-11-01 20:18:13 +01:00
parent 10e429c870
commit 30d94706e1
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -38,10 +38,8 @@ module.exports = function(client, owners, message, globalPrefix){
}
if (command.admin && owners.indexOf(message.author.id.toString()) == -1) return;
try {
let t0 = performance.now();
command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners, globalPrefix: globalPrefix})
let t1 = performance.now();
console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name} with '${args}' as arguments in ${(t1-t0).toFixed(2)} ms`)
console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name} with '${args}' as arguments`)
} catch (error) {
let divider = "------------------------"
console.log(divider)