mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 08:11:38 +00:00
💡 add rule utils docstring
This commit is contained in:
@ -151,8 +151,6 @@ def on_command(cmd: Union[str, Tuple[str, ...]],
|
||||
|
||||
async def _strip_cmd(bot, event, state: dict):
|
||||
message = event.message
|
||||
print(message[0].data)
|
||||
print(state["_prefix"])
|
||||
event.message = message.__class__(
|
||||
str(message)[len(state["_prefix"]["raw_command"]):].strip())
|
||||
|
||||
|
Reference in New Issue
Block a user