{"id":21803284,"url":"https://github.com/tru-dev/utilrpg2","last_synced_at":"2026-05-16T21:32:58.277Z","repository":{"id":137820305,"uuid":"434785586","full_name":"Tru-Dev/UtilRPG2","owner":"Tru-Dev","description":"A bot that rolls dice for tabletop RPGs.","archived":false,"fork":false,"pushed_at":"2021-12-04T02:14:20.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T07:21:51.498Z","etag":null,"topics":["dice","dice-roller","discord","discord-bot","elixir","nostrum","ttrpg"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tru-Dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-04T02:14:08.000Z","updated_at":"2021-12-04T02:15:48.000Z","dependencies_parsed_at":"2024-03-26T09:15:52.518Z","dependency_job_id":null,"html_url":"https://github.com/Tru-Dev/UtilRPG2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tru-Dev/UtilRPG2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tru-Dev%2FUtilRPG2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tru-Dev%2FUtilRPG2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tru-Dev%2FUtilRPG2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tru-Dev%2FUtilRPG2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tru-Dev","download_url":"https://codeload.github.com/Tru-Dev/UtilRPG2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tru-Dev%2FUtilRPG2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33119408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dice","dice-roller","discord","discord-bot","elixir","nostrum","ttrpg"],"created_at":"2024-11-27T11:41:13.294Z","updated_at":"2026-05-16T21:32:58.260Z","avatar_url":"https://github.com/Tru-Dev.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UtilRPG2 \u003c!-- omit in toc --\u003e \n\nA bot that rolls dice for tabletop RPGs.\n\n## Table of Contents \u003c!-- omit in toc --\u003e \n- [Setup](#setup)\n- [Running the Bot](#running-the-bot)\n- [Commands](#commands)\n  - [Dice](#dice)\n  - [Util](#util)\n- [License](#license)\n\n## Setup\n\n```console\n$ git clone https://github.com/Tru-Dev/UtilRPG2\n```\n\nIn `config/config.exs`, under `config :utilrpg2`, is the `dev` option.\nWhen this is enabled, all commands will be registered as guild commands\nin the guild specified in `guild.txt` for testing purposes.  \nOnce you are ready to deploy, set `dev: false`.\n\nMake sure you provide these files for the default config file to work:\n- `token.txt`: The bot's token.\n- `guild.txt`: A guild id. Used for:\n  1. Testing commands when `dev: true`.\n  2. Registering the bot's control commands.\n- `owner.txt`: Your user id, to ensure you can use the bot's control commands.\n\n## Running the Bot\n\nIn the UtilRPG2 directory, run `mix run --no-halt`:\n\n## Commands\n\nCommands will follow the notation below:  \n/COMMAND arg [optional-arg]\n\n### Dice\n\n/check [advantage] [modifier]  \nMakes a d20-based ability check.  \nArguments:\n- advantage: Roll with advantage or disadvantage.  \n  Choice of either `advantage` or `disadvantage`.\n  Defaults to not applying either.\n- modifier: Modifier applied to check.  \n  Integer value, defaults at 0.\n\n/roll kind [amount] [modifier]  \nRolls one or more dice of a kind.  \nArguments:\n- kind: Kind of dice to roll. Required.  \n  Integer value greater than 1.\n- amount: Amount of dice to roll (default 1).  \n  Integer value greater than 0, defaults at 1. \n- modifier: Amount to add or subtract from your roll(s).  \n  Integer value, defaults at 0.\n\nAll dice commands composed of d*number* (/d100, /d20, /d12, /d10, /d8, /d6, /d4)\nbehave the same as /roll with the kind argument set to the number in the command.\nThey exist for shorthand purposes.\n\n### Util\n\n/refresh  \nOwner-only, refreshes the bot's commands.\n\nInternally, it retries registering/updating/deleting commands as necessary.\n\n## License\nThis bot's source is licensed under [the MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftru-dev%2Futilrpg2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftru-dev%2Futilrpg2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftru-dev%2Futilrpg2/lists"}