Git Product home page Git Product logo

poiqqbot-py's Introduction

PoiQQBot

一个允许玩家和管理员通过 QQ 对 Bedrock 服务器进行操作的简易机器人.
此机器人为20人及以下,玩家之间和睦友好,启用白名单制的小型服务器设计。不适用于人数较多,人员较杂的大型服务器.

如何使用

修改配置文件

  1. 酷Q安装目录/data/app/io.github.richardchien.coolqhttpapi\config\xxxxxx.json\

    • "ws_reverse_api_url": "" -> "ws_reverse_api_url": "ws://127.0.0.1:12345/ws/api/"
    • "ws_reverse_event_url": "" -> "ws_reverse_event_url": "ws://127.0.0.1:12345/ws/event/"
    • "use_ws_reverse": false -> "use_ws_reverse": true
  2. config.py
    config.example.py 复制为 config.py
    根据以下格式修改:

    from nonebot.default_config import *
    HOST = '127.0.0.1' #无需修改
    PORT = 12345 #无需修改
    COMMAND_START = {'#'} #命令前缀,无需修改
    BEDROCKSERVEREXE = r'E:\\Python Projects\\BedrockServer\\bedrock_server.exe' #Bedrock Server 的绝对地址.
    DATABASE = 'E:\\Python Projects\\BDS_Control\\database\\poicraft.db' # 用于绑定 QQ 和 Xbox ID 的数据库的绝对地址.

注意事项

确保TCP12345、30000端口不被占用

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.