Skip to content

Instantly share code, notes, and snippets.

View jacc's full-sized avatar
☁️

Jack LaFond jacc

☁️
View GitHub Profile
@jacc
jacc / post.py
Last active December 27, 2018 19:32
Post to DBL using discord.py instead of using DBLPy
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")