Add files via upload

This commit is contained in:
2021-08-18 00:12:37 -07:00
committed by GitHub
parent ecd6246099
commit 9d759573d2
55 changed files with 3098 additions and 0 deletions

View File

@ -0,0 +1,12 @@
async function messageCreate(msg) {
if (!this.c.discordAdminIDs.includes(msg.author.id)) return;
if (msg.content.indexOf(this.c.prefix) !== 0) return;
const args = msg.content.slice(this.c.prefix.length).trim().split(/ +/g);
const command = args.shift().toString().toLowerCase();
for (let i = 0; this.commands.length > i; i++) {
if (this.commands[i].command === command) {
this.commands[i].execute(this, msg, args);
}
}
}
module.exports = messageCreate;