diff --git a/twitch/chatguessr.js b/twitch/chatguessr.js index e100eb3..8767e39 100644 --- a/twitch/chatguessr.js +++ b/twitch/chatguessr.js @@ -35,7 +35,7 @@ } function toPos(coords) { - return { lat: parseFloat(msg.split(",")[0]), lng: parseFloat(msg.split(",")[1]) }; + return { lat: parseFloat(coords.split(",")[0]), lng: parseFloat(coords.split(",")[1]) }; } function getSurroundings (location) { const meters = 100; @@ -138,10 +138,6 @@ $.setIniDbBoolean('cgstatus', 'isOpen', false) }else if(action.equalsIgnoreCase('start')){ seed = fetchSeed(args[1]); - $.log.error(seed) - $.log.error(seed.id) - $.log.error(seed['bounds']) - $.log.error(seed.bounds) scale = calculateScale(seed.bounds) }else if(action.equalsIgnoreCase('end')){ isOpen = false;