dsernst / signal-gpt

Signal Bot to use ChatGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

signal-gpt

Signal Bot to interact with ChatGPT.

How it works:

  1. signal-http listens for new messages, forwarding them over here.
  2. index.ts hears there's a new message, and checks if it matches any of the known commands (registered by creating a file in commands/ dir)
  3. 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.

Running yourself

  1. Fork and clone down this repository.
  2. Install dependencies: yarn
  3. Fill out your own .env file (see the .env.example in signal-http repo)
  4. Start the bot up with yarn dev

About

Signal Bot to use ChatGPT


Languages

Language:TypeScript 87.6%Language:Dockerfile 9.9%Language:JavaScript 2.6%