Skip to content

Instantly share code, notes, and snippets.

View TheKodeToad's full-sized avatar

TheKodeToad

View GitHub Profile
@advaith1
advaith1 / top bots.md
Last active July 23, 2024 20:49
The top Discord bots ranked by server count
Rank Bot Approximate Server Count Library
1 MEE6 21,500,000 Custom Python
2 Rythm 🪦 15,200,000 JDA
3 Groovy 🪦 10,300,000 JDA, Discord4J
4 carl-bot 🅱️ 10,300,000 Pycord
5 ProBot

Security Guide for Discord Bots using discord.py

Discord bots, just like web servers, deal with untrusted data. Most of those bots implement interactive commands, which makes the attack surface significantly larger. This guide is to improve security of Discord bots.

Security is usually represented by the three elements of CIA (not related to the agency) - Confidentiality, Integrity, and Availability.

  • Confidentiality: Protecting your secrets (and others' secrets) from attackers. "Secrets" include your bot token, message contents and other PII, files stored on your computer and other private data.
  • Integrity: Protecting your data from manipulation by attackers. "Manipulation" can vary from compromising the host computer to improper permissions/roles assignment or data spoofing/tampering (e.g. cheating in a chess game to obtain points).
  • Availability: Protecting your bot from crashes or similar situations. Examples include infinite loop, blocking codes and error handling issues.

Here are some tips to im

@Moulberry
Moulberry / lcch.py
Created December 6, 2021 06:38
LCCH Generator
#!/bin/python3
from PIL import Image
import math, base64
i = Image.open("lcch.png")
pixels = i.load()
width, height = i.size
[
"928350122843193385",
"1185047194261274665",
"956202276408688650",
"956104664821157918",
"1185047092478095443",
"1185046791826178099",
"1185047045413797898",
"928483283698851901",
"1185047444619284641",