A telegram bot which enables /r, /roll, inline rolling with a configurable dice.
shadowrun e031cf6c7b added readme | il y a 4 ans | |
---|---|---|
src | il y a 4 ans | |
tests | il y a 4 ans | |
COPYING | il y a 4 ans | |
README.md | il y a 4 ans | |
requirements.txt | il y a 4 ans | |
telegram-bot-shadowrun | il y a 4 ans |
This bot atm provides inline rolling, as well as /roll or /r.
This installation will clone the repo, and install dependecies using a venv.
git clone "https://notabug.org/samtinel/telegram-bot-shadowrun"
python3 -m venv telegram-bot-shadowrun
.cd telegram-bot-shadowrun; . ./bin/activate
. Use a different file if you're not using bash.pip install -r requirements.txt
./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.
For the license, visit COPYING in the root dir.