Skip to content

bitcoinparadise/Scorum_Witness_Notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requires Node.js libraries and a Discord bot account.

Scorum Witness Notify - Discord Bot

Discord bot to notify Scorum Witness of missed blocks.

The instructions will install the notification bot and Scorum-js libariries.

  • First create a Discord bot account, get the bot token for later and continue with the installation.

Guide on how to create a Discord bot: https://discordpy.readthedocs.io/en/rewrite/discord.html

Installation

$ git clone https://github.com/bitcoinparadise/Scorum_Witness_Notify
$ cd Scorum_Witness_Notify
$ npm install
$ npm install @scorum/scorum-js --save

Configuration

First rename config-example.json to config.json:

$ mv config-example.json config.json

Then set the following options in config.json:

{
  "rpc_nodes": [
    "https://prodnet.scorum.com/",
    "ADDITIONAL_NODE_URL"
  ],
  "chain_id": "chain_id, db4007d45f04c1403a7e66a5c66b5b1cdfc2dde8b5335d1d2f116d592ca3dbb1",
  "accountname": "USERNAME",
  "discorduser": "DISCORD_USER_ID",
  "token": "BOT_TOKEN",
}

Run

node witness_notify.js

Based on @markptrueman's witness_monitor_tutorial

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published