修改check

This commit is contained in:
ClovertaTheTrilobita 2025-01-24 20:23:31 +08:00
parent b55b4f2715
commit 55c57a9902
2 changed files with 11 additions and 4 deletions

View file

@ -7,12 +7,12 @@ nonebot2[websockets]
sqlalchemy sqlalchemy
autopep8 autopep8
graiax-silkcoder[ffmpeg] graiax-silkcoder[ffmpeg]
Crypto~=1.4.1 Crypto
graiax-silkcoder graiax-silkcoder
Crypto Crypto
fake_useragent fake_useragent
pycryptodome~=3.21.0 pycryptodome
PyExecJS~=1.5.1 PyExecJS
gradio_client gradio_client
tortoise-orm tortoise-orm
@ -22,3 +22,6 @@ pyyaml
qrcode qrcode
lazy_object_proxy lazy_object_proxy
openai openai
yaml
typing_extensions

View file

@ -60,6 +60,10 @@ test = on_command("test", rule=to_me(), priority=10, block=True)
async def bot_on_ready(): async def bot_on_ready():
await test.finish("\nBoost & Magnum, ready fight!!!") await test.finish("\nBoost & Magnum, ready fight!!!")
nai_loong = on_keyword({"奶龙"}, rule=to_me(), priority=1, block=True)
@nai_loong.handle()
async def not_nai_loong():
await nai_loong.finish(message=Message(random.choice(text_list_nailoong)))
text_list_nailoong = [ text_list_nailoong = [
"我是?你是?😨", "我是?你是?😨",
@ -73,7 +77,7 @@ repository = on_command("repo", rule=to_me(), priority=10, block=True)
@repository.handle() @repository.handle()
async def github_repo(): async def github_repo():
content = "👆三叶草bot仓库地址\n一起来搭个机器人吧😆" content = "三叶草bot仓库地址\n一起来搭个机器人吧😆"
msg = Message([ msg = Message([
MessageSegment.file_image(Path("src/image/github_repo/SanYeCao-Nonebot.png")), MessageSegment.file_image(Path("src/image/github_repo/SanYeCao-Nonebot.png")),
MessageSegment.text(content), MessageSegment.text(content),