[text] sa

Viewer

  1. const Discord = require('discord.js');
  2. const client = new Discord.Client();
  3.  
  4. const prefix = "$";
  5.  
  6. const fs =require('fs');
  7.  
  8.  
  9. client.commands = new Discord.Collection ();
  10.  
  11. const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
  12. for(const file of commandFiles){
  13.     const command =require(`./commands/${file}`);
  14.  
  15.     client.commands.set(command.name, command);
  16.  
  17. }
  18.  
  19.  
  20. client.once('ready', () => {
  21.     console.log('TIME TO MAKE THAT MONEYY!!!')
  22.  
  23. });
  24.  
  25.  
  26.  
  27. // Where the commands go
  28.  
  29.  
  30. console.log("wow");
  31. client.on('message', message =>{
  32.     totalcount=0;
  33.     if(message.author.bot) return;
  34.     channel.send(message.content);
  35.     if(message.content.startsWith(prefix)) {
  36.         const args = message.content.slice(prefix.length).split(/ +/);
  37.         const command = args.shift().toLowerCase();
  38.  
  39.         if (command === 'ping'){
  40.             client.commands.get('ping').execute(message, args);
  41.         } else if (command === 'areyougay'){
  42.         client.commands.get('areyougay').execute(message, args);
  43.         } else if (command === 'doyoubeliveingod'){
  44.             client.commands.get('doyoubeliveingod').execute(message, args)
  45.         } else if (command === 'open'){
  46.             client.commands.get('open').execute(message, args)
  47.         } else if (command === 'whoissupergay'){
  48.             client.commands.get('whoissupergay').execute(message, args)
  49.         }
  50.     }else {
  51.         
  52.         }
  53.  
  54.     }
  55.  
  56.   
  57.  
  58.  
  59.  
  60. );
  61.  
  62.  
  63.  
  64. client.on("channelCreate", function(channel){
  65.     if (channel.parent == 1047552700302245898  )
  66.     {
  67.         test(channel);
  68.     }
  69.     console.log(`channelCreate: ${channel.parent}`);
  70. });
  71.  
  72. async function test(channel)
  73. {
  74.     // Do Junk!
  75.     await new Promise(resolve => setTimeout(resolve, 1000)); 
  76.     await channel.send("Hello! While you wait, please send your order in this format:\nFake Name:\nAddress:\nScreenShot of Cart:\nForm of payment:\nTotal:")
  77.  
  78.  
  79. }
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88. // Discord token ALWAYS KEEP AT BOTTOM
  89. client.login('MTA0NzYwOTA3MzMxNjY3OTc2MQ.GhMB3t.cDKE1cyXnxeM5fQgt5T3r5iCZYAxEfEjmYNtag');
  90.  

Editor

You can edit this paste and save as new:


File Description
  • sa
  • Paste Code
  • 02 Dec-2022
  • 2.07 Kb
You can Share it: