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 declarations | |
const Discord = require("discord.js");//created on version 11.6.3 - May break on v12+ (Have not tested on v12+.) | |
const bot = new Discord.Client({ disableEveryone: true });//declaring "bot" as the client. | |
const token = "tokenhere"//bot token goes here | |
const prefix = "!" //your prefix goes here | |
//----------// | |
//code | |
bot.on("message", async message => {//when a message is sent (that the bot can read) |