A Discord self-bot for managing automated promotional posts in chat and forum channels, with Telegram notification support. This bot automatically deletes previous posts before sending new ones and monitors DMs and forum thread replies.
Note: This project is for personal use and educational purposes. Be sure to follow Discord's Terms of Service.
- Automated posting in specified chat channels and forum channels
- Deletes previous posts before sending new ones
- Monitors DMs and replies to your forum threads
- Sends real-time notifications via Telegram
- Human-like sleeping behavior between actions
- Python 3.10+
- A Discord account with access to the target channels/forums
- Telegram Bot Token and Chat ID for notifications
- Clone this repository:
git clone https://github.com/https://github.com/gold-mouse/Discord-bot.git
cd Discord-bot
- Install dependencies:
pip install -r requirements.txt
- Edit the configuration files:
chat_channel_ids.cfg
: Each line should contain a Discord chat channel ID.forum_channel_info.cfg
: Each line should contain a Discord forum channel ID and tag IDs.
Example chat_channel_ids.cfg
:
123456789012345678
987654321098765432
Example forum_channel_info.cfg
:
123456789012345678: 1304498930339283038, 1304499090813616250, 1304499118433108011
987654321098765432: 1304498930339283038
987654321098765432: 0 # If it doesn't require tag
Note
- You Must follow above format because: *
with open("forum_channel_info.cfg", "r") as f:
for line in f.readlines():
id_and_tags = line.split(": ")
id = id_and_tags[0]
tags = id_and_tags[1].split(", ")
forum_channel_info[id] = [int(id) for id in tags]
- Add .env file:
DISCORD_AUTH_TOKEN=YOUR_AUTHORIZATION
TELEGRAM_BOT_TOKEN=YOUR_BOT_TOKEN
TELEGRAM_CHAT_ID=YOUR_CHATID
MIN_DELAY=20 # Note: the unit is a minute
MAX_DELAY=40 # Note: the unit is a minute
- Edit promo.txt file The file has to follow bellow format:
title
---
content
- Run the bot:
python main.py
- The bot only operates between 05:00 - 22:00 UTC.
- Any failed channels are removed from the posting loop to avoid repeated errors.
- The bot uses a message cache for lightweight memory management.
MIT License
Using self-bots violates Discord's ToS. This bot is for educational and personal use only. Use it at your own risk.