GithubHelp home page GithubHelp logo

sirtimme / alpagotchi Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 211.03 MB

Take care of your own digital alpaca. ๐Ÿฆ™

License: MIT License

Java 99.41% Dockerfile 0.59%
alpaca tamagotchi alpagotchi discord-bot discord

alpagotchi's Introduction

Alpagotchi

Alpagotchi allows any user to create and take care of their own digital alpaca.


Alpagotchi

Table of Contents

  1. Commands overview
  2. Self-hosting
  3. Useful links

Commands overview

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

Self-hosting

Alpagotchi provides a docker image to host it yourself. The docker image can be found on dockerhub.

Important

This directory structure is needed for Alpagotchi to run:

/
โ”œโ”€โ”€ docker-compose.yml
โ””โ”€โ”€ .env

The .env file needs the following entries:

TOKEN=                      # the bot token
OWNER_ID=                   # your discord user id

# if you leave the version variables empty, Alpagotchi uses default values
POSTGRES_VERSION=
ADMINER_VERSION=
ALPAGOTCHI_VERSION=

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

The docker-compose.yml configures the following services:

  • postgres database for data storage
  • the discord bot
  • adminer for accessing the database via GUI
version: '3.8'

name: alpagotchi
services:
  database:
    image: postgres:${POSTGRES_VERSION:-15.4}
    restart: on-failure
    environment:
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_DB: ${POSTGRES_DB}
    volumes:
      - pg-data:/var/lib/postgresql/data
    ports:
      - "5432:5432"
        
  bot:
    container_name: bot
    image: alpagotchi/discord-bot:${ALPAGOTCHI_VERSION:-0.0.1}
    depends_on:
      - database
    restart: on-failure
    environment:
      TOKEN: ${TOKEN}
      OWNER_ID: ${OWNER_ID}
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_URL: ${POSTGRES_URL}

  adminer:
    image: adminer:${ADMINER_VERSION:-4.8.1}
    depends_on:
      - database
    restart: on-failure
    environment:
      ADMINER_DESIGN: pepa-linha-dark
    ports:
      - "8080:8080"

volumes:
  pg-data:

Useful links

alpagotchi's People

Contributors

dependabot[bot] avatar sirtimme avatar

Stargazers

 avatar  avatar

Watchers

 avatar

alpagotchi's Issues

Providing instructions to build the bot from source

There should be instructions or a script to let the user build the bot from source himself.

These instructions should contain:

  • the required tools and dependencies to build and run the application (and the corresponding versions)
  • the command procedure you have to execute
  • maybe a guide how to configure the bot

Besides this, the Releases-Tab should be used to provide a prebuild jar file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.