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);
}
});
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);
}
});