This commit is contained in:
Dragon Fire
2020-10-05 18:31:53 -04:00
parent 51a87f0913
commit a53e111e9e
+1 -2
View File
@@ -1,5 +1,4 @@
const Command = require('../../structures/Command');
const { delay } = require('../../util/Util');
module.exports = class TimerCommand extends Command {
constructor(client) {
@@ -22,7 +21,7 @@ module.exports = class TimerCommand extends Command {
this.timers = new Map();
}
async run(msg, { time }) {
run(msg, { time }) {
if (this.timers.has(msg.channel.id)) return msg.reply('Only one timer can be set per channel.');
const display = time > 59 ? `${time / 60} minutes` : `${time} seconds`;
const timeout = setTimeout(async () => {