OSUbot in NoneBot2
Project description
📖 介绍
本项目修改自osuv2,适配了nonebot2,并且在此之上修改了命令的响应逻辑并修改了一些bug使之更易于使用
变速功能依赖ffmpeg,需要自行安装ffmpeg才能正常使用
💿 安装
使用 nb-cli 安装(推荐)
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-osubot
使用包管理器安装(推荐)
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-osubot
pdm
pdm add nonebot-plugin-osubot
poetry
poetry add nonebot-plugin-osubot
打开 nonebot2 项目的 bot.py 文件, 在其中写入
nonebot.load_plugin('nonebot_plugin_osubot')
从 github 安装
在 nonebot2 项目的插件目录下, 打开命令行, 输入以下命令克隆此储存库git clone https://github.com/yaowan233/nonebot-plugin-osubot.git
修改nonebot_plugin_osubot的__init__.py为
add_model('src.plugins.database.models')
打开 nonebot2 项目的 bot.py 文件, 在其中写入
nonebot.load_plugin('src.plugins.nonebot_plugin_osubot')
⚙️ 配置
你需要至OSU个人设置申请新的OAuth应用,然后将得到的客户端ID与客户端密钥填入nonebot2 项目的.env文件中
配置说明
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| OSU_CLIENT | 是 | 无 | 客户端ID |
| OSU_KEY | 是 | 无 | 客户端密钥 |
| tortoise_orm_db_url | 否 | sqlite://db.sqlite3 | 数据库地址 |
| INFO_BG | 否 | ['https://example.com'] | 随机背景api地址,需要打开网页后随机获得一张图片 |
🎉 使用
指令
💡 贡献
如果遇到任何问题,欢迎提各种issue来反馈bug
你也可以加群(228986744)来进行反馈!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file nonebot_plugin_osubot-6.27.4.tar.gz.
File metadata
- Download URL: nonebot_plugin_osubot-6.27.4.tar.gz
- Upload date:
- Size: 30.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc1323837f8334e96dab08ebc1484dd8788806f849e8e440e3f1cbfcbcd288d3
|
|
| MD5 |
1357133da1bc91f5cff1a3fd3c115c5d
|
|
| BLAKE2b-256 |
1099fb9f047229ba418579e5c80c50bb3cbe2538e994a7eaa0d2e1450b32c131
|
Provenance
The following attestation bundles were made for nonebot_plugin_osubot-6.27.4.tar.gz:
Publisher:
pypi-publish.yml on yaowan233/nonebot-plugin-osubot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_osubot-6.27.4.tar.gz -
Subject digest:
fc1323837f8334e96dab08ebc1484dd8788806f849e8e440e3f1cbfcbcd288d3 - Sigstore transparency entry: 779296896
- Sigstore integration time:
-
Permalink:
yaowan233/nonebot-plugin-osubot@c23bc1b27559214bff89a747469d8c1dd943daa6 -
Branch / Tag:
refs/tags/v6.27.4 - Owner: https://github.com/yaowan233
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@c23bc1b27559214bff89a747469d8c1dd943daa6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nonebot_plugin_osubot-6.27.4-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_osubot-6.27.4-py3-none-any.whl
- Upload date:
- Size: 30.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a58718f21fe4ea9a442836738f1b8ad2a096386828632a86711b5ce869c6d5c
|
|
| MD5 |
9465aa98d55dd068ca7c953fecbc18b2
|
|
| BLAKE2b-256 |
1793ab43e2196adc04e1a426cd8ca9f33b8802ecd81515cd376a2fe8f9f15f6e
|
Provenance
The following attestation bundles were made for nonebot_plugin_osubot-6.27.4-py3-none-any.whl:
Publisher:
pypi-publish.yml on yaowan233/nonebot-plugin-osubot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_osubot-6.27.4-py3-none-any.whl -
Subject digest:
2a58718f21fe4ea9a442836738f1b8ad2a096386828632a86711b5ce869c6d5c - Sigstore transparency entry: 779296899
- Sigstore integration time:
-
Permalink:
yaowan233/nonebot-plugin-osubot@c23bc1b27559214bff89a747469d8c1dd943daa6 -
Branch / Tag:
refs/tags/v6.27.4 - Owner: https://github.com/yaowan233
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@c23bc1b27559214bff89a747469d8c1dd943daa6 -
Trigger Event:
push
-
Statement type: