Skip to content

WouterBau/ShadowRoller

Repository files navigation

Build Status Azure DevOps tests Azure DevOps coverage Coverage Lines of Code

Technical Debt Vulnerabilities Code Smells Bugs Mutation testing badge

ShadowRoller

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

Commands always start with !sr- to trigger the robot to answer and calculate.

Roll amount dice !sr-roll XdY... Z ...

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 die
  • Z : Modifiers for the end result (optional)

Test by abilities and skills !sr-sr5 X Y ... [Z]

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)

Build & Run

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

Dockerized QA

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

Documentation

https://github.com/dotnet/dotnet-docker/blob/main/samples/complexapp/README.md

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published