Please Read The Discord TOS before using this bot
- Bot Token – at the bottom of your file:
client.login('YOUR-BOT-TOKEN');
✅ Replace 'YOUR-BOT-TOKEN'
with your actual bot token from the Discord Developer Portal.
- Target Guild ID – line near the top:
const TARGET_GUILD_ID = 'GUILD-ID';
✅ Replace 'GUILD-ID'
with the ID of your Discord server (right-click the server → Copy ID).
- Target Channel ID – where the bot sends embeds and role messages:
const TARGET_CHANNEL_ID = 'CHANNEL-ID';
✅ Replace 'CHANNEL-ID'
with the channel ID for your stats/embed messages.
- Role ID – the role your bot will assign/ping:
const ROLE_ID = 'ROLE-ID';
✅ Replace 'ROLE-ID'
with the ID of the ping role.
- Excluded Channels – optional, channels the bot should not ping:
const EXCLUDED_CHANNELS = ['CHANNEL-ID', 'CHANNEL-ID'];
✅ Replace these with the IDs of any channels where the bot shouldn’t send pings.
- Inside
sendPingToAllChannels()
– replace placeholder role ping:
await randomChannel.send('<@&ROLE-ID>');
✅ Replace 'ROLE-ID'
with the same role ID you want to ping.
- Embed & Interval Settings (optional tweak):
const EMBED_INTERVAL_MS = 5000;
const PING_INTERVAL_MS = 100;
✅ Adjust these if you want faster/slower updates.
💡 Tips:
- Make sure your bot has proper permissions (Send Messages, Manage Roles).
- Never share your bot token publicly.
- Restart the bot after updating any IDs.