Skip to content

super duper simple hikari python discord chatbot i made for some friends that uses openai (or openai compatible) api

License

Notifications You must be signed in to change notification settings

cpuQ/hikari-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

installation

git clone https://github.com/cpuQ/hikari-chatbot.git
cd hikari-chatbot
python -m pip install -r requirements.txt

Note

i only tested it with python 3.11 on windows lol

setup

open the .env file and put in your openai api key and discord bot token

OPENAI_API_KEY = put api key here
DISCORD_BOT_TOKEN = pur token here 

Important

DO NOT put quotes around them "like this"

and then you can run it with

python main.py

configuration

open the config.json file in chat/plugins/ in any text editor and configure stuff there :P

{
  "openai": {
    "base_url": "", <- this is only for inferencing with local models using something like LMStudio
    "model": "gpt-4o-mini",
    "temperature": 1.0,
    "presence_penalty": 1.0,
    "frequency_penalty": 1.0,
    "top_p": 0.5,
    "max_tokens": 1024
  },
  "bot": {
    "max_chat_history": 21,
    "channels": []
  }
}

About

super duper simple hikari python discord chatbot i made for some friends that uses openai (or openai compatible) api

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages