Skip to content

Commit

Permalink
[fix]Request
Browse files Browse the repository at this point in the history
  • Loading branch information
HornCopper committed Nov 4, 2023
1 parent 9145455 commit 3d82fa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/event_notice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import os

from nonebot.adapters.onebot.v11 import MessageSegment as ms
from nonebot import on_notice, on_command
from nonebot import on_notice, on_command, on_request
from nonebot.adapters import Message
from nonebot.adapters.onebot.v11 import Bot, GroupMessageEvent, NoticeEvent, RequestEvent
from nonebot.params import CommandArg
Expand Down Expand Up @@ -85,9 +85,9 @@ async def _(bot: Bot, event: NoticeEvent):
else:
return

notice2 = on_notice(priority=5)
request = on_request(priority=5)

@notice2.handle()
@request.handle()
async def _(bot: Bot, event: RequestEvent):
if event.request_type == "group" and event.sub_type == "invite":
msg = event.comment
Expand Down

0 comments on commit 3d82fa7

Please sign in to comment.