mirror of
https://github.com/HirziDevs/PteroStats
synced 2026-02-03 19:42:41 +00:00
14 lines
340 B
JavaScript
14 lines
340 B
JavaScript
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);
|
|
|
|
};
|