Skip to content

perryhq/DnDRPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D&D RPC for Discord

Basic Discord RPC for Dungeons & Dragons.

Usage

dnd-rpc [options]

Options:
  -n, --name <name>                                           Character name
  -c, --class                                                 Character class
  <artificer|barbarian|bard|cleric|druid|fighter|monk|paladin|ranger|rogue|sorcerer|warlock|wizard>
  -l, --level, --lvl <level>                                  Character level
  -C, --color <black|red|silver|white>                        Color for the D&D logo that appears on Discord [default: red]
  --dm, --is-dm                                               If you're the DM [default: False]
  --version                                                   Show version information
  -?, -h, --help                                              Show help and usage information

Supports all classes from the Player's Handbook and the Artificer. Unless you are the DM (marked with the --dm flag) you need to pass a character name, class and level (between 1 and 20). You can also pass the color for the D&D logo that will be displayed on Discord.

Build and Run

Requirements

  • .NET SDK 8
  • Discord Game SDK

Steps

  1. Download the Discord Game SDK
  2. Copy the csharp folder into the root of the project.
  3. Rename it to DiscordGameSDK.
  4. Run dotnet publish -c Release -r (your os' rid)
  5. Copy the appropriate binary file from the Discord Game SDK into the publish folder
  6. Download the D&D 5e vector icons from morepurplemorebetter
  7. Turn the class icons into 1040 x 1040 PNGs
  8. Create a discord application
  9. Go to Rich Presence > Assets
  10. Upload the PNGs to the Assets tab
    1. Name each of them the class name entirely in lowercase (eg. rogue)
  11. Get the ampersand version of the D&D logo (there's black, red, white and silver options, all of them are needed)
    1. Resize the images if they're not big enough
    2. Add them to the Assets tab with the names set to ampersand_color (eg. ampersand_red)
  12. Add your application ID as a environment variable named DISCORD_CLIENT_ID

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages