A small Discord bot currently set up as an easier way to resolve ShadownRun 5 tests. It reads and sends messages in the channel they're invited to. It calculates the hits and whether you (critically) glitched.
Commands always start with !sr-
to trigger the robot to answer and calculate.
This will roll the specified X amount of dY dice collections and calculate a sum result based on it with the provided collection of Z modifiers.
Ex.: !sr-roll 4d6 1d8 2 -1
X
: Amount of dice to roll.Y
: Amount sides of the requested dieZ
: Modifiers for the end result (optional)
This will roll an amount of 6d dice based on the collection of attribute values passed in and calculate the ShadowRun result based on the values and provided limit.
In other words, this will sum up all values provided first.
Ex.: !sr-test 1 4 2 [3]
X Y ...
: List of attribute and skill values to use in a test. It makes a sum of these values to use as the dice pool for the roll.[Z]
: Limit of hits (Optional)
Run the following commands in the root of the repository to build and run the bot.
Store the Discord token in a local-only .env
file in the src/ShadowRoller.DiscordBot
folder.
docker build --pull --rm -t shadowrollerdiscordbot:latest -f "src\ShadowRoller.DiscordBot\Dockerfile" .
docker run --rm --env-file ./src/ShadowRoller.DiscordBot/.env --name shadowrollerdiscordbot shadowrollerdiscordbot:latest
Run the following commands in the root of the repository to build and run the QA container.
docker build --pull --rm --target test -t shadowroller:qa-tests . docker run --rm -v ${pwd}\TestResults-Docker:/source/tests/TestResults shadowroller:qa-tests
docker build --pull --rm --target mutation -t shadowroller:qa-mutation . docker run --rm --env-file .env -v ${pwd}\MutationResults-Docker:/source/MutationResults shadowroller:qa-mutation
https://github.com/dotnet/dotnet-docker/blob/main/samples/complexapp/README.md