Skip to content

Latest commit

 

History

History
45 lines (43 loc) · 2.82 KB

README.md

File metadata and controls

45 lines (43 loc) · 2.82 KB

xmr-bot

xmr-bot is a Discord bot for nanopool users, a mining pool for Monero
You can easily check the mining status on your Discord server.

Installation

Follow the steps below to use xmr-bot.

  1. Create a bot on the Discord Developer Portal and enable all intents. Screenshot from 2024-10-22 13-13-14
  2. Clone the xmr-bot repository, create a .env file, and add the following.
TOKEN=[Your created Discord bot token]
ADDRESS=[The wallet address you use on nanopool]
XMRLANG=EN

If XMRLANG is set to JP, it will be changed to the Japanese version (Currently, only JP and EN are supported!)

  1. Invite the Discord bot to the server where you want to use it (make sure to check the bot and applications.commands scopes). Screenshot from 2024-10-22 13-31-40
  2. Use the following command to install the required libraries
pip3 install -r requirements.txt
  1. Finally, run main.py, and the xmr-bot will be up and running!

Commands

xmr-addrees

Display the set XMR address.

xmr-balance

Displays the current XMR balance in US dollars.

スクリーンショット 2024-10-22 21 03 43
If XMRLANG=JP, Japanese yen will be displayed.

xmr-hashrate

Displays the average hashrate. xmr-hashrate has several features!

スクリーンショット 2024-10-22 21 05 43

(If you do not set the “hour” parameter, it will be averaged over 2 hours.)

hour=0 to display the current hashrate.

スクリーンショット 2024-10-22 21 12 59

Hashrate for each Worker can also be displayed.
If the member parameter is set as follows, the average hashrate for the last 2 hours for that worker can be displayed.

スクリーンショット 2024-10-22 21 01 46
スクリーンショット 2024-10-22 21 36 32

xmr-help

Displays the help for the XMR bot.

xmr-member

Displays the current mining members.

スクリーンショット 2024-10-22 21 20 53