• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

emerysteele/minecraft-server-status-bot: Minecraft Server Status Bot for Discord

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

emerysteele/minecraft-server-status-bot

开源软件地址(OpenSource Url):

https://github.com/emerysteele/minecraft-server-status-bot

开源编程语言(OpenSource Language):


开源软件介绍(OpenSource Introduction):

Minecraft Server Status Bot for Discord

Example

Requirements

Setup

  • Download this git repository
  • Rename config.example.json > config.json
  • Edit config.json with your minecraft server info + discord bot token
  • CD to repo directory & install dependancies through npm:
    • npm install
  • Run using: node app.js or if you use pm2: pm2 start app.js
  • Invite the bot to your discord server with permisions to:
    • Send Messages
    • Manage Messages
    • Attach Files
    • Read Message History

Useage

  • By default the bot command prefix is mc!, this can be changed in config.json

  • Available commands are:

    • help replies with list of bot commands
    • ip replies with minecraft server address listed in your config file
    • status|stat [serveraddress:port] responds with status of minecraft server. If no server address given, bot will use the one set in your config file. Port will default to 25565 if not specified.
    • online|on [serveraddress:port] responds with list of online players. Pulls from player sample array, may have limitation on number of results.
    • force-update|fu forces the bot to update it's status with server player count. Can only be run by server moderators.
    • pin posts the status of your mc server + pins it to the Discord channel. status/pin will be auto updated at the interval set in your config.json file
    • set <address|port|name|prefix|pinupdate|showPlayerSample> [value] updates the value for the specified setting in the config. if no value is set, it will return the current value
  • Examples:

    • mc!set address mc.hypixel.net
    • mc!status
    • mc!on
    • mc!status mc.hypixel.net

    Example

Notes

  • This bot uses the mcapi.us API.
    • mcapi.us is ratelimited to 600 requests per 10 minutes.
    • Try not to exceed this limit. If you do, your bots IP address could be blocked for abuse.

Updated Dec 08th 2021




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap