A portion of my soul.
This commit is contained in:
@@ -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()));
|
||||
};
|
||||
Reference in New Issue
Block a user