请保护好自己的rcon配置项,任何问题与本插件无关
- 一个可以远程操控我的世界java服务器的bot
- 此插件配置视频教程:点我查看视频教程
- 关于如何使用
前提(必要)
- 克隆整个仓库,将本目录下的async_mcrcon.py放入site-packages目录下
- 虚拟环境同理,放入python包路径即可
- pip install pillow
- pip install async-mcrcon
- nb plugin install nonebot-plugin-txt2img
我的世界功能部分
- 请务必保护好自己的rcon信息,此信息为你的敏感信息
- 在.env中配置服务器的rcon项
bot配置
- 配置一个go-cq端作为无头QQ端
主体部分
- 自行配置nonebot2客户端,具体教程参考b站小狐狸点此跳转nb2配置教程
功能介绍
- 向我的世界JAVA版服务端发送指令并返回图片回执
- 无脑同意进群(需要在mcrcon.py中124行处配置群号)
- 响应关键词回复
- 入群欢迎
- 定时消息
如何开启rcon配置
- 在服务端根目录server.properties内添加三个配置项
- rcon.port=
- rcon.password=
- enable-rcon=true
env配置项
| config | example | usage |
|---|---|---|
| rconhost | rconhost = "127.0.0.1" | 服务器ip |
| rconpassword | rconpassword = "114514" | 服务器rcon密码 |
| rconpor | rconport = 114514 | 服务器rcon端口 |
| groupset | groupset=[114514] | 开启入群欢迎的群号 |
| zr | zr=[1919810] | 响应执行命令的主人QQ号 |
| tit | tit=仙贝 | 图片的title |
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nonebot-plugin-mcport-0.1.6.tar.gz.
File metadata
- Download URL: nonebot-plugin-mcport-0.1.6.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5d4feef05785b6b2ef2a147c35a44cf7f36dee7699783a2fefe3c0e853eadbb
|
|
| MD5 |
9713ecf477e74d2fd970643053b2b2c5
|
|
| BLAKE2b-256 |
8ff298c375cc5dfabed123354f929ea6c83e89da33b2a7f52e14e67a8d0364ee
|