mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix Lint
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
const { delay } = require('../../util/Util');
|
|
||||||
|
|
||||||
module.exports = class TimerCommand extends Command {
|
module.exports = class TimerCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -22,7 +21,7 @@ module.exports = class TimerCommand extends Command {
|
|||||||
this.timers = new Map();
|
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.');
|
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 display = time > 59 ? `${time / 60} minutes` : `${time} seconds`;
|
||||||
const timeout = setTimeout(async () => {
|
const timeout = setTimeout(async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user