一个综合,All in One,轻量的机器人应用程式
Go to file
2024-03-18 18:21:56 +08:00
src first commit 2024-03-18 18:21:56 +08:00
.gitignore first commit 2024-03-18 18:21:56 +08:00
main.py first commit 2024-03-18 18:21:56 +08:00
README.md first commit 2024-03-18 18:21:56 +08:00
requirements.txt first commit 2024-03-18 18:21:56 +08:00

a

轻雪 6.0

轻量,高效,易于扩展

  • 基于Nonebot2有良好的生态支持
  • 集成了上一代轻雪的优点和缺点
  • 支持一切Onebot标准通信后续会支持更多的平台

手动安装和部署

  1. 前置:GitPython3.10+
  2. 使用命令git clone https://github.com/snowykami/LiteyukiBot
  3. 切换到轻雪目录,使用pip install -r requirements.txt安装依赖
  4. python main.py启动!

一键部署脚本(复制到本地保存执行)

提前部署好Python3.10+环境和Git环境

Windows

chcp 65001
git clone https://github.com/snowykami/LiteyukiBot
cd LiteyukiBot
pip install -r requirements.txt
echo python3 main.py > start.bat
echo Install finished! Please run start.bat to start the bot!

Linux

git clone https://github.com/snowykami/LiteyukiBot
cd LiteyukiBot
pip install -r requirements.txt
echo python3 main.py > start.sh
chmod +x start.sh
echo Install finished! Please run start.sh to start the bot!

注意事项

  • 尽可能不要去动配置文件通过与bot交互进行配置即可若仍然想自定义配置请在config.yml中修改

  • 首次启动会提醒用户注册超级用户

  • Bot会自动检测新版本若出现新版本可用git pull命令更新

Onebot实现端配置

字段 参考值 说明
协议 反向WebSocket 轻雪使用反向ws协议进行通信即轻雪作为服务端
地址 ws://host:port/onebot/v11 地址取决于配置文件,默认为20216端口

推荐方案

  1. 使用Lagrange.CoreLagrange.Core支持多种协议
  2. 云崽的icqq-pluginws-plugin进行通信
  3. Go-cqhttp(目前已经半死不活了)
  4. 人工实现的Onebot协议自己整一个WebSocket客户端看着QQ的消息然后给轻雪传输数据

请先自行查阅文档若有困难请联系相关开发者而不是Liteyuki的开发者

鸣谢