The bot reads the heart beat messages and converts the IDs and additional information into a list of active contributors. It also sets inactive users as offline.
Heart beat status for Arturo's PTCGP bot (His version 6.2.6beta)
Guide for HBM004.py:
-
Make a bot on discord: Go to discord developer portal website
- Click New Application
- Go to OAuth2 page, check off the Bot square
- In the new checkboxes that appear, you want to check off "View Channels", "Send Messages", and "Read Message History".
- Click copy, and then paste the link in to your browser. Invite the bot to your server.
- Go to the Bot tab on the left, click reset token and save the string of symbols in a safe place like a .txt file.
- Scroll down and enable "Message Content Intent".
-
Open your python interpreter of choice:I used pycharm, but VS code should also work.
- Open the HBM004.py file
- Do the following commands in the terminal:
- pip install python
- pip install audioop-lts
- pip install numpy
- Copy the user ID of the heartbeat webhook. Paste into line 19. (Right click o the username and select "Copy User ID". Make sure you have developer mode turned on in discord).
- Copy the channel ID of where the webhook is sending messages, and paste it into line 20.
- Copy the channel ID of where you want to post the status message, and paste it into line 21.
- Copy the channel ID of where you want to post the warning messages that ping users who have less than 3 instances running, and paste it into line 22.
- Copy the discord bot token into line 23.
-
Run the script.
Tips:
- Make sure the heart beat user id field in the AHK window (heartBeatName in settings.ini) only contains the discord user ID of the person.
- Make sure to have a seperate webhook for the god packs and the heart beat for it to run properly.
- If you want to turn off warning messages, set line 28 to 0.
- This script will hit the discord character limit at around 37 users. If you want to remove/ edit any part of the lines that are sent you can find it at line 78.

