mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-20 09:38:23 +08:00
Merge pull request #378 from Cosmos-Break/patch-4
Docs: Add mirai adapter port config
This commit is contained in:
commit
24268072fc
@ -22,5 +22,13 @@
|
|||||||
"desc": "Mirai-Api-HTTP 协议",
|
"desc": "Mirai-Api-HTTP 协议",
|
||||||
"author": "Mix",
|
"author": "Mix",
|
||||||
"repo": "nonebot/nonebot2/tree/master/packages/nonebot-adapter-mirai"
|
"repo": "nonebot/nonebot2/tree/master/packages/nonebot-adapter-mirai"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "nonebot_adapter_gocq",
|
||||||
|
"link": "nonebot-adapter-gocq",
|
||||||
|
"name": "gocq",
|
||||||
|
"desc": "在原 CQHTTP Adapter 的基础上进行修改以便更好地适配 go-cqhttp",
|
||||||
|
"author": "Jigsaw111",
|
||||||
|
"repo": "Jigsaw111/nonebot-adapter-gocq"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -10,5 +10,11 @@
|
|||||||
"desc": "B站推送Pixiv搜图识番求签抽卡表情包还有其他杂七杂八的功能",
|
"desc": "B站推送Pixiv搜图识番求签抽卡表情包还有其他杂七杂八的功能",
|
||||||
"author": "Ailitonia",
|
"author": "Ailitonia",
|
||||||
"repo": "Ailitonia/omega-miya"
|
"repo": "Ailitonia/omega-miya"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Github Bot",
|
||||||
|
"desc": "在QQ获取/处理Github repo/pr/issue",
|
||||||
|
"author": "yanyongyu",
|
||||||
|
"repo": "cscs181/QQ-GitHub-Bot"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -232,11 +232,43 @@
|
|||||||
"repo": "nonebot/plugin-localstore"
|
"repo": "nonebot/plugin-localstore"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "nonebot_plugin_todo",
|
"id": "nonebot_plugin_puppet",
|
||||||
"link": "nonebot-plugin-todo",
|
"link": "nonebot-plugin-puppet",
|
||||||
"name": "待办事项提醒(闹钟)",
|
"name": "nonebot_plugin_puppet",
|
||||||
"desc": "没十年脑血栓写不出的待办事项提醒",
|
"desc": "多对多的会话转接",
|
||||||
"author": "Jigsaw111",
|
"author": "Jigsaw111",
|
||||||
"repo": "https://github.com/Jigsaw111/nonebot_plugin_todo"
|
"repo": "Jigsaw111/nonebot_plugin_puppet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "nonebot_plugin_mcstatus",
|
||||||
|
"link": "nonebot-plugin-mcstatus",
|
||||||
|
"name": "Minecraft 服务器状态查询",
|
||||||
|
"desc": "顾名思义",
|
||||||
|
"author": "Jigsaw111",
|
||||||
|
"repo": "Jigsaw111/nonebot-plugin-mcstatus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "nonebot_plugin_help",
|
||||||
|
"link": "nonebot-plugin-help",
|
||||||
|
"name": "Nonebot2插件轻量帮助列表",
|
||||||
|
"desc": "读取并提供已加载Nonebot2插件开发者提供的帮助信息(用途)",
|
||||||
|
"author": "XZhouQD",
|
||||||
|
"repo": "https://github.com/XZhouQD/nonebot-plugin-help"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "nonebot_plugin_gamedraw",
|
||||||
|
"link": "nonebot-plugin-gamedraw",
|
||||||
|
"name": "nonebot_plugin_gamedraw",
|
||||||
|
"desc": "基于爬取bwiki实现自动更新的抽卡,目前支持赛马娘,原神,明日方舟",
|
||||||
|
"author": "HibiKier",
|
||||||
|
"repo": "https://github.com/HibiKier/nonebot_plugin_gamedraw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "nonebot_plugin_alias",
|
||||||
|
"link": "nonebot-plugin-alias",
|
||||||
|
"name": "nonebot-plugin-alias",
|
||||||
|
"desc": "为 nonebot2 的指令创建别名",
|
||||||
|
"author": "MeetWq",
|
||||||
|
"repo": "https://github.com/MeetWq/nonebot-plugin-alias"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -124,6 +124,7 @@ pip install nonebot-adapter-mirai
|
|||||||
MIRAI_AUTH_KEY=1234567890
|
MIRAI_AUTH_KEY=1234567890
|
||||||
MIRAI_HOST=127.0.0.1 # 当MAH运行在本机时
|
MIRAI_HOST=127.0.0.1 # 当MAH运行在本机时
|
||||||
MIRAI_PORT=8080 # MAH的监听端口
|
MIRAI_PORT=8080 # MAH的监听端口
|
||||||
|
PORT=2333 # 防止与MAH接口冲突
|
||||||
```
|
```
|
||||||
|
|
||||||
- `bot.py`文件
|
- `bot.py`文件
|
||||||
@ -170,7 +171,7 @@ pip install nonebot-adapter-mirai
|
|||||||
|
|
||||||
- ```shell
|
- ```shell
|
||||||
HOST=127.0.0.1 # 当MAH运行在本机时
|
HOST=127.0.0.1 # 当MAH运行在本机时
|
||||||
PORT=2333
|
PORT=2333 # 防止与MAH接口冲突
|
||||||
|
|
||||||
MIRAI_AUTH_KEY=1234567890
|
MIRAI_AUTH_KEY=1234567890
|
||||||
MIRAI_HOST=127.0.0.1 # 当MAH运行在本机时
|
MIRAI_HOST=127.0.0.1 # 当MAH运行在本机时
|
||||||
|
Loading…
x
Reference in New Issue
Block a user