Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Wybxc committed Aug 7, 2021
1 parent 271fff5 commit 8d46e30
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 86 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if __name__ == '__main__':
@bot.on(FriendMessage)
async def on_friend_message(event: FriendMessage):
if str(event.message_chain) == '你好':
return bot.send_friend_message(event.sender.id, ['Hello World!'])
await bot.send(event, 'Hello World!')

bot.run()
```
Expand Down
2 changes: 1 addition & 1 deletion mirai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
更多信息参看[文档](https://yiri-mirai.vercel.app/)
"""
__version__ = '0.1.6'
__version__ = '0.2.0'
__author__ = '忘忧北萱草'

import logging
Expand Down
88 changes: 9 additions & 79 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "yiri-mirai"
version = "0.1.6"
version = "0.2.0"
description = "一个轻量级、低耦合的基于 mirai-api-http 的 Python SDK。"
authors = ["忘忧北萱草 <wybxc@qq.com>"]
packages = [{ include = "mirai" }]
Expand All @@ -14,17 +14,16 @@ httpx = "^0.18.2"
pydantic = "^1.8.2"
websockets = "^9.1"
typing-extensions = { version = "^3.10.0", python = "3.7" }
starlette = "^0.14.2"
starlette = ">=0.14.2, < 1.0"
aiofiles = "^0.7.0"
uvicorn = { extras = ["standard"], version = "^0.14.0", optional = true }
hypercorn = { version = "^0.11.2", optional = true }
uvicorn = { extras = ["standard"], version = ">=0.14.0, <1.0", optional = true }
hypercorn = { version = ">=0.11.2, <1.0", optional = true }


[tool.poetry.dev-dependencies]
yapf = "^0.31.0"
toml = "^0.10.2"
pdoc3 = "^0.9.2"
flake8 = "^3.9.2"
mypy = "^0.910"

[tool.poetry.extras]
Expand Down

0 comments on commit 8d46e30

Please sign in to comment.