A telegram bot which enables /r, /roll, inline rolling with a configurable dice.
shadowrun e031cf6c7b added readme | 4 лет назад | |
---|---|---|
src | 4 лет назад | |
tests | 4 лет назад | |
COPYING | 4 лет назад | |
README.md | 4 лет назад | |
requirements.txt | 4 лет назад | |
telegram-bot-shadowrun | 4 лет назад |
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.