Skip to content

BackThePortal/scarecrow

Repository files navigation

TTM Ecosystem

Scarecrow

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.

Requirements

  • Python 3.11

Installation

First, you need to clone the repositiory.

git clone https://github.com/BackThePortal/scarecrow.git

Quick install

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.

Manual install

  1. Create the .env file.

    Copy the .env.example and set the Discord API token.

  2. Install dependencies

    Use pip install -r requirements.txt

  3. Run `main.py.

    Use python main.py

Architecture

This bot is uses the library discord.py, but I'm planning on switching to its fork nextcord.

Things to consider

  • 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.

About

Custom bot for TheTinMen Discord server.

Resources

Stars

Watchers

Forks

Packages

No packages published