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.