A powerful chatbot designed to aid Dungeon Masters and players in their epic D&D adventures. Using OpenAI's gpt-3.5-turbo engine, my chatbot offers fast and dynamic responses to assist with rules, lore, and storytelling.
- ๐ฒ Rule clarifications
- ๐ Lore explanations
- ๐ง Character and NPC generation
- ๐บ๏ธ World-building suggestions
- ๐ค Seamless integration with both Python and JavaScript
- Python 3.x
- Node.js and npm (for the JavaScript version)
- Clone the repository:
git clone https://github.com/Svenson-Maximus/DnD-Chatbot.git
cd DnD-Chatbot
Install the Python dependencies, including python-dotenv:
pip install -r requirements.txt
pip install python-dotenv
(For the JavaScript version) Install the necessary npm packages:
npm install
python dnd_helper.pynpm startFollow the on-screen instructions to interact with the chatbot.
Create a .env file in the root directory. Add the following line, replacing YOUR_API_KEY with your actual API key:
OPENAI_API_KEY=YOUR_API_KEYNOTE: Never commit your API key or make it public!
This project is licensed under the MIT License.
Crafted with โค๏ธ by Svenson Maximus. Embark on a journey with us in the fantastical realm of Dungeons & Dragons!
Note: Always ensure you adhere to OpenAI's use-case policy when leveraging the API for any project.