New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

signal-bot

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

signal-bot

A library for creating bots that interact with the Signal application. Not affiliated with the Signal project or Open Whisper Systems.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Signal-Bot

A library for creating bots that interact with the Signal application. Not affiliated with the Signal project or Open Whisper Systems.

Install with npm install signal-bot.

Currently only works on Linux, with Node.js >=14.0.0.

This library requires a working installation of signal-cli running in daemon mode with the phone number you want to use. Use this Python script for an easy installation process.

Tested on v0.7.2 of signal-cli.

View Documentation

Example Usage

Basic Commands

const {Client} = require("signal-bot");

const bot = new Client();

const prefix = "!";

bot.on("message", msg => {
  if (!msg.content.startsWith(prefix)) return;
  const command = msg.content.slice(prefix.length);

  if (command === "hello") {
    msg.conversation.sendMessage("Hello World!");
  } else if (command === "whoami") {
    msg.conversation.sendMessage(`You are ${msg.author.id}`);
  }
});

bot.connect();

Send the bot !hello and it should respond with Hello World!.

Send the bot !whoami and it should respond with You are <phone number>.

Missing Features

  • signal-cli D-Bus missing features:
    • Group conversation invite event
    • Group conversation leave event
    • Reactions
    • Stickers
  • Contact management
  • Additional user/group member information/profiles
  • Group conversation member list
  • Group conversation admin functions

Keywords

signal

FAQs

Package last updated on 18 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts