Skip to content

Commit

Permalink
fix: 修复python3.8中无法导入的问题 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttkkl authored Sep 5, 2023
1 parent 29e20c0 commit 0aa2135
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import nonebot
from nonebot.adapters.kaiheila import Adapter, Bot

nonebot.init()

driver = nonebot.get_driver()
driver.register_adapter(Adapter)

@driver.on_bot_connect()
def _(bot: Bot):
bot.upload_file()


if __name__ == "__main__":
nonebot.run()
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot-adapter-kaiheila"
version = "0.2.10"
version = "0.2.11"
description = "kaiheila adapter for nonebot2"
authors = ["Tian-que <1605206150@qq.com>", "ssttkkl <huang.wen.long@hotmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 0aa2135

Please sign in to comment.