actually get profile picture rotation
All checks were successful
Build and Push Docker Image / build (push) Successful in 48s
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:
3
index.js
3
index.js
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user