Skip to main content

Broadcast bot for Signal

Project description

signalblast

Signalblast is a tool to send encrypted messages anonymously over Signal to a subscriber list. The sender does not know who the subscribers in the list are, nor the subscribers know who the sender is.

A server is required to host the bot, find instructions on how the set it up below.

The idea for this bot came from Signalboost, which unfortunately is no longer alive.

Usage

Once the bot is up and running, several commands are available:

  • !subscribe send this to sign up to the list
  • !broadcast after subscribing any message preceded by this will be broadcasted to every subscriber
  • !unsubscribe to stop receiving messages
  • !help to be reminded of which commands are available
  • !admin send a message only to the list admin, useful for getting technical support

Installation

Option 1: local python environment

  • Set up signalbot as specified here
  • Create a new virtual environment, uv is recommended
  • Install with pip install signalblast
  • Run via python -m signalblast.main

Option 2: docker compose

This will pull the project docker images from https://hub.docker.com/r/eradorta/signalblast

  • Install docker.
  • Download the docker-compose.yml file.
  • Create a folder called signalblast_data
  • Define the relevant environment variables
    export DOCKER_TAG="The version of signalblast to run, can be latest"
    export SIGNALBLAST_PHONE_NUMBER="The phone number of the bot"
    export SIGNALBLAST_PASSWORD="The password for the admin"
    export SIGNALBLAST_HEALTHCHECK_RECEIVER="The contact or group to send health check messages"
    
  • Run via docker compose: docker compose up

Development

  • Set up docker and signalbot as specified in the installation section.
  • Clone the repo
  • Install uv
  • Install the repo and the dependencies in a new virtual environment with uv sync
  • Install the pre-commit hook uv run pre-commit install
  • Run
    • Directly via uv run python -m signalblast.main
    • Via systemd with systemd/signalblast.service
      • Run once with the password in the env file.
      • From there one, the password is stored encrypted and it can be removed from the env file
  • Optional: install signalbot as an editable dependency uv add --editable ../signalbot/

Docker compose

The docker/compose_build.sh and docker/compose_up.sh are provide for easier development.

Roadmap

  • Make instructions clearer and add pictures to the readme
  • Add unit testing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

signalblast-0.7.5.tar.gz (107.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

signalblast-0.7.5-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file signalblast-0.7.5.tar.gz.

File metadata

  • Download URL: signalblast-0.7.5.tar.gz
  • Upload date:
  • Size: 107.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for signalblast-0.7.5.tar.gz
Algorithm Hash digest
SHA256 d00248959b9e8e46efcde881554f9b0e2d0a8eaf3520c705a8788078da652b60
MD5 5d4a650843db3af99c078ed820c122c0
BLAKE2b-256 57e013070f1d6fd9bc1ed4036be5e25d7a959a0d2824a473f05399373db985fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for signalblast-0.7.5.tar.gz:

Publisher: publish-pypi.yml on Era-Dorta/signalblast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file signalblast-0.7.5-py3-none-any.whl.

File metadata

  • Download URL: signalblast-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for signalblast-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 99a51852216b371b3e88202fd279a30e53cf605788c0c88fcf53b14a5b63d954
MD5 1fd9ec1261fb8a4d042458fb625b7a5c
BLAKE2b-256 d02f459525fe4134b44b96ddd11a9c6f91fae3a66f8c8f6dce5f728a5f58d3cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for signalblast-0.7.5-py3-none-any.whl:

Publisher: publish-pypi.yml on Era-Dorta/signalblast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page