restore name on mpp
This commit is contained in:
parent
19a7098361
commit
5d114145bd
|
@ -73,13 +73,13 @@ 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 != "lobby") {
|
if (room != "lobby") {
|
||||||
gClient.sendArray([{m: "userset", set: {name: "Anonymous" }}]);
|
gClient.sendArray([{m: "userset", set: {name: "Anonymous" }}]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {*/
|
||||||
gClient.sendArray([{m: "userset", set: {name: config.mppname }}]);
|
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