- TheTinMen Posts Database
- TheTinMen Posts Classifier
- Scarecrow - Discord Bot
Scarecrow is a Discord bot used in TheTinMen Discord Server to announce new posts published in the Instagram profile. It also provides easy to use functions to browse the posts database. It's written in Python and is currently self-hosted in a Raspberry Pi.
- Python 3.11
First, you need to clone the repositiory.
git clone https://github.com/BackThePortal/scarecrow.git
If you're on Windows, use setup.bat
to prepare the .env file and run the bot automatically.
During setup, a Notepad window will pop up. Set the Discord API token there.
-
Create the .env file.
Copy the .env.example and set the Discord API token.
-
Install dependencies
Use
pip install -r requirements.txt
-
Run `main.py.
Use
python main.py
This bot is uses the library discord.py, but I'm planning on switching to its fork nextcord.
- Scarecrow automatically generates a file called
channel.txt
, where it stores the ID of the target channel. Do not edit nor create this file manually, as it might prevent the bot from functioning properly.