Coder Social home page Coder Social logo

mellifera-labs / kyvechecker Goto Github PK

View Code? Open in Web Editor NEW
7.0 0.0 3.0 198 KB

This bot was created to manage KYVE (https://app.kyve.network/) nodes. You can easily add your own nodes or which you delegate. If a node is out of your threshold, you will be notified

License: MIT License

JavaScript 98.82% Shell 0.39% Dockerfile 0.78%
blockchain bot discord-bot kyve telegram-bot

kyvechecker's Introduction

code_quality_score node License

KYVECHECKER

Telegram bot: https://t.me/kyvecheckerbot

This bot was created to manage KYVE (https://app.kyve.network/) nodes. You can easily add your own nodes or which you delegate. If a node is out of your threshold, you will be notified

The bot consists of two parts Bot and Notifier.

  • The Bot responsible for user interaction
  • The Notifier responsible for users notifications and database updates

How to run a bot

node.js

Install dependencies

npm install

Before run store a config.js file in the project folder. The config sample can be find in config.sample.js

Otherwise, you can specify your own path to the config file

npm start <bot or notifier> -- --config=<path to the config file>`

Run a bot:

npm start bot

Run a notifier:

npm start notifier

Docker

You can run the KYVECHECKER directly from Docker.

To pull the latest Docker image, run:

docker pull ruslanglaznyov/kyvechecker:latest

Run a bot with a docker:

docker run --rm --name kevechecker <repo name> -v ./config.js:/config.js bot 

Run a notifier with a docker:

docker run --rm --name kevechecker <repo name> -v ./config.js:/config.js notifier 

Also, you can run with docker-compose.yaml:

version: "3"
services:
  kyvechecker-bot:
    image: ruslanglaznyov/kyvechecker:latest
    restart: unless-stopped
    command:
      - bot
    volumes:
      - ./config.js:/config.js

  kyvechecker-notifier:
    image: ruslanglaznyov/kyvechecker:latest
    restart: unless-stopped
    command:
      - notifier
    volumes:
      - ./config.js:/config.js

Put the config.js with your docker-compose.yaml. The config sample can be finding here config.sample.js

Contributing

To contribute to this repository please follow these steps:

  1. Clone the repository
  2. Install dependencies
    npm install
    
  3. Before committing make linter check:
     npm run format:check & npm run lint:check
    

kyvechecker's People

Contributors

ruslanglaznyov avatar alexandrglaznyov avatar

Stargazers

Aleksey avatar Grijis avatar Lapatylin avatar Dmitriy avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.