A telegram bot which enables /r, /roll, inline rolling with a configurable dice.

shadowrun e031cf6c7b added readme 4 vuotta sitten
src eef71b0860 linter improvements 4 vuotta sitten
tests eef71b0860 linter improvements 4 vuotta sitten
COPYING 1c1e565c98 added src code and license information 4 vuotta sitten
README.md e031cf6c7b added readme 4 vuotta sitten
requirements.txt d53152fdbb initial - working /start /roll 4 vuotta sitten
telegram-bot-shadowrun eef71b0860 linter improvements 4 vuotta sitten

README.md

telegram-bot-shadowrun

This bot atm provides inline rolling, as well as /roll or /r.

Installation

This installation will clone the repo, and install dependecies using a venv.

  1. Clone the repo: git clone "https://notabug.org/samtinel/telegram-bot-shadowrun"
  2. Create a venv with python3 -m venv telegram-bot-shadowrun.
  3. Activate it: cd telegram-bot-shadowrun; . ./bin/activate. Use a different file if you're not using bash.
  4. Install requirements: pip install -r requirements.txt
  5. Enter your t.me/botfather token at src/config.py
  6. Start: ./telegram-bot-shadowrun run

In order to be able to use the inline rolling, activate /setinline for the bot at the botfather.

You can also take a look at the configuration at src/config.py for certain settings. There, you can also edit the possible outcomes, and with that, their weight.

License

For the license, visit COPYING in the root dir.