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
Close
Hashes for nonebot-plugin-osubot-6.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f26dc7542cd1b1162e2d9d77e0b43dfc9f12226c3120dc63a3f3015474f64141 |
|
MD5 | 3b89844f6234d42001e38bbb25c21e67 |
|
BLAKE2b-256 | 28a510ee96b903764b07d2bda412d05e9aaa0d1cdd72b1bd52647c5482a289e8 |
Close
Hashes for nonebot_plugin_osubot-6.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 980e27b55700a599ff7e0e1163f0ff142b965ce60c6f37ad60fa9ee5c5c8c96d |
|
MD5 | 925ca463cb13c325fbf42698f6e9abb6 |
|
BLAKE2b-256 | 09b56d6d159cab87c135258e3993b4e5d68b697b3256e6e7a752ad00c43b0ec0 |