🎨 format code using black and isort

This commit is contained in:
yanyongyu
2021-11-22 23:21:26 +08:00
parent 602185a34e
commit a98d98cd12
86 changed files with 2893 additions and 2095 deletions

View File

@ -1,8 +1,8 @@
from nonebot.plugin import on_keyword, on_command
from nonebot.rule import to_me
from nonebot.plugin import on_command, on_keyword
from nonebot.adapters.mirai import Bot, MessageEvent
message_test = on_keyword({'reply'}, rule=to_me())
message_test = on_keyword({"reply"}, rule=to_me())
@message_test.handle()
@ -11,10 +11,10 @@ async def _message(bot: Bot, event: MessageEvent):
await bot.send(event, text, at_sender=True)
command_test = on_command('miecho')
command_test = on_command("miecho")
@command_test.handle()
async def _echo(bot: Bot, event: MessageEvent):
text = event.get_plaintext()
await bot.send(event, text, at_sender=True)
await bot.send(event, text, at_sender=True)