Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bot.mutes[toMute.id] = {
- guild: message.guild.id,
- time: Date.now() + parseInt(args[1]) * 1000
- }
- await toMute.addRole(role);
- await fs.writeFile("../mutes.json", JSON.stringify(bot.mutes, null, 4), err => {
- if(err) throw err;
- message.channel.send("I Have Muted " + toMute + " For " + args[1] + " Seconds!");
- modlog.send(`\`${toMute.user.username}\` Was Muted For \`${args[1]}\` Seconds. By \`${message.author.username}\`!`);
- bot.users.get(toMute.id).send(`You Have Been Muted On ${message.guild.name} Discord Server For ${args[1]} Seconds!`);
- console.log(`I Have Added ${toMute.user.tag} To mutes.json.`);
- console.log("Mute Command Completed!");
- console.log(" ");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement