Fixing bug with next in /bot

This commit is contained in:
Logan Cusano
2023-03-26 15:52:22 -04:00
parent 67aa65d60d
commit 4a0e5e26de

View File

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