This repository has been archived on 2023-08-07. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
vylbot-core/src/client/events.js
2020-10-20 10:45:24 +01:00

21 lines
No EOL
516 B
JavaScript

class event {
message(message) {
if (!message.guild) return;
if (message.author.bot) return;
let prefix = this.config.prefix;
if (message.content.substring(0, prefix.length).toLowerCase() == prefix.toLowerCase()) {
let args = message.content.substring(prefix.length).split(" ");
let name = args.shift();
this.util.loadCommand(name, args, message);
}
}
ready() {
console.log("Ready");
}
}
module.exports = event;