mirror of
https://github.com/HirziDevs/PteroStats
synced 2026-02-06 04:51:15 +00:00
Create message.js
This commit is contained in:
13
events/message.js
Normal file
13
events/message.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = (client, message) => {
|
||||
|
||||
if (message.author.bot) return;
|
||||
if (message.content.indexOf("-") !== 0) return;
|
||||
|
||||
const args = message.content.slice(1).trim().split(/ +/g);
|
||||
const command = args.shift().toLowerCase();
|
||||
const cmd = client.commands.get(command);
|
||||
|
||||
if (!cmd) return;
|
||||
cmd.run(client, message, args);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user