This bot sends messages to a specified Discord channel when a new topic is created in a specified DonanimHaber forum.
- Monitors specified DonanimHaber forums for new topics.
- Sends notifications to a Discord channel with topic details.
- Python 3.7 or higher
- A Discord bot account. If you don't know how to create a bot account, follow the instructions here.
-
Clone the repository:
git clone https://github.com/oralet86/dh-discord-habercisi.git
-
Navigate to the project directory:
cd dh-discord-habercisi
-
Install the required packages:
pip install -r requirements.txt
-
Change the name of file
.env.example
to.env
:mv .env.example .env
- Create a Discord bot and add it to your server.
- Create a
.env
file in the project root directory and add your bot token:DISCORD_TOKEN=your_discord_bot_token
-
Start the bot:
python3 main.py
-
Use the following commands in Discord: (Default prefix is dh, you may change it from the
.env
file)dhekle 'link'
: Add a forum to the watch list.dhcikar 'link'
: Remove a forum from the watch list. If no link is provided, all forums are removed.dhliste
: Gives a list of all forums watched by the current text channel.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE for details.