Git Product home page Git Product logo

signal-chatgpt's Introduction

The Signal-ChatGPT Relay makes an OpenAI chatbot available over Signal messenger.

This is good for those who need AI on an airplane, as some airlines provide free messaging service for Signal. It may also be useful in jurisdictions where ChatGPT is not available. It gives some extra control of the model such as modifying the system prompt.

Active instance

Message +1-775-235-2686 on Signal, or add it to your contacts with the QR code below.

Down due to signald problems

vcard2

Dependencies and installation instructions

This mostly uses the Semaphore library for Signal functionality.

You can run your own or modify this bot with a Signal number you control. You should register the number on a phone (perhaps with a Google Voice number), and then link it with the signaldctl account link command as shown below. Don't bother trying to register a new number with signald, as it doesn't work with the new CAPTCHA.

System dependencies

Steps

  1. Link your Signal number to signald.
signaldctl account link +XXXXXXXXXXX
# a QR code appears on screen that you scan with your phone
  1. Clone the repo and install dependencies inside a venv
git clone [email protected]:dillonwilliams/signal-chatgpt.git
python -m venv venv
source venv/bin/activate
cd signal-chatgpt
pip install -r requirements.txt
  1. Edit the paths in signal-chatgpt.service to match the clone dir and venv dir, and fill in the 2 environment variables.
  2. Copy the service file, load and enable
sudo cp signal-chatgpt.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable signal-chatgpt
sudo systemctl start signal-chatgpt
  1. View logs with sudo journalctl -u signal-chatgpt

If the bot hangs it is probably signald's fault and should be restarted with sudo systemctl restart signald.

For dev work, run python bot.py inside your virtualenv.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.