Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. const Discord = require("discord.js");
  2.  
  3. exports.run = (client, message, args, ops) => {
  4.  
  5. let fetched = ops.active.get(message.guild.id);
  6.  
  7. const Discord1 = new Discord.RichEmbed()
  8. .setColor("0x000000")
  9. .setTitle("Sorry!")
  10. .addField("There currently isn't any music playing in this guild!")
  11. .setFooter("Pottor Bot | Made by SkysTv");
  12. if (!fetched) return message.channel.send(Discord1);
  13.  
  14. const embed1 = new Discord.RichEmbed()
  15. .setColor("0x000000")
  16. .setTitle("Sorry!")
  17. .addField("You currently aren't in the same channel as the bot!")
  18. .setFooter("Pottor Bot | Made by SkysTv");
  19. if (message.member.voiceChannel !== message.guild.me.voiceChannel) return message.channel.send(embed1)
  20.  
  21. if (!fetched.dispatcher.paused) return message.channel.send("The music is isn't paused.");
  22.  
  23. fetched.dispatcher.resume()
  24.  
  25. const embed2 = new Discord.RichEmbed()
  26. .setColor("0x000000")
  27. .setTitle("Song Resume")
  28. .setDescription("Successfully resumed the song!")
  29. .setFooter("Pottor Bot | Made by SkysTv");
  30.  
  31. message.channel.send(embed2);
  32.  
  33. }
  34.  
  35. module.exports.help = {
  36. name: "resume"
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement