WIP
This commit is contained in:
		@@ -138,8 +138,8 @@
 | 
				
			|||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $.bind('command', function(event) {
 | 
					    $.bind('command', function(event) {
 | 
				
			||||||
 | 
					        console.log(event)
 | 
				
			||||||
        const sender = "" + event.getSender().toLowerCase(),
 | 
					        const sender = event.getSender().toLowerCase(),
 | 
				
			||||||
            command = event.getCommand(),
 | 
					            command = event.getCommand(),
 | 
				
			||||||
            args = event.getArgs(),
 | 
					            args = event.getArgs(),
 | 
				
			||||||
            action = args[0];
 | 
					            action = args[0];
 | 
				
			||||||
@@ -164,6 +164,7 @@
 | 
				
			|||||||
            }else if(action.equalsIgnoreCase('refresh')){
 | 
					            }else if(action.equalsIgnoreCase('refresh')){
 | 
				
			||||||
                var newseed = GameHelper.fetchSeed(args[1]);
 | 
					                var newseed = GameHelper.fetchSeed(args[1]);
 | 
				
			||||||
            }else if(action.equalsIgnoreCase('gg')){
 | 
					            }else if(action.equalsIgnoreCase('gg')){
 | 
				
			||||||
 | 
					                console.log("GOT: GG")
 | 
				
			||||||
                sendData('guesses',JSON.stringify(guesses));
 | 
					                sendData('guesses',JSON.stringify(guesses));
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -173,12 +174,12 @@
 | 
				
			|||||||
        $.registerChatCommand('./custom/custom/chatguessr.js', 'cg',7);
 | 
					        $.registerChatCommand('./custom/custom/chatguessr.js', 'cg',7);
 | 
				
			||||||
        $.registerChatCommand('./custom/custom/chatguessr.js', 'g',7);
 | 
					        $.registerChatCommand('./custom/custom/chatguessr.js', 'g',7);
 | 
				
			||||||
        $.registerChatCommand('./custom/custom/chatguessr.js', 'cga',7);
 | 
					        $.registerChatCommand('./custom/custom/chatguessr.js', 'cga',7);
 | 
				
			||||||
        $.registerChatSubcommand('cga', 'open', 1);
 | 
					        $.registerChatSubcommand('cga', 'open', 2);
 | 
				
			||||||
        $.registerChatSubcommand('cga', 'close', 1);
 | 
					        $.registerChatSubcommand('cga', 'close', 2);
 | 
				
			||||||
        $.registerChatSubcommand('cga', 'start', 1);
 | 
					        $.registerChatSubcommand('cga', 'start', 2);
 | 
				
			||||||
        $.registerChatSubcommand('cga', 'end', 1);
 | 
					        $.registerChatSubcommand('cga', 'end', 2);
 | 
				
			||||||
        $.registerChatSubcommand('cga', 'refresh', 1);
 | 
					        $.registerChatSubcommand('cga', 'refresh', 2);
 | 
				
			||||||
        $.registerChatSubcommand('cga', 'gg', 1);
 | 
					        $.registerChatSubcommand('cga', 'gg', 2);
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
})();
 | 
					})();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user