Hi all. I tried to write an analogue of explorer.nymtech for telegram. I wrote it for myself, but decided to post it. I will be glad to criticism and cooperation. I would like to know if the rest of the community needs it. I have no idea how it will behave under load, but I tried to write for multi-users. The bot uses api explorer.nymtech which it could reach. Update every five minutes.
the bot can show:
- basic mixnode parameters
- installed and current version of the mixnode
- Is the node blacklisted
- add and remove monitoring mixnodes
- as well as the appearance of a new delegator and the departure of the delegator from the node
- dead nodes should not be added
You can try it here Telegram: Contact @nym_mixnode_monitor_bot
self installation (there may be errors at startup, but it should work)
-
This command installs Python 3 and the python-dotenv package on a Linux system using the APT package manager. python-dotenv is used for loading environment variables from a .env file.
sudo apt install python3 python-dotenv
-
This command clones the repository from GitHub, downloading the project’s files to your local machine.
git clone https://github.com/4nozen/NYM_telegram_mixnode.git
-
This command changes the current directory to the cloned project folder.
cd NYM_telegram_mixnode
-
This command creates a new virtual environment named “venv” in the project directory. A virtual environment isolates the project’s dependencies from the global Python installation.
python -m venv venv
-
This command activates the virtual environment, allowing you to install packages and run scripts using the isolated environment.
source venv/bin/activate
-
This command installs all the Python packages listed in the requirements.txt file, which are necessary for the project to run.
pip install -r requirements.txt
-
This command opens the config.py file in the Nano text editor, allowing you to edit configuration settings for the project.
insert the TOKEN of your telegram bot
nano config.py
-
This command runs the main Python script of the project, which likely starts the monitoring functionality.
python3 main.py