| Usage | Task |
|---|---|
| buy [itemName] [1-10] | Buys the amount of items from the shop |
| feed [itemName] [1-5] | Feeds the alpaca with the item |
| gift [@user] [itemName] [1-5] | Gifts the amount of items to the mentioned user |
| help | Displays all commands of Alpagotchi |
| inventory | Shows the bought items from the shop |
| alpaca | Shows your alpaca and his stats |
| nick [nickname] | Gives your alpaca a nickname |
| pet | Increases joy of your alpaca |
| shop | Displays all items which can be bought |
| balance | Shows your balance of fluffies |
| work | Work to earn a random amount of fluffies |
| sleep [minutes] | Let your alpaca sleep and regenerates energy |
| outfit [outfit] | Change the appearance of your alpaca |
| delete | Deletes all of your stored data |
| init | Initialize your alpaca in the database |
| language | Sets the bots' language within a guild |
Important
This directory structure is needed for Alpagotchi to run:
/
├── compose.yaml
└── .env
The .env file needs the following entries:
# Postgres
POSTGRES_VERSION= # the version of Postgres you want to run (18+ is recommended)
POSTGRES_USER= # the database username of your choice
POSTGRES_PASSWORD= # the database password of your choice
POSTGRES_URL= # the jdbc url of the postgres database
POSTGRES_DB= # the database name of your choice
# Alpagotchi
TOKEN= # the bot token
OWNER_ID= # your Discord user id
The compose.yaml configures the following services:
- a Postgres database for data storage
- the Discord bot
services:
database:
image: postgres:${POSTGRES_VERSION}
container_name: alpagotchi-database
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- pg-data:/var/lib/postgresql
bot:
build:
context: .
dockerfile: Dockerfile
container_name: alpagotchi-bot
environment:
OWNER_ID: ${OWNER_ID}
TOKEN: ${TOKEN}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_URL: ${POSTGRES_URL}
depends_on:
- database
restart: unless-stopped
volumes:
pg-data: