🤫 AnonBot
A sleek, modern anonymous confession Discord bot built with python, discord.py, and rich terminal styling.
✨ Features
-
Modular Architecture: Utilizes
discord.ext.commands.Cogvia thecogs/directory. -
Strict Channel Restriction: The
/sendcommand only works in a designated source channel (SEND_CHANNEL_ID) and forwards submissions safely to a target channel (POST_CHANNEL_ID). -
Built-in Rate Limiting: Enforces cooldowns per user (
@app_commands.checks.cooldown) to prevent spamming. -
Rich Terminal Logging: Startup sequences and diagnostics styled nicely with the
richlibrary.
📂 Project Structure
my_discord_bot/
│
├── cogs/
│ └── anonym.py
├── .env
├── bot.py
└── requirements.txt
⚙️ Configuration (.env)
Create a .env file in the root directory and configure your keys:
DISCORD_TOKEN=your_bot_token_here
GUILD_ID=your_development_guild_id_here
SEND_CHANNEL_ID=id_of_channel_where_users_type
POST_CHANNEL_ID=id_of_channel_where_confessions_appear
🚀 Installation & Running
- Clone the repository:
git clone https://github.com/wxwreak/anon-discord-bot
cd anon-discord-bot
- Install dependencies:
pip install discord.py python-dotenv rich
- Run the bot:
python bot.py
Top comments (0)