Discord Bot Using GPT3.5 to Roleplay as Hanyuu from Higurashi no Naku Koro Ni

This discord bot responds to messages in all channels when the message starts with "hanyuu". More features are also present, which will be documented as they stabilize.

Requirements

  • A Discord bot
  • An OpenAI account with some credits. Disclaimer: using GPT 3.5 is not free and consumes credit! Proceed with care.

Usage

Install requirements: pip install -r requirements.txt

Create a file in the working directory called secrets.json, containing two fields:

  • DISCORD_API_KEY containing the Discord bot's API key ;
  • OPENAI_API_KEY containing your OpenAI API key.

Then, run python hanyuu.py.

To run it as a daemon (in the background), you can run tmux, run python hanyuu.py, and then press Ctrl+D and B to detach. To attach to it again in the future, run tmux a.

S
Description
Auau~! I will answer your questions!
Readme
34 KiB
Languages
Python 100%