Skip to content

qirtaiba/wire-node-alertbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alertbot for Wire™

This is an alert bot for Wire™ chat app, developed in Node.JS on top of Wire Bot Node SDK

The bot will send you an alert when it receives a JSON-formatted message delivered to its endpoint. To get the URL of the endpoint and the format for the message, ask the bot for help.

This contains the SDK files as well, and please refer to the Wire Bot Node SDK page for installation as well as cert generation instructions.

Add an alertbot/configs/config.js file (.gitignored in this repo) that looks like this

const path = require('path');

module.exports = {
  getBotOptions() {
    return {
      domain: 'YOUR_FQDN_HERE',
      port: 8050,
      key: path.join(__dirname, 'server.key'),
      cert: path.join(__dirname, 'server.crt'),
      storePath: path.join(__dirname, 'store'),
      auth: 'YOUR_AUTH_TOKEN_FROM_DEVBOT',
    }
  },
};

The reference version of this bot is running on Wire as terminusbot. To test it out, you can connect to https://app.wire.com/?bot=terminusbot.

About

An alert bot for Wire chat app built in Node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.4%
  • Protocol Buffer 9.6%