Skip to content

Commit

Permalink
Add condition isOwner
Browse files Browse the repository at this point in the history
  • Loading branch information
Kry9toN committed Jan 22, 2021
1 parent 426e64e commit d7d06ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion krypton.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async function krypton () {
}

// Time durations
if (!client.isPmium || !client.isGmium) {
if (!client.isPmium || !client.isGmium || !client.isOwner) {
const now = Date.now()
const timestamps = cooldowns.get(command.name)
const cooldownAmount = (command.cooldown || 1) * 1000
Expand Down

0 comments on commit d7d06ba

Please sign in to comment.