disable crown stealing and ownership shit
This commit is contained in:
parent
e24e1601cf
commit
bae1c51726
src
@ -97,7 +97,7 @@ global.commands = {
|
||||
},
|
||||
|
||||
"query": {
|
||||
description: "Queries the Heroku PostgreSQL database",
|
||||
description: "Queries the PostgreSQL database",
|
||||
usage: "<query>",
|
||||
aliases: ['q', 'db', 'sql', '?'],
|
||||
op: true,
|
||||
|
@ -119,7 +119,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
|
||||
|
||||
|
||||
// on chown
|
||||
gClient.on('ch', async function(msg){
|
||||
/*gClient.on('ch', async function(msg){
|
||||
// catch dropped crown
|
||||
if (msg.ch.crown && !msg.ch.crown.hasOwnProperty('participantId')) {
|
||||
gClient.sendArray([{m:'chown', id: gClient.getOwnParticipant().id}]); // if possible
|
||||
@ -140,7 +140,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
|
||||
} else return false;
|
||||
});
|
||||
}
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
|
||||
@ -225,13 +225,13 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
|
||||
|
||||
|
||||
// autoban perma-banned users
|
||||
gClient.on("participant added", async part => {
|
||||
/*gClient.on("participant added", async part => {
|
||||
var bans = (await dbClient.query("SELECT bans FROM bridges WHERE discord_channel_id = $1", [DiscordChannelID])).rows[0].bans;
|
||||
if (!bans) return;
|
||||
for (let b of bans)
|
||||
if (part._id.startsWith(b))
|
||||
gClient.sendArray([{m: "kickban", _id: part._id, ms: 60*60*1000}]);
|
||||
})
|
||||
})*/
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user