A discord bot that is used for guessing the speed of a pitch and getting points based on how close you are
Go to file
c0de a774d0a0fc It's baseball, not ghostball :) 2022-11-12 01:00:24 -06:00
.vscode Sync vscode settings because why not 2022-11-11 20:16:25 -06:00
database It's baseball, not ghostball :) 2022-11-12 01:00:24 -06:00
discord_client It's baseball, not ghostball :) 2022-11-12 01:00:24 -06:00
game Nedc to set difference to the class 2022-11-12 00:02:14 -06:00
.gitignore Create lint log 2022-10-24 20:05:21 -05:00
Dockerfile It's baseball, not ghostball :) 2022-11-12 01:00:24 -06:00
Pipfile Get rid of original/reference code, move everything to root 2022-11-11 20:45:49 -06:00
Pipfile.lock Get rid of original/reference code, move everything to root 2022-11-11 20:45:49 -06:00
lint.sh Get rid of original/reference code, move everything to root 2022-11-11 20:45:49 -06:00
main.py It's baseball, not ghostball :) 2022-11-12 01:00:24 -06:00
readme.md update readme 2022-10-30 22:56:41 -05:00
run.sh Get rid of original/reference code, move everything to root 2022-11-11 20:45:49 -06:00

readme.md

Discord Ghost Ball Bot

A bot that will listen on a discord channel, accpeting commands.
The main commands are !start, !guess [int] and !resolve [int].

The integer will be between 1 and 1000, and the person with the closest guess will win points.

The point scale is:

  • 0-25 - 100 pts
  • 26-50 - 75 pts
  • 51-75 - 50 pts
  • 76-100 - 25 pts

There should also be a running total for each player that can be checked with a command.

Requirements

You will need a discord bot already set up and supply an auth token.

Python requirements can be installed with pipenv install (install pipenv with pip3 install pipenv)

Usage

All of the new bot code is in the GhostBallBot folder. This documentation is for the new code.

The original code is in src. Feel free to try to get this working.

  1. Install the python requirements
  2. Add discord token to run.sh
  3. Execute run.sh
  4. Bot should then connect to discord and start responding to commands defined in game.py

Roadmap

Things that would be nice to add:

  • (yaml) Config file for tweaking various internals
  • Admin commands: table clear, record deletion, record update
  • Audit log of admin commands, and previous values for anything changed