mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 21:30:54 +00:00
statistic适配satori
This commit is contained in:
@ -8,3 +8,10 @@ def get_user_id(event: T_MessageEvent):
|
||||
return event.user.id
|
||||
else:
|
||||
return event.user_id
|
||||
|
||||
|
||||
def get_group_id(event: T_MessageEvent):
|
||||
if isinstance(event, satori.event.Event):
|
||||
return event.guild.id
|
||||
else:
|
||||
return event.group_id
|
||||
|
Reference in New Issue
Block a user