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
+16
View File
@@ -0,0 +1,16 @@
const fs = require('fs');
const chalk = require('chalk');
var AsciiTable = require('ascii-table');
var table = new AsciiTable();
table.setHeading('Buttons', 'Status').setBorder('|', '-', '+', '+');
module.exports.name = 'buttons';
module.exports = (client) => {
fs.readdirSync('./buttons/').filter((file) => file.endsWith('.js')).forEach((file) => {
const button = require(`../buttons/${file}`);
client.buttons.set(button.id, button);
table.addRow(button.id, chalk.green('Loaded'));
});
console.log(chalk.magenta(table.toString()));
};