Giter Club home page Giter Club logo

dnd---openai-dungeons-dragons-dungeon-master's Introduction

Nutze OpenAIs GPT-4 als D&D Dungeon Master (Spielleiter)

Dies ist ein einfaches Skript, um die API von openAI (GPT-4) als Spielleiter (Dungeon-Master) für das Spiel Dungeons and Dragons zu nutzen.

Voraussetzung

  • Du benötigst einen API-Key von OpenAI und mindestens zugriff auf GPT-4
  • Du benötigst ein Hosting um die Dateien auszuführen.

Anleitung

  • Kopiere die Dateien in ein (geschütztes) Server-Verzeichnis. PHP 8 wird empfohlen, ist aber nicht zwinngend.
  • Füge in der Zeile 2 der Datei "apikey.php" deinen API - Key ein
  • Ändere in Zeile 14 der Datei "index.php" den Benutzername "admin" und das Passwort "admin2023"
  • Öffne die Datei "edit.php" auf dem Server: https://example.com/dnd-folder/edit.php
  • Beschreibe in dieser Datei genau, welche Version von D&D du spielen möchtest und beschreibe die Mitspieler. Klicke auf "Speichern".
  • Starte den Chat (https://example.com/dnd-folder/) und schreibe so was wie "Lass uns spielen".

Viele Vergnügen.

Anmerkung

Ich habe dieses Skript für meine Kinder angepasst. Dies sollte so auf keinen Fall auf irgendwelchen kritischen Systemen laufen. Für weitere Anpassungen bin ich offen, melde dich einfach.

#Screenshot image

Use openAI's GPT-4 as D&D Dungeon Master (Game Master)

This is a simple script to use openAI's API (GPT-4) as a game master (dungeon master) for the game Dungeons and Dragons.

Requirement

  • You need an API-Key from openAI and at least access to GPT-4
  • You need a hosting to run the files.

Instructions

  • Copy the files into a (protected) server directory. PHP 8 is recommended, but not mandatory.
  • Add your API - Key in line 2 of the file "apikey.php
  • Change the username "admin" and the password "admin2023" in line 14 of the file "index.php
  • Open the file "edit.php" on the server: https://example.com/dnd-folder/edit.php
  • In this file, describe exactly which version of D&D you want to play and describe the teammates. Click on "Save".
  • Start the chat (https://example.com/dnd-folder/) and write something like "Let's play".

Have fun.

Note

I have adapted this script for my children. This should not run like this on any critical systems. I am open for further customizations, just contact me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.