Compare commits
2 Commits
5bbcc3ffcc
...
4a0e5e26de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a0e5e26de | ||
|
|
67aa65d60d |
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user