This repository contains Python scripts for a Discord bot tailored for Clash of Clans recruitment purposes. The bot is designed to extract relevant user information from Discord messages, filter messages based on timestamps, and interact with users through direct messages.
Ensure you have Python installed on your system. This project requires the following dependencies managed via Poetry:
requests
: for making HTTP requests to the Discord API.python-dotenv
: for loading environment variables from a.env
file.poetry
: for managing Python dependencies.
You can install Poetry using the following command:
curl -sSL https://install.python-poetry.org | python -
Once Poetry is installed, navigate to the project directory and run:
poetry install
Create a .env file in the root directory of the project and set the following environment variables:
DISCORD_TOKEN=<your_discord_token>
CLAN_TAG=<your_clan_tag>
SEND_MESSAGE=<False or True>
run the following command
poetry run python -m coc_recruiter_bot.main