mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-23 20:26:49 +00:00
Update help command to use buttons & text input
also, move messages / "custom commands" to JSON file
This commit is contained in:
parent
c096deb1d0
commit
a4892d854b
18 changed files with 396 additions and 691 deletions
3
bot.js
3
bot.js
|
|
@ -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'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue