A Satori backend powered by lagrange-python
Project description
NekoBox
基于 lagrange-python 的
Satori协议 实现,使用 satori-python
如何启动
使用稳定版(推荐)
# 安装环境
python -m pip install nekobox
# 可选依赖,用于支持非silk格式audio发送
python -m pip install pysilk-mod
# 跟随步骤生成配置文件后,使用手Q扫码即可登录
nekobox run
使用开发版
# 安装环境
git clone https://github.com/wyapx/nekobox
cd nekobox
python -m pip install .
# 可选依赖,用于支持非silk格式audio发送
python -m pip install pysilk-mod
# 跟随步骤生成配置文件后,使用手Q扫码即可登录
nekobox run
使用 PDM:
# 安装环境
git clone https://github.com/wyapx/nekobox
cd nekobox
pdm install
# 可选依赖,用于支持非silk格式audio发送
pdm sync --group audio
# 跟随步骤生成配置文件后,使用手Q扫码即可登录
pdm run nekobox run
CLI 工具
$ nekobox
usage: nekobox [-h] {run,gen,clear,default} ...
NekoBox/lagrange-python-satori Server 工具
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
commands:
{run,gen,list,show,clear,delete,default}
run 启动服务器
gen 生成或更新配置文件
list 列出所有账号
show 显示账号配置
clear 清除数据
delete 删除账号配置
default 设置默认账号
生成或更新配置文件
使用 nekobox gen 生成或更新配置文件。
当未传入 uin 参数或 uin 为 ? 时,若配置文件已存在则会出现交互式选择:
$ nekobox gen
正在更新配置文件...
- 987654
- 123456
请选择一个账号 (987654):
启动服务器
使用 nekobox run 启动服务器。
- 若未传入
uin参数,会使用默认账号(可由nekobox default指定)。 - 若
uin为?,会出现交互式选择。
$ nekobox run ?
- 987654
- 123456
请选择一个账号 (987654):
- 可以使用
--debug参数强制日志启用调试等级。
特性支持情况
-
消息类型
- Text
- At, AtAll
- Image
- Quote
- Audio
-
主动操作
- message-create
- message-delete
部分支持:群聊 - message-get
部分支持:群聊 - guild-member-kick
- guild-member-mute
- guild-member-get
- guild-member-list
- guild-list
- channel-list
- login-get
- user-channel-create
用于向 user 发起私聊 (前提是好友) - guild-member-approve
- friend-list
- reaction-create
- reaction-delete
- reaction-clear
-
事件
- message-created
- message-deleted
部分支持:群聊 - guild-member-added
- guild-member-removed
- guild-updated
群名更改 - guild-member-request
- reaction-added
- reaction-deleted
由于大多数事件和操作没有标准参考,特性的新增可能需要一些时间.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nekobox-0.1.6.tar.gz
(32.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nekobox-0.1.6-py3-none-any.whl
(36.7 kB
view details)
File details
Details for the file nekobox-0.1.6.tar.gz.
File metadata
- Download URL: nekobox-0.1.6.tar.gz
- Upload date:
- Size: 32.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.24.0 CPython/3.12.3 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0767194a396b94f45ec8b0b0e7d1b128d11e27420c7a2a01beb2f1e70e3a30a
|
|
| MD5 |
ac4db91929ee4c1eb2c5f9057fe12a90
|
|
| BLAKE2b-256 |
b25962b805491edf1451e39d2e07580996a717fe4227519d160ecef7574ebffb
|
File details
Details for the file nekobox-0.1.6-py3-none-any.whl.
File metadata
- Download URL: nekobox-0.1.6-py3-none-any.whl
- Upload date:
- Size: 36.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.24.0 CPython/3.12.3 Linux/6.11.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
582a5098b12dd59d14c56ffe396cb2f91ced2d313c16726570f747ec52fe8125
|
|
| MD5 |
872c8f936386fc52e32e8c7d36d3a2ba
|
|
| BLAKE2b-256 |
ca7c86347f824c82519fc7f90bc31e78158d373fafbe5054dabad23faaffbeca
|