Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -78,9 +78,6 @@ const commandsData = [
|
|
| 78 |
client.once('ready', async () => {
|
| 79 |
console.log(`[*] Logged in as ${client.user.tag}`);
|
| 80 |
|
| 81 |
-
// Restore persistent roles from Bot Owner's DMs
|
| 82 |
-
await roleStorage.restoreFromOwner(client);
|
| 83 |
-
|
| 84 |
// Cleanup any backup channels created previously
|
| 85 |
for (const guild of client.guilds.cache.values()) {
|
| 86 |
const backupChannel = guild.channels.cache.find(c => c.name === 'friendlybot-storage');
|
|
@@ -340,7 +337,6 @@ client.on('messageCreate', async (message) => {
|
|
| 340 |
}
|
| 341 |
|
| 342 |
await message.reply(`✅ Updated whitelist for ${role.name}`);
|
| 343 |
-
await roleStorage.backupToOwner(client);
|
| 344 |
}
|
| 345 |
|
| 346 |
if (commandName === 'help') {
|
|
@@ -560,7 +556,6 @@ client.on('interactionCreate', async (interaction) => {
|
|
| 560 |
}
|
| 561 |
|
| 562 |
await interaction.reply(`✅ Updated whitelist for <@&${role.id}>`);
|
| 563 |
-
await roleStorage.backupToOwner(client);
|
| 564 |
}
|
| 565 |
|
| 566 |
if (interaction.commandName === 'managerlineup') {
|
|
|
|
| 78 |
client.once('ready', async () => {
|
| 79 |
console.log(`[*] Logged in as ${client.user.tag}`);
|
| 80 |
|
|
|
|
|
|
|
|
|
|
| 81 |
// Cleanup any backup channels created previously
|
| 82 |
for (const guild of client.guilds.cache.values()) {
|
| 83 |
const backupChannel = guild.channels.cache.find(c => c.name === 'friendlybot-storage');
|
|
|
|
| 337 |
}
|
| 338 |
|
| 339 |
await message.reply(`✅ Updated whitelist for ${role.name}`);
|
|
|
|
| 340 |
}
|
| 341 |
|
| 342 |
if (commandName === 'help') {
|
|
|
|
| 556 |
}
|
| 557 |
|
| 558 |
await interaction.reply(`✅ Updated whitelist for <@&${role.id}>`);
|
|
|
|
| 559 |
}
|
| 560 |
|
| 561 |
if (interaction.commandName === 'managerlineup') {
|