Allow the client to interact with the discord bot
- The client can now interact with the bot, this allows the client to offer bot controls via API - The master server will now be able to instruct a specific client to join a specific channel via channel ID (master server function coming soon) - Suppress some debug statements to make the output easier to read when mixed in with the client debug output
This commit is contained in:
@@ -5,8 +5,8 @@ var cookieParser = require('cookie-parser');
|
||||
var logger = require('morgan');
|
||||
|
||||
var indexRouter = require('./routes/index');
|
||||
var botController = require('./routes/bot');
|
||||
var clientController = require('./routes/client');
|
||||
var botRouter = require('./routes/bot');
|
||||
var clientRouter = require('./routes/client');
|
||||
|
||||
var app = express();
|
||||
|
||||
@@ -23,10 +23,10 @@ app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.use('/', indexRouter);
|
||||
|
||||
// Discord bot control route
|
||||
app.use('/bot', botController);
|
||||
app.use('/bot', botRouter);
|
||||
|
||||
// Local client control route
|
||||
app.use("/client", clientController);
|
||||
app.use("/client", clientRouter);
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use(function(req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user