Skip to content

Relay ChatGPT questions and answers from Discord

License

Notifications You must be signed in to change notification settings

rogueocelot/chirp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1c39c63 · Aug 24, 2023

History

9 Commits
Aug 19, 2023
Aug 20, 2023
Aug 24, 2023
Aug 24, 2023
Aug 24, 2023
Aug 24, 2023

Repository files navigation

Chirp

Chirp uses the Discord and OpenAI APIs to receive and answer ChatGPT prompts from Discord.

Running

Prerequisites

Running requires creating a Discord Application, as well as an OpenAI API key. The Discord bot will also need to be added to a server.

Put the Discord token and OpenAI access tokens in a .env file with the following syntax:

discordtoken='yourkeyhere'
openaitoken='yourkeyhere'

There are three required gems to install:

Running:

After installing all prerequisites, the program can be run with:

ruby chirp.rb

Use:

Messages:

Ask chirp a question using the following format in discord:

chirp [question body here]

Example usage:

Example Usage

Images:

Chirp supports DALLE images using the following format:

chirp paint [prompt here]

It returns a URL, which should be automatically embedded by Discord.

Example usage:

Example Usage

About

Relay ChatGPT questions and answers from Discord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages