A portion of my soul.

This commit is contained in:
Kwafuri
2024-02-03 21:32:04 +00:00
parent 6d47fb7bab
commit dca679131a
15 changed files with 362 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
const fs = require('fs');
const chalk = require('chalk');
var AsciiTable = require('ascii-table');
var table = new AsciiTable();
table.setHeading('Events', 'Status').setBorder('|', '-', '+', '+');
module.exports.name = 'events';
module.exports = (client) => {
fs.readdirSync('./events/').filter((file) => file.endsWith('.js')).forEach((file) => {
require(`../events/${file}`);
table.addRow(file.split('.js')[0], chalk.green('Loaded'));
});
console.log(chalk.magenta(table.toString()));
};