Compare commits

..

2 Commits

Author SHA1 Message Date
fb77487ff5
啊? 2024-09-02 01:16:39 +08:00
2b364b3560
2024-09-02 01:15:50 +08:00
2 changed files with 1 additions and 32 deletions

View File

@ -281,7 +281,7 @@ help = f"""/bmcl -> dashboard
/bmcl rank <name> -> rank of <name> /bmcl rank <name> -> rank of <name>
/brrs <name> -> rank of <name> /brrs <name> -> rank of <name>
搜索限制: 搜索限制:
1- {FULL_DISPLAY} 显示全部信息 1-{FULL_DISPLAY} 显示全部信息
{FULL_DISPLAY+1}-{MAX_DISPLAY} 显示状态名称 {FULL_DISPLAY+1}-{MAX_DISPLAY} 显示状态名称
{MAX_DISPLAY+1}+ 不显示 {MAX_DISPLAY+1}+ 不显示
""" """

View File

@ -1,31 +0,0 @@
from __future__ import annotations
from typing import TYPE_CHECKING, TypeVar
if TYPE_CHECKING:
from ica_typing import IcaNewMessage, IcaClient
from ica_typing import TailchatReciveMessage, TailchatClient
else:
IcaNewMessage = TypeVar("NewMessage")
IcaClient = TypeVar("IcaClient")
TailchatReciveMessage = TypeVar("TailchatReciveMessage")
TailchatClient = TypeVar("TailchatClient")
TC_client: TailchatClient | None = None
TC_msg: TailchatReciveMessage | None = None
def on_tailchat_message(msg: TailchatReciveMessage, client: TailchatClient) -> None:
global TC_client, TC_msg
TC_client = client
if msg.is_reply or msg.is_from_self:
return
if msg.content == "/send-here":
TC_msg = msg
def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None:
if TC_client is None or TC_msg is None:
return
reply = TC_msg.reply_with(f"From ICA:|{msg.room_id}|{msg.sender_id}|{msg.sender_name}|{msg.content}")
TC_client.send_message(reply)