Fixing small bugs
- Extra imports - incorrect param placement
This commit is contained in:
@@ -16,7 +16,7 @@ function getGuilds(req) {
|
||||
/**
|
||||
* Get Status of the discord process
|
||||
*/
|
||||
exports.getStatus = (res, req) => {
|
||||
exports.getStatus = (req, res) => {
|
||||
log.INFO("Getting the status of the bot");
|
||||
guildIds = getGuilds(req);
|
||||
log.DEBUG("Guild IDs: ", guildIds);
|
||||
@@ -34,7 +34,7 @@ exports.getStatus = (res, req) => {
|
||||
/**
|
||||
* Start the bot and join the server and preset specified
|
||||
*/
|
||||
exports.joinServer = (res, req) => {
|
||||
exports.joinServer = (req, res) => {
|
||||
const channelID = req.body.channelID;
|
||||
const presetName = req.body.presetName;
|
||||
|
||||
@@ -48,7 +48,7 @@ exports.joinServer = (res, req) => {
|
||||
/**
|
||||
* Leaves the server if it's in one
|
||||
*/
|
||||
exports.leaveServer = (res, req) => {
|
||||
exports.leaveServer = (req, res) => {
|
||||
leave({guildID: guildID, callback: (response) => {
|
||||
return res.sendStatus(202);
|
||||
}});
|
||||
|
||||
Reference in New Issue
Block a user