actually get profile picture rotation
All checks were successful
Build and Push Docker Image / build (push) Successful in 48s

discord.js was outdated and it was making the client token reset every time i set a pfp,
so this was taking forever to figure out because i dont understand packages
This commit is contained in:
2026-03-11 23:27:36 -04:00
parent b8880f9a17
commit 5b24cf324f
7 changed files with 172 additions and 62 deletions

View File

@@ -27,6 +27,8 @@ const client = new Client({
]
});
const avatarRotation = require('./lib/avatarRotation');
// build the button below the message that swaps the URL
const { ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
const swapRow = new ActionRowBuilder()
@@ -78,6 +80,7 @@ client.on(Events.InteractionCreate, async interaction => {
client.once(Events.ClientReady, readyClient => {
console.log(`Discord: Connected as ${readyClient.user.tag}`);
client.user.setActivity(config.status, { type: ActivityType.Custom });
avatarRotation.start(client, config);
});
client.login(config.token);