Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. const Discord = module.require("discord.js");
  2. const ms = require("ms");
  3. const giveawayClient = require("./index.js");
  4.  
  5. module.exports.run = async (bot, message, args) =>{
  6.  
  7. if (!message.member.hasPermission(32)) return message.channel.send(" :x: Je hebt hiervoor de Beheer Server permissie nodig.");
  8.  
  9. if (!args || !args[0] || !args[1] || !args[2]) {
  10. message.channel.send("Commando wordt gebruikt als volgt: `!gwstart <tijd> <aantal winnaars (nummer> <prijs>");
  11. message.channel.send("Tijdformat: 2s / 2m / 2h / 2d");
  12. return;
  13. }
  14.  
  15. giveawayClient.start(message.channel, {
  16. time: ms(args[0]),
  17. prize: args.slice(2).join(" "),
  18. winnersCount: parseInt(args[1])
  19. });
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement