This commit is contained in:
Lamp 2019-10-12 16:22:36 -07:00 committed by GitHub
parent 3e0052a87a
commit 2be4884dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -74,13 +74,11 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
gClient.on('hi', ()=>{
console.log(`[${site}][${room}] Received greeting`);
if (!testmode) {
/*if (site == "MPP") {
if (room != "lobby") {
gClient.sendArray([{m: "userset", set: {name: "Anonymous" }}]);
}
} else {*/
if (site == "MPP" && room == "lobby") {
gClient.sendArray([{m: "userset", set: {name: "Anonymous" }}]);
} else {
gClient.sendArray([{m: "userset", set: {name: config.mppname }}]);
//}
}
}
gClient.sendArray([{m:'m',x:Math.floor(Math.random()*100),y:Math.floor(Math.random()*100)}])
});