EnragedPvP

Untitled

Feb 2nd, 2021
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. const Discord = require("discord.js");
  2.  
  3. const bot = new Discord.Client();
  4.  
  5. const prefix ='-' ;
  6.  
  7.  
  8. bot.on('ready', () => {
  9. console.log('bot is ready');
  10. });
  11.  
  12. bot.on('message', function (message) {
  13. if (!message.content.startsWith(prefix) || message.author.bot)
  14. return;
  15.  
  16. const args = message.content.slice(prefix.length).split(/ +/);
  17. const command = args.shift().toLowerCase();
  18.  
  19. if (command === 'wipe') {
  20. message.channel.send('Journey Begins with OPEN BETA this FRIDAY Feb 5th 2021');
  21. } if (command === 'vote') {
  22. message.channel.send('Down below you will find all the links to our servers so that you can vote! We are currently looking into a way players can receive points upon voting');
  23. message.channel.send('Island=https://ark-servers.net/server/260594/',
  24. message.channel.send('Aberration=https://ark-servers.net/server/260596/',
  25. message.channel.send('Center=https://ark-servers.net/server/260595/',
  26. message.channel.send('Extinction=https://ark-servers.net/server/260597/',
  27. message.channel.send('Genesis=https://ark-servers.net/server/260598/',
  28. message.channel.send('Crystal Isles=https://ark-servers.net/server/260599/',
  29. message.channel.send('Ragnarok=https://ark-servers.net/server/260600/',
  30. message.channel.send('Valguero=https://ark-servers.net/server/260601/'))))))));
  31. } if (command === 'commands') {
  32. message.channel.send('The Commands for this server are as follows: (Make sure to use the prefix - )'); {
  33. message.channel.send('**-wipe**= ``lets you know when the next wipe day is``');
  34. message.channel.send('**-vote**= ``gives you voting links for ark-servers.net so you can help our server grow up the ranks!``');
  35. message.channel.send('**-commands**= ``Gives you a commands list``');
  36. } if (command == 'purge'){
  37. module.exports = {
  38. name: 'clear',
  39. description: "Clear messages!",
  40. async execute(message, args) {
  41. if (!args[0]) return message.reply("Please enter the amount of messages to clear!");
  42.  
  43. if(isNaN(args[0])) return message.reply("Please type a real number!");
  44.  
  45. if(args[0] > 100) return message.reply("You can't remove more than 100 messages!");
  46.  
  47. if(args[0] < 1) return message.reply("You have to delete at least one message!");
  48.  
  49. await message.channel.messages.fetch({ limit: args[0]}).then(messages =>{
  50. message.channel.bulkDelete(messages)
  51. });
  52.  
  53. }
  54. }
  55. }
  56. }
  57. }
  58.  
  59.  
  60. );
  61.  
  62. bot.login('ODA2MDY4NTAxMDg0ODk3Mjkw.YBkDyg.2kW0GGLmfyrAnSfn_ZSY3qyi-fA')
Advertisement
Add Comment
Please, Sign In to add comment