diff --git a/twitch/chatguessr.js b/twitch/chatguessr.js index 28d3285..4cc313a 100644 --- a/twitch/chatguessr.js +++ b/twitch/chatguessr.js @@ -126,7 +126,7 @@ action = args[0]; if (command.equalsIgnoreCase('g')) { - if(isOpen) DBAddG(sender,args); + if(isOpen) addGuess(sender,args); }else if (command.equalsIgnoreCase('cg')) { //send url //$.say($.whisperPrefix(sender) + $.lang.get('chatguessr.help', ' Use "!cg [open | close | ...]" to open/close the feature.')); @@ -138,6 +138,7 @@ $.setIniDbBoolean('cgstatus', 'isOpen', false) }else if(action.equalsIgnoreCase('start')){ seed = fetchSeed(args[1]); + $.log.error(seed) scale = calculateScale(seed.bounds) }else if(action.equalsIgnoreCase('end')){ isOpen = false; @@ -155,10 +156,10 @@ }else if(action.equalsIgnoreCase('gg')){ sendData('guesses',JSON.stringify(guesses)); }else if(action.equalsIgnoreCase('fg')){ - DBAddG("Alpha","0,0"); - DBAddG("Beta","40,0"); - DBAddG("Charlie","0,60"); - DBAddG("Delta","80,80"); + addGuess("Alpha","0,0"); + addGuess("Beta","40,0"); + addGuess("Charlie","0,60"); + addGuess("Delta","80,80"); sendData('guesses',JSON.stringify(guesses)); } }