dmkilday has taken over the master copy at https://github.com/dmkilday/GameMasterGPT.
Running a D&D bot via OpenAI API
- Tested on Python 3.7.4
- An OpenAI secret key, retrievable at platform.openai.com. Rename oauth_secret.py.dist to oauth_secret.py, and copy your key into the secret_key variable within.
To install required libraries, run "pip install -r requirements.txt".
- At the command line type "python d7d.py".
- When prompted for a character sheet type the name of a text file (in the Data directory) containing the character's details.
- When prompted, enter an adventure premise. To have the DM generate a premise based on your character sheet, just hit enter when prompted for the premise.
- Once a premise has been specified, the DM will start your adventure. When prompted to roll, simply type your roll in the format [die count]d[die size]. For example, to roll one 20 sided die, you would type 1d20 (or just d20 if you are only rolling 1 die) and hit Enter. The program will roll for you and report back to the DM your roll results.
Player Menu
- Character Generation
- Input your name, race, class, & background (let me provide ones)
- Input your Level 1 stats (or let me provide one)
- What level is your character now?
- Input level-up stat increases or optional feats (or I can provide them for you).
- What level is your character now?
- Input your backstory and description (height/hair color/eye color/gender), or let me provide one.
- For user-provided backstory, process length and content, optionally prompt to offer expansion if it's short.
- Input known/learned spells for spellcasters (or let me pick)
- Input equipment in addition to class/background equipment (or let provide it)
- Your L1 character started with X gold/silver/copper. Do you have any other items of value?
- Do you want to spend any of that to buy more equipment now (I can make recommendations too)?
- Your L1 character started with X gold/silver/copper. Do you have any other items of value?
- Input your flaws, bonds, and other features (or let me suggest a few based on your backstory (and the backstories of other players in the case of bonds)).
Written by Damian Kilday and Daniel Powell