mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-02-17 01:12:20 +00:00
Gather-Bot notifies chanel on restart
This commit is contained in:
parent
c688568b46
commit
c8fb59cfcf
2 changed files with 2 additions and 2 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.hostname + window.location.port;
|
||||
const socketUrl = window.location.protocol + "//" + window.location.hostname + ":"+ window.location.port;
|
||||
const socket = io(socketUrl.replace(/^http/,'ws'));
|
||||
|
||||
module.exports = function (mount) {
|
||||
|
|
|
@ -22,6 +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');
|
||||
bot.notifyChannel('Gather restarted');
|
||||
return bot;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue