This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require("discord.js"); | |
const TOKEN = "TOKEN"; | |
const { Client, RichEmbed } = require('discord.js'); | |
// Why do you require discord.js twice? the require call in line 1 is redundant | |
var bot = new Discord.Client(); | |
// since you required Client explicitely, you could do new Client() instead of new Discord.Client(); | |
// var is kinda deprecated, I suggest you use const, as the bot variable doesn't change in the future |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Client } = require('discord.js'); | |
const token = 'YOUR_FANCY_DISCORD_TOKEN'; | |
client = new Client(); | |
const spamBotUrls = [ | |
'privatepage.vip', | |
'nakedphotos.club' | |
]; |