🐛 fix: strip after at bot

This commit is contained in:
yanyongyu
2020-09-10 18:31:53 +08:00
parent 6d37417d21
commit bd7aaa94c6
5 changed files with 23 additions and 2 deletions

View File

@ -151,6 +151,8 @@ 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())