Adjusted some files.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
TOKEN=YOURTOKENHERE
|
||||
CLIENTID=YOURCLIENTIDHERE
|
||||
MONGOPASS=YOURMONGOPASSHERE
|
||||
@@ -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);
|
||||
})
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user