Skip to content

sniper19p/crewcraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Server Status Discord Bot

This is a Discord bot that displays the status of a Minecraft server. It uses the discord.js library to interact with the Discord API and the minecraft-server-util library to retrieve information about the Minecraft server.

Installation

  1. Clone this repository: git clone https://github.com/sniper19p/crewcraft.git
  2. Install the dependencies: npm install
  3. Set up a new Discord bot and obtain its token. You can follow these instructions to create a new bot and these instructions to obtain its token.
  4. Set the bot token as an environment variable: export DISCORD_TOKEN=your-bot-token
  5. Modify the SERVER_IP and UPDATE_INTERVAL variables in index.js to suit your needs.

Usage

Run npm start to start the bot. The bot will automatically update the status of the Minecraft server every UPDATE_INTERVAL milliseconds and post the information in a Discord channel.

License

This project is licensed under the MIT License.

About

This is a Discord bot that displays the status of a Minecraft server.

Resources

Stars

Watchers

Forks

Packages

No packages published