Shard activity
i aim to set an activity for each individual running shard. the problem with my code is once another shard begins the bot activity is fully gone. how can i achieve my goal?
bot.once(Events.ClientReady, async () => {
shardId = bot.shard.ids[0];
bot.user.setActivity({
name: `/help | Shard ${bot.shard.ids[0]}`,
type: ActivityType.Watching,
shardId: bot.shard.ids[0],
});
if (shardId === 0) {
console.log("Started Source");
client.login(process.env.SOURCE_TOKEN);
}
});