Git Product home page Git Product logo

pubobot's Introduction

Pubobot

Development Setup

Install poetry for your system.

Create a config.cfg file and add the following:

DISCORD_TOKEN = "your_discord_token"

For more options, see config.cfg.example.

Install dependencies and execute with poetry:

$ poetry install
$ poetry run pubobot

Deploying

Build

$ docker build -t pubobot .

Docker

For persistence, mount volumes /pubobot/data and /pubobot/logs.

$ docker run -d \
    -e PUBOBOT_DISCORD_TOKEN="...your bot token.." \
    -v pubobot-data:/pubobot/data \
    -v pubobot-logs:/pubobot/logs \
    pubobot

Alternatively, you can a config file matching config.cfg.example and mount to /pubobot/config/config.cfg.

$ docker run -d \
    -v path/to/config.cfg:/pubobot/config/config.cfg \
    -v pubobot-data:/pubobot/data \
    -v pubobot-logs:/pubobot/logs \
    pubobot

Docker Compose

A compose.yaml file is provided for your convenience. You will need to create a .env file and set your discord token:

.env

PUBOBOT_DISCORD_TOKEN=..bot token..

Bring up

$ docker-compose up

pubobot's People

Contributors

tchoedak avatar hvownij avatar aldehir avatar dcramps avatar rayneh avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

aldehir rayneh

pubobot's Issues

Add .nomic command

If a player types .nomic their name should show with 🚫🎀 in player lists so captains know they're nomic

Typing .nomic again should remove it

Build container in CI

Build the container in CI and push to ghcr.

Tag images such that:

  • refs/tags/v1.0 -> :latest, :1, :1.0

Make player list formats consistent

Team listings are all annoyingly inconsistent. They should always use the same format.

Current formats

.who / .ls elim:

[elim (6/8)] player1 / player2 / player3 / player4 / player5 / player6

.j elim:

[elim (6/8)]

During picking

πŸ”΄ ❲player1❳
πŸ”₯VERSUSπŸ”₯
🟦 (player2❳

Unpicked:
[1. player3, 2. player4, 3. player5, 4. player6, 5. player7, 6. player8]

Teams picked

πŸ”΄ ❲@player1 @player3 @player4 @player5❳
πŸ”₯VERSUSπŸ”₯
🟦 (@player2 @player6 @player7 @player8❳

.last

Pickup #30, 0:06:53 ago [elim]: [player1 player3 player4 player5] vs [player2 player6 player7 player8]

Add .teams

.teams should list the teams from the last pug (similar output to .last but without a timestamp?)

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.