Quarantine users who post tokens, and invalidate those tokens by posting them to a public GitHub gist. Based on code from Rapptz/RoboDanny.
Requires Python 3.8 and Poetry
- Install dependencies with
poetry install
- Create and populate a
.env
file - Run with
poetry run python -m main
All variables are required.
DISCORD_TOKEN
- Your Discord bot's tokenGITHUB_TOKEN
- Your GitHub Personal Access TokenQUARANTINE_ROLE_ID
- The role to apply to users posting tokensALERT_CHANNEL_ID
- The channel to post alerts to