Skip to content

lipnelz/robbi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram bot for network status management

This project has for purpose to be able to run a telegram bot interaction script.

Features

  • Massa node : Periodically checks your massa node status and send a message if the node seems down
  • Activity logging : Logs all activity into bot_activity.log
  • User white list : Robbi can filter users access based on a preconfigured whitelist.
  • Highly customizable : You can use your own API keys and update with your own commands.

How to configure

The topology.json file describes all the usefull configuration informations for Robbi.

{
    "telegram_bot_token": "YOUR_API_KEY",
    "user_white_list": {
        "admin": "YOUR_USER_ID"
    },
    "massa_node_address": "YOUR_MASSA_ADDRESS",
    "ninja_api_key" : "YOUR_NINJA_API_KEY"
}

Commands

  • /hi: Say hi to Robbi.

  • /node : Retrieve info from your preconfigured Massa node, such as roll count, validated cycles, missed cycles and balance.

  • /btc : Get bitcoin price, variation, high, low and volume.

  • /mas : Get MAS/USDT info from MEXC.

  • /hist : Send the MAS balance history logged from periodic node pings and manual requests.

  • /flush: Clean activity debug logs and clean MAS balance history

Prerequis

  • Python 3.x
  • A telegram account and a bot created thanks to BotFather.
  • Python libraries : python-telegram-bot, requests, json, logging, plotly, apscheduler

How to run

python .\src\main.py

External links

API-NINJA

MASSA JSON RPC API

TELEGRAM BOT API

MEXC API DOC

About

Custom telegram bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages