Jeffrey-Fazal / dndchatbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

D&D DM Chatbot

An interactive chatbot for Dungeons & Dragons enthusiasts. Pose your scenarios, and get immersive and creative responses from our AI Dungeon Master.

Features:

  • Interactive Chat Interface: Engage in a conversation with the AI Dungeon Master.
  • Real-time Response: Get immediate feedback on your scenarios.
  • Session Management: Continuous chat history for seamless interactions.

Prerequisites:

  • Node.js
  • npm

Setup:

  1. Clone the repository:

    git clone [repository_link]
    
  2. Navigate to the project directory:

    cd [project_directory]
    
  3. Install dependencies:

    npm install
    
  4. Set up your environment variables:

    Create a .env file in the root directory and add the following:

    OPENAI_API_KEY=your_openai_api_key
    
  5. Start the server:

    node server.js
    

Usage:

  1. Open a browser and navigate to http://localhost:3000.
  2. Enter your D&D scenario in the provided textarea.
  3. Click 'Submit' and wait for the AI Dungeon Master's response.
  4. Engage in an interactive session with the AI, simulating a D&D game.

Contributing:

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License:

MIT

About


Languages

Language:JavaScript 68.2%Language:HTML 21.1%Language:CSS 10.6%