This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url = "https://discordbots.org/api/bots/<your bot id>/stats" | |
payload = {"server_count": str(len(bot.guilds))} | |
headers = {"Authorization": 'dbl token'} | |
r = requests.post(url, data=payload, headers=headers) | |
await print("[+] Guild change detected, posting guild count to DBL") |