Nodi is a Telegram bot for monitoring and Logging your Bitcoin Full-Node and LND. The Bot was designed to be used with the Raspi Blitz Project (see here)
- Create a new Bot with BotFather
- Prepare your Pi: install NodeJS
- Add your Bot Token to the environment
- Installation & Running Nodi on the Raspi Blitz
- Command List
Before you can start using Nodi you have to create your own Telegram bot. Because you want to use it for your own node there is no option for a global usable Bot (But It's free and simple! 🎉). Also you need to install nodejs in the System you want to run the bot (Raspi Blitz for example).
The following steps describe how to create a new bot that you can use Nodi
- Contact @BotFather in your Telegram messenger
- To get a token, send BotFather a message that says /newbot
- When asked for a name for your new bot choose something that ends with the word bot. For example, my_test_bot
- If your chosen name is available, BotFather will send you a token
- Save the token for later
If you run the Bot on your Raspberry Pi with Raspi Blitz Nodejs should be pre installed with the enhanced Image. But if not, or you are using the minimal installation you can install Nodejs with following command. This will install the current LTS version of Nodejs
sudo apt update
sudo apt install nodejs
Now you have the token for your bot from step one the botfather. In the root directory create a new file .env
and paste following content into it:
BOT_TOKEN="YOUR TOKEN HERE"
You need this token to communicate with the Bot later
First you need to clone the Repository and install all required dependencies
git clone https://github.com/d4niee/Nodi.git
cd Nodi
npm install
Running Nodi
Now you can run the Bot
node index.js
Category | Command | Description |
---|---|---|
Utility | uptime |
Displays the system uptime. |
- RaspiBlitz - RaspiBlitz
- Telegram Bot API Documentation - Telegram Bot API
- Node Telegram Bot API - Node Telegram Bot API
- Node Telegram Bot API Tutorial - Node Telegram Bot API Tutorial by hosein2398