Adjusted some files.

This commit is contained in:
Nahokey
2024-04-28 13:50:45 +00:00
parent 5f2e001f03
commit 9ad716dfef
3 changed files with 4 additions and 9 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
TOKEN=YOURTOKENHERE
CLIENTID=YOURCLIENTIDHERE
CLIENTID=YOURCLIENTIDHERE
MONGOPASS=YOURMONGOPASSHERE
-8
View File
@@ -5,12 +5,4 @@ const config = require('../config/config.js');
client.on('messageCreate', async message => {
if (message.author.bot) return;
if (message.channel.type === ChannelType.DM) return;
if (!message.content.startsWith(config.prefix)) return;
const args = message.content.slice(config.prefix.length).trim().split(/ +/);
const cmd = args.shift().toLowerCase();
if (cmd.length === 0) return;
let commands = client.commands.get(cmd)
if (!commands) commands = client.commands.get(client.aliases.get(cmd));
commands.run(client, message, args);
})
+2
View File
@@ -21,6 +21,8 @@
"discord.js": "^14.14.1",
"dotenv": "^16.4.1",
"fs": "^0.0.1-security",
"glob": "^8.1.0",
"glob-promise": "^6.0.5",
"moment": "^2.30.1",
"mongoose": "^6.7.0",
"node-cron": "^3.0.3",