GithubHelp home page GithubHelp logo

firstdorsal / signal-bot-dockerized Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 57 KB

The signal-cli in a container, accessible through an easy to use web interface

Home Page: https://git.y.gy/firstdorsal/signal-bot-dockerized

License: MIT License

Dockerfile 17.04% Shell 0.59% JavaScript 82.37%

signal-bot-dockerized's Introduction

This is a mirror of git.y.gy/firstdorsal/signal-bot-dockerized

signal bot dockerized

The signal-cli in a container, accessible through an easy to use web interface

Code Docker

Install

Build it yourself

git clone https://git.y.gy/firstdorsal/signal-bot-dockerized .
docker-compose up -d --build

or use the build on hub.docker.com

firstdorsal/signal-bot

Default port is 3000. This can be changed with the enviroment variable PORT

You should map a volume to let the signal-cli configuration persist:

signal-bot:/root/.local/share/signal-cli/data/

Basic usage

Initialize a registration with the signal server either via text or voice verification

curl -X POST localhost:3000/register/init --header "Content-Type: application/json" --data '{"number":"+49someNumber","voice":true}'; echo

Verify the previously initialized registration with the signal server by sending the verification code

curl -X POST localhost:3000/register/verify --header "Content-Type: application/json" --data '{"number":"+49someNumber","verificationCode":someVerificationCode}'; echo

Send a simple text message to one recipient

curl -X POST localhost:3000/send --header "Content-Type: application/json" --data '{"message":"test","number":"+49someNumber","recipient":"+49someRecipientNumber"}'; echo

Ask for new messages for given number

curl -X POST localhost:3000/receive --header "Content-Type: application/json" --data '{"number":"+49someNumber"}'; echo

Contact the signal bot with a raw cursor to do anything the signal-cli can do

curl -X POST localhost:3000/raw --header "Content-Type: application/json" --data '{"raw":"-u +49someNumber receive"}'; echo

usage on a raspberrypi or other arm devices

use

FROM adoptopenjdk/openjdk11:armv7l-debianslim-jdk11u-nightly-slim

in the first line of the dockerfile

Need help or missing a feature?

Feel free to contact me via [email protected] in english or german

Links

Code

Signal-Cli

signal-bot-dockerized's People

Watchers

 avatar  avatar

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.