Gather-Bot notifies chanel on restart

This commit is contained in:
Absurdon 2018-11-18 21:00:36 +01:00
parent c688568b46
commit c8fb59cfcf
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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;
};