- const Discord = require('discord.js');
- const client = new Discord.Client();
- const prefix = "$";
- const fs =require('fs');
- client.commands = new Discord.Collection ();
- const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
- for(const file of commandFiles){
- const command =require(`./commands/${file}`);
- client.commands.set(command.name, command);
- }
- client.once('ready', () => {
- console.log('TIME TO MAKE THAT MONEYY!!!')
- });
- // Where the commands go
- console.log("wow");
- client.on('message', message =>{
- totalcount=0;
- if(message.author.bot) return;
- channel.send(message.content);
- if(message.content.startsWith(prefix)) {
- const args = message.content.slice(prefix.length).split(/ +/);
- const command = args.shift().toLowerCase();
- if (command === 'ping'){
- client.commands.get('ping').execute(message, args);
- } else if (command === 'areyougay'){
- client.commands.get('areyougay').execute(message, args);
- } else if (command === 'doyoubeliveingod'){
- client.commands.get('doyoubeliveingod').execute(message, args)
- } else if (command === 'open'){
- client.commands.get('open').execute(message, args)
- } else if (command === 'whoissupergay'){
- client.commands.get('whoissupergay').execute(message, args)
- }
- }else {
- }
- }
- );
- client.on("channelCreate", function(channel){
- if (channel.parent == 1047552700302245898 )
- {
- test(channel);
- }
- console.log(`channelCreate: ${channel.parent}`);
- });
- async function test(channel)
- {
- // Do Junk!
- await new Promise(resolve => setTimeout(resolve, 1000));
- await channel.send("Hello! While you wait, please send your order in this format:\nFake Name:\nAddress:\nScreenShot of Cart:\nForm of payment:\nTotal:")
- }
- // Discord token ALWAYS KEEP AT BOTTOM
- client.login('MTA0NzYwOTA3MzMxNjY3OTc2MQ.GhMB3t.cDKE1cyXnxeM5fQgt5T3r5iCZYAxEfEjmYNtag');
[text] sa
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: