Giter Site home page Giter Site logo

mc_status's Introduction

mc_status

一个自用的hoshinobot的 mc数据查询监控 超简易插件

已知问题

显示的玩家名编码问题,获取到的直接就是ISO-8859-1的单字节编码,所以转utf-8定长编码不能完整转码,无法显示中文。有没有大佬教教解决方案

项目地址:

https://github.com/azmiao/mc_status

功能

[监控mc 地址] 为本群增加监控该地址服务器,不带端口自动默认25565

[不要监控mc 地址] 不在为本群监控该地址服务器,不带端口自动默认25565

[mc数据] 查询本群绑定的服务器,绑定多个默认查第一个

[mc数据 地址] 查询该地址服务器,不带端口自动默认25565

(自动推送服务器人数变动) 该功能无命令

简单食用教程:

  1. git clone本插件:

    在 HoshinoBot\hoshino\modules 目录下使用以下命令拉取本项目

    git clone https://github.com/azmiao/mc_status
    
  2. 安装依赖:下不了的自己换源,不多说了

    pip install mcstatus
    
  3. 在 HoshinoBot\hoshino\config\ __bot__.py 文件的 MODULES_ON 加入 'mc_status'

    然后重启 HoshinoBot

  4. 监控人员上线提醒默认关闭,需要开启的话请在群里发送'开启 mc_reminder'

如果无法查询到,可能是你端口和配置的问题

可以看我的这篇文章的补充部分解决

https://www.594594.xyz/2021/10/24/mc_status_for_hoshino/

建议把mcstatus依赖更新到最新版,不然可能有问题

例子

mc数据 www.hhhh.com:1900

mc数据 www.hhhh.com

mc数据 124.222.55.66:25565

mc_status's People

Contributors

azmiao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mc_status's Issues

error

旧版用的好好的,更新之后就不能用了
bot发送:查询失败!错误明细:[Errno 111] Connection refused
控制台:
/usr/local/lib/python3.9/site-packages/mcstatus/utils.py:104: DeprecationWarning: 'MinecraftServer' is deprecated and is expected to be removed on 2022-08, use 'JavaServer' instead.
warnings.warn(warn_message, category=DeprecationWarning)

看起来是要我用java服务器,但是这本来就是java服务器

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.