2 Commits

Author SHA1 Message Date
Logan Cusano
4a0e5e26de Fixing bug with next in /bot 2023-03-26 15:52:22 -04:00
Logan Cusano
67aa65d60d Updating imports 2023-03-26 15:52:07 -04:00
2 changed files with 5 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ app.use('/', indexRouter);
// Discord bot control route // Discord bot control route
app.use('/bot', (res, req, next) => { app.use('/bot', (res, req, next) => {
req.discordClient = discordClient; // Add the discord client to bot requests to be used downstream req.discordClient = discordClient; // Add the discord client to bot requests to be used downstream
next(res, req); next();
}, botRouter); }, botRouter);
// Local client control route // Local client control route

View File

@@ -6,10 +6,10 @@ const path = require('path');
const fork = require('child_process').fork; const fork = require('child_process').fork;
const discordBotPath = path.resolve('discord-bot/app.js'); const discordBotPath = path.resolve('discord-bot/app.js');
// Commands // Commands
const ping = require('../commands/ping.js'); const { ping } = require('../commands/ping.js');
const join = require('../commands/join.js'); const { join } = require('../commands/join.js');
const leave = require('../commands/leave.js'); const { leave } = require('../commands/leave.js');
const status = require('../commands/status.js'); const { status } = require('../commands/status.js');
/** /**
* Get an object of client guilds * Get an object of client guilds