celo

command module
v0.0.0-...-115e79b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2020 License: MIT Imports: 7 Imported by: 0

README

Celo Alert Bot

Celo Alert Bot will send an alert about a new proposal in the network. We are working on adding support for alerts that track the proposal through each step of the Celo governance process.

Please provide constructive feedback and alert requests here.

Install Prerequisites

  • Go 13.x+
We need to install influxDB next
$ cd $HOME
$ wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
$ source /etc/lsb-release
$ echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
Start influxDB
$ sudo -S apt-get update && sudo apt-get install influxdb
$ sudo -S service influxdb start

Create database:
$ influx -precision rfc3339
> CREATE DATABASE celo

> SHOW DATABASES

Install and configure the Celo Alert Bot

Get the code and run it after editing the config file
go get github.com/chainflow/celo
cd go/src/github.com/chainflow/celo

go get .

Edit the config:
mv example.config.toml config.toml
nano config.toml

update tg_chat_id, tg_bot_token (Give your telegram chat id and bot token, to which you want to get the alerts)

Start the bot using screen
Screen -S celobot
go run main.go

To detach the screen (Ctrl+A and then D)
To attach the screen from next time : screen -rd celobot

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL