diff options
| author | 8cy <[email protected]> | 2020-07-24 07:37:15 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-24 07:37:15 -0700 |
| commit | 0966fe54ea4298fe7e62b680d26620bc85ccf081 (patch) | |
| tree | 61265f6d0880c6f2ab5edd9cd8bf8009558678b5 /server/src/commands/mod | |
| parent | big stuffs here (diff) | |
| download | dep-core-0966fe54ea4298fe7e62b680d26620bc85ccf081.tar.xz dep-core-0966fe54ea4298fe7e62b680d26620bc85ccf081.zip | |
clean: clean up some messy shit
Diffstat (limited to 'server/src/commands/mod')
| -rw-r--r-- | server/src/commands/mod/Slowmode.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/commands/mod/Slowmode.ts b/server/src/commands/mod/Slowmode.ts index 3aec2bd..b352007 100644 --- a/server/src/commands/mod/Slowmode.ts +++ b/server/src/commands/mod/Slowmode.ts @@ -42,21 +42,21 @@ export default class SlowmodeMod extends Command { try { if (amount > 120) { amount = 120; - msg.channel.send('Due to Discord API limitations, slow mode can only be a max of **120** seconds or less! Your specified amount has been rounded down to **120** seconds. (This message will automatically be deleted in 3 seconds.)') - .then(m => m.delete({ timeout: 3000 })); + msg.channel.send('Due to Discord API limitations, slow mode can only be a max of **120** seconds or less! Your specified amount has been rounded down to **120** seconds. (This message will automatically be deleted in 10 seconds.)') + .then(m => m.delete({ timeout: 10000 })); } (msg.channel as TextChannel).setRateLimitPerUser(amount); if (realtime) { let time = 60000 * realtime; - msg.channel.send(`Slowmode has now been set to ${amount} seconds and will end in ${realtime} minutes!`); + msg.channel.send(`Slowmode has now been set to **${amount}** seconds and will end in **${realtime}** minutes!`); setTimeout(() => { (msg.channel as TextChannel).setRateLimitPerUser(0); return msg.channel.send('Slowmode has now been disabled!'); }, time); } else { if (amount == 0) return msg.channel.send('Slowmode has now been disabled!'); - return msg.channel.send(`Slowmode has now been set to ${amount} seconds!`); + return msg.channel.send(`Slowmode has now been set to **${amount}** seconds!`); } } catch (err) { console.error(err); |