Update MPP uri
Still need proxies for room limit but I don't think we need to hide our name from whom is not brandon anymore.
This commit is contained in:
parent
e5f6e67da0
commit
9fca5dd9b0
|
@ -36,7 +36,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
|
||||||
|
|
||||||
|
|
||||||
const gClient =
|
const gClient =
|
||||||
site == "MPP" ? new Client((room.startsWith('lobby')||(room.startsWith('test/')&&room!='test/awkward'))?"ws://ts.terrium.net:63636":"wss://www.multiplayerpiano.com") :
|
site == "MPP" ? new Client((room.startsWith('lobby')||(room.startsWith('test/')&&room!='test/awkward'))?"ws://ts.terrium.net:63636":"wss://dev.multiplayerpiano.com") :
|
||||||
site == "WOPP" ? new Client("wss://piano.ourworldofpixels.com") :
|
site == "WOPP" ? new Client("wss://piano.ourworldofpixels.com") :
|
||||||
site == "MPT" ? new Client("wss://mppws.cf") :
|
site == "MPT" ? new Client("wss://mppws.cf") :
|
||||||
site == "VFDP" ? new Client("ws://www.visualfiredev.com:8080") :
|
site == "VFDP" ? new Client("ws://www.visualfiredev.com:8080") :
|
||||||
|
@ -74,12 +74,12 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
|
||||||
gClient.on('hi', ()=>{
|
gClient.on('hi', ()=>{
|
||||||
console.log(`[${site}][${room}] Received greeting`);
|
console.log(`[${site}][${room}] Received greeting`);
|
||||||
if (!testmode) {
|
if (!testmode) {
|
||||||
if (site == "MPP") {
|
//if (site == "MPP") {
|
||||||
if (!(room.startsWith('lobby')||(room.startsWith('test/')&&room!='test/awkward')))
|
// if (!(room.startsWith('lobby')||(room.startsWith('test/')&&room!='test/awkward')))
|
||||||
|
// gClient.sendArray([{m: "userset", set: {name: config.mppname }}]);
|
||||||
|
//} else {
|
||||||
gClient.sendArray([{m: "userset", set: {name: config.mppname }}]);
|
gClient.sendArray([{m: "userset", set: {name: config.mppname }}]);
|
||||||
} 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)}])
|
gClient.sendArray([{m:'m',x:Math.floor(Math.random()*100),y:Math.floor(Math.random()*100)}])
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue