A Discord bot built to monitor and provide updates on the server statuses for the game Lord of the Rings Online (LOTRO). The bot allows users to check server statuses, monitor server changes, and receive real-time notifications when server statuses change.
ππ€ Add this bot to your Discord server here! π€π
Update 24 Sep 2024: bot seems to be working as inteded (I recommend adding /monitor to it's own dedicated channel). New features added: bot now tracks status for Bullroarer and I added a /stop command that you can use in the same channel as /monitor to stop the auto monitoring server status updates
To get started, youβll need:
git clone https://github.com/yourusername/Lotro-Server-Status-Discord-Bot.git
npm instal
Create a .env file in the root of the project and add the following environment variables:
DISCORD_TOKEN=your_discord_bot_token
DISCORD_CLIENT_ID=your_discord_application_id
DISCORD_APPLICATION_ID=your_discord_application_id
The bot offers the following commands:
/status: Check the status of LOTRO servers.
server
argument to check the status of a specific server. /monitor: Enable real-time monitoring of LOTRO servers.
/stop: Disable the real-time monitoring of LOTRO servers.
/monitor
.Register Commands (only needed when setting up or updating commands): To register commands globally, run:
node register.js
Start the Bot: To run the bot locally, use the following command:
npm run start
The bot will now be live and ready to interact in your Discord server.
/status
Description: Check the status of all LOTRO servers or a specific server.
/status
shows the status of all servers.
/status server:Angmar
shows the status of the "Angmar" server.
/monitor
Description: Starts monitoring the status of LOTRO servers. The bot sends notifications when server statuses change.
/monitor
in a channel will enable monitoring in that channel.
/stop
Description: Stops monitoring the status of LOTRO servers. Use in same channel as /monitor
.
Bot is currently being hosted for free on FPS. This means that I have to manually click on a button to add more running time to the bot (so if the bot is suddently offline my depest apologies). I am working on a better alternative.
I can't really tell if /monitor
is working as intended since servers don't seem to go up and down all the time. Any feedback on this is very much appreciated!
Feel free to fork this repository and submit pull requests. Issues and feature requests are always welcome!
This project is free to use under the MIT Licence. Just remember to give credit where credit is due!
A very special thanks to dt192 for helping me brainstorm, structure and debug this bot.