From ef373eb88eced2cdb9f9ee9a1c7f1ba6dab6211a Mon Sep 17 00:00:00 2001 From: choelzl Date: Wed, 9 Feb 2022 21:56:25 +0100 Subject: [PATCH] WIP --- twitch/chatguessr.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;