Signal Bot to interact with ChatGPT.
- signal-http listens for new messages, forwarding them over here.
index.ts
hears there's a new message, and checks if it matches any of the known commands (registered by creating a file incommands/
dir)commands/gpt.ts
is the most interesting one. It passes the query to the ChatGPT API, then forwards the response back to signal-http as a reply.
- Fork and clone down this repository.
- Install dependencies:
yarn
- Fill out your own
.env
file (see the.env.example
in signal-http repo) - Start the bot up with
yarn dev