Skip to content

GraphStats/PingHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please Read The Discord TOS before using this bot

Lines You Must Update

  1. 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.


  1. 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).


  1. 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.


  1. Role ID – the role your bot will assign/ping:
const ROLE_ID = 'ROLE-ID';

✅ Replace 'ROLE-ID' with the ID of the ping role.


  1. 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.


  1. Inside sendPingToAllChannels() – replace placeholder role ping:
await randomChannel.send('<@&ROLE-ID>');

✅ Replace 'ROLE-ID' with the same role ID you want to ping.


  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •