Skip to content

Commit

Permalink
[0.7.0] Rewrite
Browse files Browse the repository at this point in the history
- No longer need Webhook, messageid
- Add config.js instead of dotenv npm
- Changed from PingMc npm package to new node-mcstatus npm package
  • Loading branch information
NooberPro committed Apr 25, 2023
1 parent 267fd70 commit 5ecf207
Show file tree
Hide file tree
Showing 7 changed files with 167 additions and 224 deletions.
25 changes: 0 additions & 25 deletions .env

This file was deleted.

47 changes: 18 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
# Minecraft Server Status Bot for Discord

## [DOCUMENTATION HERE 🔗](https://nooberpro.gitbook.io/mc-status-bot/)
Wiki is in Progess.

### *This Bot shows the status of a minecraft server in real time with a embed in discord and allow players to know if server is online.*

This bot code uses **PingMC npm package** for getting status of Minecraft servers
- PingMC package
- [npmjs Package](https://www.npmjs.com/package/pingmc)
- [Github Repository](https://github.com/MrZillaGold/PingMC)

### WHAT CAN THIS BOT DO?
At this moment the bot can only update the status in a embed but more features will be added in the future.

When Server is Online, Embed Deatils about your server will be different. The embed will be like this =>

![OnlineEMbed](https://i.imgur.com/HDjlmkE.png)

When server is offline. It will be like this =>

![OfflineEMbed](https://i.imgur.com/wODw8v1.png)


# TO DO LIST

- [ ] Custom reply for ip, Status, test, Player list and version command
- [ ] Bot status (activity) for players online number
- [ ] Custon reply when user ask if server is off or on
# Discord Bot For Minecraft Server

## [DOCUMENTATION HERE](https://nooberpro.gitbook.io/mc-status-bot/)

## [LATEST DOWNLOAD HERE ](https://github.com/Nooberpro/minecraft-discord-bot/archive/refs/heads/main.zip)

### **A discord bot that shows info and status of your minecraft server including players, version, and many more features**

This bot code uses **node-mcstatus npm package** for getting status of Minecraft servers

- [npm Package](https://www.npmjs.com/package/node-mcstatus)
- [Github Repository](https://github.com/mcstatus-io/node-mcstatus)

### WHAT CAN THIS BOT DO?

![OnlineEMbed](https://i.imgur.com/HDjlmkE.png)

![OfflineEMbed](https://i.imgur.com/wODw8v1.png)
14 changes: 14 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// All of these info is editable and Required.
module.exports = {
bot: {
token: "your-bot-token-here", // Paste Your Bot's Token here
name: "mc-status-bot", // Name of the discord bot
updateInterval: 60, // Time Period between auto changing status in seconds like 60sec = 1min. Recommend is above 60.
},
mcserver: {
ip: "play.hypixel.net", // Ip Address of your minecraft server like mc.hypixel.net
port: 25565, // Port of your minecraft server like 25565. Default is 25565 if nothing is defined here.
name: "Hypixel", //Name of your Minecraft Server like Hypixel
icon: "https://i.imgur.com/hyPW5jg.png", //Url of your server icon.
},
};
1 change: 1 addition & 0 deletions data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"messageId":null,"channelId":null}
153 changes: 0 additions & 153 deletions index.js

This file was deleted.

32 changes: 15 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
{
"name": "mc-status-bot",
"version": "0.5.0",
"description": "A discord bot for reciving real time status of minecraft server.]",
"main": "index.js",
"name": "minecraft-discord-bot",
"version": "0.7.0",
"description": "A discord bot that shows info and status of your minecraft server including players, version, and many more features.",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "node src/index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/N000berpro/mc-status-bot.git"
"url": "git+https://github.com/NooberPro/minecraft-discord-bot.git"
},
"keywords": [
"mc",
"status",
"bot",
"minecraft",
"server",
"status"
"discord",
"discord-bot",
"minecraft-discord-bot",
"minecraft-server-status-discord-bot"
],
"author": "N00berpro",
"author": "Nooberpro",
"license": "MIT",
"bugs": {
"url": "https://github.com/N000berpro/mc-status-bot/issues"
"url": "https://github.com/NooberPro/minecraft-discord-bot/issues"
},
"homepage": "https://github.com/N000berpro/mc-status-bot#readme",
"homepage": "https://github.com/NooberPro/minecraft-discord-bot#readme",
"dependencies": {
"discord.js": "^14.8.0",
"dotenv": "^16.0.3",
"pingmc": "^3.1.0"
"discord.js": "^14.9.0",
"node-mcstatus": "^1.0.2"
}
}
Loading

0 comments on commit 5ecf207

Please sign in to comment.