Skip to content

mboylevt/npc-spinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npc-spinner

Used for spinning NPCs based on desired traits.

Usage

There are now three interfaces:

  • GET /npc - generates an NPC, query params for race, gender, archtype, and trait count
  • POST /npc_slack - Same as above but designed for Slack integration. Returns the same data in slack-response format.Cancel changes
  • Discord bot - more details below

Slack

The slack bot listens for commands of the format /spin <race> <gender> <personality archtype> [number of traits, default 5] [caster level, default 0]

Discord Bot

In /discord_bot, you'll find a file bot.py which contains a very simple discord bot interface. You can follow these helpful instructions on DevDungeon on how to set up your discord bot - follow along, but use this code instead of the sample they've provided (be sure to enter your key where specified in order to connect to your server).

https://www.devdungeon.com/content/make-discord-bot-python

This discord bot listens for commands in the format of !spin <race> <gender> <personality archtype> [number of traits, default 5] [caster level, default 0]

Acknowledgements

Personality traits from MIT's Ideonomy site - http://ideonomy.mit.edu/essays/traits.html

Racial First/Last names from Amon Kareth: Vault of Death - https://amon-kareth-vault-of-death.obsidianportal.com/wiki_pages/pregenerated-names

Discord bot setup - DevDungeon https://www.devdungeon.com/content/make-discord-bot-python

About

Used for spinning NPCs based on desired traits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages