mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-02-21 19:21:13 +00:00
Fix gather bot
This commit is contained in:
parent
8276af6a0e
commit
361978bc8e
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ var steam = require("steam");
|
||||||
var winston = require("winston");
|
var winston = require("winston");
|
||||||
var password = process.env.GATHER_STEAM_PASSWORD;
|
var password = process.env.GATHER_STEAM_PASSWORD;
|
||||||
var account_name = process.env.GATHER_STEAM_ACCOUNT;
|
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) {
|
function SteamBot(config) {
|
||||||
let self = this;
|
let self = this;
|
||||||
|
@ -22,7 +22,7 @@ function SteamBot(config) {
|
||||||
};
|
};
|
||||||
|
|
||||||
let returnGatherInfo = (steamId, _) => {
|
let returnGatherInfo = (steamId, _) => {
|
||||||
let gather = Gather.current;
|
let gather = GatherPool.get("public").current;
|
||||||
let state = gather.current.toUpperCase();
|
let state = gather.current.toUpperCase();
|
||||||
let players = gather.gatherers.length;
|
let players = gather.gatherers.length;
|
||||||
let message = "Current Gather: " + state + " (" + players + "/12 Players)";
|
let message = "Current Gather: " + state + " (" + players + "/12 Players)";
|
||||||
|
|
Loading…
Reference in a new issue