Delete message.js

This commit is contained in:
Hirzi
2021-07-04 12:17:32 +07:00
committed by GitHub
parent 7bed9ef6f5
commit 7455869473

View File

@@ -1,13 +0,0 @@
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);
};