Skip to content

PixelPasta/Minecraft-Server-Ping-Bot-Template

Repository files navigation

Minecraft Server Ping Bot


  • MSBP is a useful bot to get stats of your own minecraft server in a few seconds.
  • Takes only a few minutes to setup.

  • 📕 Commands

    • Ping -
    ⏰Get The Latency of the server.
    • Players -
    🔄Get The Number of Players Online.
    • MOTD -
    🎏Get The Current MOTD of the server.
    • Version -
    📋Get the Current Version of the server.

    📚 Setup -

    1. Install NodeJS LTM v16.13.0 or above.
    2. Download This ZIP file and extract it.
    3. Go to Discord Developer Portal and create a new application
    4. Click On Bot
    5. Click On Add Bot
    6. Click On Copy
    7. Now Go To The Extracted Folder, Then Open config.json in notepad.
    8. Replace "Your Token" With the bot's token. (The One you just copied)
    9. Replace "Your Minecraft Server" with the ip address of your minecraft server. (Example - "mc.hypixel.net ")
    10. Replace "Your Discord server id" with the ID of the discord server you want the bot in. To Get the ID, first enable Developer mode in your account settings. (Advanced > Developer Mode). Then Right Click your server's icon on the left side of your screen and click copy ID.
    11. Replace "your desired prefix" with the prefix you want for the bot.
    12. Now Open CMD and navigate to the bot's folder.
    13. Type the command "npm install"
    14. Wait for All the important modules to be installed.
    15. Go Back to the Discord Developer Portal and click on the application that you just made. Click on Oauth2 and click on URL generator.

      Now Check The Bot Check Mark in the scopes section.

      Scroll down and check these permissions in the permission section.

      Scroll Down a Bit More and click copy

      Now Paste this URL in the browser and invite the bot to your server.
    16. Open CMD back and type the command "node index.js". After a while, it should display "Minecraft Server Ping Bot is ready to use". And the Bot Should come online.
      Congrats! You've setup the bot
      ☁ Hosting
      Now, you've made your bot, but you need it to be online 24/7. We've got a solution for that!
      Railway.app is a hosting service that provides free hosting for discord bots without any extra costs.
      • First, Make an account on Railway.
      • Then Open the CMD in which your bot's folder is open and type this command: "npm i -g @railway/cli"
      • Then Type the command "railway login" and follow the steps to login.
      • Go to Railway's dashboard and click on new project.

      • Click on empty project.

      • Once the project is created, click on setup on the left side.

      • Now Copy the command under the "Connect to this project" heading like this.

      • Paste and run the command in CMD.
      • Once the project is linked, type the command "railway up" and enter. After a while, the upload should be completed and the bot should be online. Your bot is now hosted 24/7.
      ❤ Thank You for using MSBP
      Notes
      • For support, you can join the Support Server.
      • To Report a bug, create a issue in the issues tab.
      This bot only works for Java servers

About

MSBP is a useful bot to get stats of your own minecraft server in a few seconds.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published