Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sandarutharuneth authored Jun 13, 2022
1 parent e7d332f commit 2de0252
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ client.commands = new Discord.Collection();


client.interactions = new Discord.Collection();

client.register_arr = []

fs.readdir("./slash/", (_err, files) => {
Expand All @@ -83,9 +82,7 @@ fs.readdir("./slash/", (_err, files) => {

client.on("messageCreate", (message) => {
if (message.author.bot) return false;

if (message.content.includes("@here") || message.content.includes("@everyone") || message.type == "REPLY") return false;

if (message.mentions.has(client.user.id)) {
const botmention = new Discord.MessageEmbed()
.setColor('#2F3136')
Expand All @@ -94,5 +91,4 @@ client.on("messageCreate", (message) => {
}
});


client.login(process.env.TOKEN);

0 comments on commit 2de0252

Please sign in to comment.