Skip to content

macterra/Luminai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luminai

Luminai is a ChatGPT bot for slack and discord

Tokens

You will need an OpenAI API key, and either a slack app token or a discord bot token.

OpenAI

Go to https://platform.openai.com/account/api-keys and create a new OpenAI API key.

Slack

Go to https://api.slack.com/apps and create a new app using the manifest.yml file. Copy the Bot User OAuth Token and the app level token. Install the app into your slack workspace.

Discord

Create a discord bot and copy the token.

Configuration

The configuration is the same for slack or discord. Change directory to the right folder (slack or discord) and copy sample.env to .env and fill in the environment variables with your tokens and key. Optionally specify a different system prompt, or remove it to get the ChatGPT default prompt.

Starting in docker

Make sure you are in the right folder (slack or discord) and start the bot with:

docker compose up -d

Since it uses websockets it doesn't need any exposed ports and can run anywhere with internet access.

Commands

/reset will reset Luminai's memory to the original system prompt

/reset [prompt] will reprogram Luminai to use a new system prompt.

About

Luminai ChatGPT slack bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published