a dead-simple Discord bot for managing locked-down server environments
i initially made this bot for a specific server i'm in where we need to manage a locked-down environment. we needed a simple bot to manually approve new joins to the server before they were able to see any channels. the code is posted here because i noticed i haven't posted many of my projects and i've decided to begin doing so.
- make a bot account
- enable
members
andmessage_content
intents git clone https://github.com/tmp/sentinel
pip install discord
- edit
bot_config.py
with the bot token touch sentinel.sqlite3
- add your user ID to the admin_users table (can use DB Browser for SQLite)
python3 sentinel.py
- invite the bot to a server
- register the server using
/register_server guild_id admin_role_id verified_role_id alert_channel_id
either in direct messages or inside a channel the bot can see + use slash commands in - that's it. when a new member joins the server you'll need to manually approve them through sentinel before they're able to see anything else.