mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Lint
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user