Advertisement
Guest User

writeto error

a guest
Oct 17th, 2017
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. bot.mutes[toMute.id] = {
  2. guild: message.guild.id,
  3. time: Date.now() + parseInt(args[1]) * 1000
  4. }
  5.  
  6. await toMute.addRole(role);
  7.  
  8. await fs.writeFile("../mutes.json", JSON.stringify(bot.mutes, null, 4), err => {
  9. if(err) throw err;
  10. message.channel.send("I Have Muted " + toMute + " For " + args[1] + " Seconds!");
  11. modlog.send(`\`${toMute.user.username}\` Was Muted For \`${args[1]}\` Seconds. By \`${message.author.username}\`!`);
  12. bot.users.get(toMute.id).send(`You Have Been Muted On ${message.guild.name} Discord Server For ${args[1]} Seconds!`);
  13. console.log(`I Have Added ${toMute.user.tag} To mutes.json.`);
  14. console.log("Mute Command Completed!");
  15. console.log(" ");
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement