slowmode so i don't have to use another bot

This commit is contained in:
Carol Knieriem 2020-01-06 16:00:14 -05:00
parent e0e8a57bef
commit 612b7afb4e
No known key found for this signature in database
GPG Key ID: 932EC6A6BAEE122B
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
exports.run = async (client, message, args, level) => {
let rateLimit = +args[0] || 0;
message.channel.rateLimitPerUser = rateLimit;
(await message.channel.send(`${message.author} has set ${message.channel}'s slowmode to ${rateLimit} seconds.`)).delete(5000);
};
exports.conf = {
enabled: true,
guildOnly: true,
aliases: ["sm","setslowmode"],
permLevel: "Administrator"
};
exports.help = {
name: "slowmode",
category: "Utility",
description: "Set the slowmode for a channel. If no arguments are provided, this command will disable it.",
emoji: "sparkle",
usage: "slowmode [time:0]"
};