This commit is contained in:
choelzl 2022-02-09 21:47:38 +01:00
parent c7af0a430d
commit 140047fe7b
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -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));
}
}