first commit

This commit is contained in:
Raven Scott
2021-04-23 14:20:48 -05:00
commit d4ad7600e7
22 changed files with 1422 additions and 0 deletions

16
events/message.js Normal file
View File

@ -0,0 +1,16 @@
const Discord = require("discord.js");
require('dotenv').config()
const functions = require("../functions/functions.js");
module.exports = async (bot, message) => {
let prefix = process.env.PREFIX;
const args = message.content.split(/ +/g);
const command = args.shift().slice(prefix.length).toLowerCase();
const cmd = bot.commands.get(command) || bot.aliases.get(command);
if(!message.content.toLowerCase().startsWith(prefix) || !message.guild || message.author.bot || !cmd) return;
cmd.run(bot, message, args, functions)
}

7
events/ready.js Normal file
View File

@ -0,0 +1,7 @@
const Discord = require("discord.js");
module.exports = async (bot) => {
console.log(`${bot.user.username} is online!`);
}