Added res/req to app.js and fixed naming bug in botcontroller
This commit is contained in:
@@ -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()
|
||||
next(res, req);
|
||||
}, botRouter);
|
||||
|
||||
// Local client control route
|
||||
|
||||
Reference in New Issue
Block a user