Fix gather bot

This commit is contained in:
Chris Blanchard 2016-04-13 22:20:23 +01:00
parent 8276af6a0e
commit 361978bc8e

View file

@ -5,7 +5,7 @@ var steam = require("steam");
var winston = require("winston");
var password = process.env.GATHER_STEAM_PASSWORD;
var account_name = process.env.GATHER_STEAM_ACCOUNT;
var Gather = require("../gather/gather_pool").get("public");
var GatherPool = require("../gather/gather_pool");
function SteamBot(config) {
let self = this;
@ -22,7 +22,7 @@ function SteamBot(config) {
};
let returnGatherInfo = (steamId, _) => {
let gather = Gather.current;
let gather = GatherPool.get("public").current;
let state = gather.current.toUpperCase();
let players = gather.gatherers.length;
let message = "Current Gather: " + state + " (" + players + "/12 Players)";