The Factoid Authority Bot,
Monitors your nodes,
Wakes you up when it all goes tits up.

Stuart Johnson 3bfd240544 * clsDialler.cs: Throttle calls 1 month ago
.vs e47af88186 * UserPrefs.xml: 3 months ago
TFA-Bot 3bfd240544 * clsDialler.cs: Throttle calls 1 month ago
.gitignore b122ffef6f * Program.cs: 3 months ago
BuildCommon.targets 2478364128 Missing ; 4 months ago
Dockerfile efd4b897ad fix SIPp version 3 months ago
LICENSE 3be8577400 first commit 4 months ago
README.md df1c1d2cb0 Fix restart=always 2 months ago
TFA-Bot.sln 07da990979 * TFA-Bot.sln: 4 months ago
entrypoint.sh 71c98d4ef4 * clsVersion.cs: Version change 4 months ago

README.md

TFA-Bot

Factom Node Monitor

Prerequisites

  • A well connected server, with Docker for running your Bot on.
  • A private Discord Server account.
  • Factom nodes to monitor! Make sure port 8088 is open to your Bot server.

Getting started

  1. Copy this Google spreadsheet, rename it, and fill in every sheet tab. Follow the instructions on the "Settings" tab. https://docs.google.com/spreadsheets/d/19SLbCQLFKpkSaZ88SAmN_Mg8L8M-TkiB67TJD67lNQA/edit?usp=sharing

  2. Get a read-only share URL for your spreadsheet. (Dont share it with anyone, but you can invite your members for full read/write access)

  3. On your server (using your own URL):

docker build -t tfa-bot https://git.factoid.org/TFA/TFA-Bot.git
docker run --restart=always -d -e "BOTURL=https://docs.google.com/spreadsheets/d/123456789123456789123456789123456789/edit?usp=sharing" --name bot tfa-bot
Optional SIP Server, for Phone Call alerts

TFA-Bot uses SIPp to make phone calls via a SIP VOIP gateway. The supplied dialplan.xml may work for you. It calls any given number until it's answered (or times out). Some services may require a custom dialplan or "scenario", which you can test using the sipp bash command. Alternative scenario scrips here

Fill in your SIP settings on the spreadsheet. You can optionally provide the password to docker using -e "SIP-PASSWORD=...."


Operation

Type 'Help' in any discord channel where the Bot is present. You can add the Bot to all your Discord channels so that it reacts to your commands wherever you are. The Bot will monitor Factom's #operators-alerts channel. Anything posted there, will be copied to your own Bot Alerts channel.

Type 'nodes' to see the current state.