Moacyr is a multipurpose Discord bot in early development stage, written in Python 3 and based on the discord.py library.
Invite to Server | Command List
- Execute code in many popular languages
- Create user binds to easily save text snippets
- Integration with Steam Community and Workshop
- Find an anime by uploading one of its frames.
- Other minor commands
More will be added later on. Feel free to suggest new features.
First, you will need to create a Discord bot. Fortunately, discord.py already has an uncomplicated tutorial for this.
Set up the following environment variables in your system in order to proceed. Note that some are optional.
Variable | Description |
---|---|
BOT_TOKEN | The Discord bot auth token. (Required) |
STEAM_KEY | A Steam Web API key. |
LOG_GUILD | The log guild ID. |
LOG_CHANNEL | The log channel ID. |
Tip
The project also supports .env files for environment configuration.
You can simply install Python 3.12 (or later) along with the project dependencies. I highly recommend creating a Virtual Environment, especially in Linux environments.
# Installing dependencies
pip install -r requirements.txt
# Running
python main.py
Alternatively, a preconfigured Dockerfile is available for a quicker setup. It should be compatible with both Docker and Podman.
# Building the image
docker build --tag moacyr:3.12 .
# Running
# Replace "token_here" with the actual token
docker run --name moacyr --env BOT_TOKEN=token_here moacyr:3.12
If you're using Podman, simply replace docker
with podman
in the above commands.