mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 08:19:08 +02:00
Owners too
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ client.on('ready', () => {
|
||||
client.user.setActivity(activities[Math.floor(Math.random() * activities.length)]);
|
||||
}, 60000);
|
||||
for (const guild of client.guilds.values()) {
|
||||
if (whitelist.includes(guild.id)) continue;
|
||||
if (whitelist.guilds.includes(guild.id) || whitelist.owners.includes(guild.ownerID)) continue;
|
||||
console.log(`[LEAVE] Leaving guild ${guild.name}.`);
|
||||
guild.leave().catch(err => console.error(`[LEAVE] Failed to leave ${guild.name}.`, err));
|
||||
}
|
||||
|
||||
+37
-13
@@ -1,13 +1,37 @@
|
||||
[
|
||||
"252317073814978561",
|
||||
"353661927056211970",
|
||||
"317042872543346689",
|
||||
"346450651326185475",
|
||||
"355017633906819073",
|
||||
"228598099549880320",
|
||||
"320631716538613760",
|
||||
"280525180411969536",
|
||||
"348616424803008513",
|
||||
"224249138982813696",
|
||||
"319959788400148481"
|
||||
]
|
||||
{
|
||||
"guilds": [
|
||||
"252317073814978561",
|
||||
"353661927056211970",
|
||||
"317042872543346689",
|
||||
"346450651326185475",
|
||||
"355017633906819073",
|
||||
"228598099549880320",
|
||||
"320631716538613760",
|
||||
"280525180411969536",
|
||||
"348616424803008513",
|
||||
"224249138982813696",
|
||||
"319959788400148481"
|
||||
],
|
||||
"owners": [
|
||||
"252755193739870208",
|
||||
"189255131982856192",
|
||||
"228313559329669120",
|
||||
"255408285644095489",
|
||||
"242699360352206850",
|
||||
"268104118000812042",
|
||||
"244541315939958785",
|
||||
"155882426541801472",
|
||||
"259468791103094785",
|
||||
"223639379594313728",
|
||||
"234318196893548545",
|
||||
"270090582435561493",
|
||||
"296891491933093900",
|
||||
"219199801177145345",
|
||||
"252605433620070410",
|
||||
"219239880855781376",
|
||||
"252969562868285440",
|
||||
"229003197908385794",
|
||||
"358444437745172480",
|
||||
"252711086556577792"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user