Update help command to use buttons & text input

also, move messages / "custom commands" to JSON file
This commit is contained in:
spiral 2021-07-16 19:35:06 -04:00
parent c096deb1d0
commit a4892d854b
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
18 changed files with 396 additions and 691 deletions

3
bot.js
View file

@ -74,6 +74,9 @@ const botProcess = () => {
Command.init();
const help = require("./model/command/help");
bot.ws.on('INTERACTION_CREATE', help.interactionHandler);
bot.on('ready', () => {
fs.readdirSync('./event/bot/')
.filter(filename => filename.endsWith('.js'))