mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 07:11:53 +00:00
try explicitly stating the port
This commit is contained in:
parent
60653e12af
commit
c688568b46
2 changed files with 6 additions and 4 deletions
|
@ -2,7 +2,7 @@ const React = require("react");
|
|||
const ReactDOM = require("react-dom");
|
||||
const App = require("javascripts/components/main");
|
||||
const io = require("socket.io-client");
|
||||
const socketUrl = window.location.protocol + "//" + window.location.host;
|
||||
const socketUrl = window.location.protocol + "//" + window.location.hostname + window.location.port;
|
||||
const socket = io(socketUrl.replace(/^http/,'ws'));
|
||||
|
||||
module.exports = function (mount) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
// Import the discord.js module
|
||||
const Discord = require('discord.js');
|
||||
const winston = require('winston');
|
||||
|
||||
function DiscordBot(config) {
|
||||
this.hook = new Discord.WebhookClient(config.hook_id,config.hook_token);
|
||||
|
@ -21,5 +22,6 @@ module.exports = (config) => {
|
|||
if (bot) return bot;
|
||||
if (!config) throw new Error("No credentials provided for Discord Gather Bot");
|
||||
bot = new DiscordBot(config);
|
||||
//bot.notifyChannel('Gather restarted');
|
||||
return bot;
|
||||
};
|
Loading…
Reference in a new issue