Skip to content

Commit

Permalink
[🚀]update 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
benx1n committed Nov 15, 2023
1 parent 00d3152 commit 0a86020
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
42 changes: 21 additions & 21 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,40 @@
config.nb2_path = Path(__file__).parent


if __name__ == "__mp_main__" or ("run" in sys.argv and "nb" in sys.argv[0]):
if __name__ == '__mp_main__' or ('run' in sys.argv and 'nb' in sys.argv[0]):
logger.add(
"logs/error.log",
rotation="00:00",
retention="1 week",
'logs/error.log',
rotation='00:00',
retention='1 week',
diagnose=False,
level="ERROR",
level='ERROR',
format=default_format,
encoding="utf-8",
encoding='utf-8',
)
logger.add(
"logs/info.log",
rotation="00:00",
retention="1 week",
'logs/info.log',
rotation='00:00',
retention='1 week',
diagnose=False,
level="INFO",
level='INFO',
format=default_format,
encoding="utf-8",
encoding='utf-8',
)
logger.add(
"logs/warning.log",
rotation="00:00",
retention="1 week",
'logs/warning.log',
rotation='00:00',
retention='1 week',
diagnose=False,
level="WARNING",
level='WARNING',
format=default_format,
encoding="utf-8",
encoding='utf-8',
)
if driver.config.use_plugin_go_cqhttp:
nonebot.load_plugin("nonebot_plugin_gocqhttp")
nonebot.load_from_toml("pyproject.toml")
nonebot.load_plugin('nonebot_plugin_gocqhttp')
nonebot.load_from_toml('pyproject.toml')
# ...

if __name__ == "__main__":
if __name__ == '__main__':
# logger.warning("Always use `nb run` to start the bot instead of manually running!")
nonebot.load_plugin("nonebot_plugin_reboot")
nonebot.run(app="__mp_main__:app")
nonebot.load_plugin('nonebot_plugin_reboot')
nonebot.run(app='__mp_main__:app')
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hikari-bot"
version = "1.0.2.1"
version = "1.0.3"
description = "Nonebot2 HikariBot,支持战舰世界水表查询"
authors = ["benx1n <shirakamikanade@gmail.com>"]
license = "MIT"
Expand All @@ -14,7 +14,7 @@ packages = [

[tool.poetry.dependencies]
python = "^3.8.0"
nonebot2 = { version = "^2.0.1", extras = ["fastapi"] }
nonebot2 = { version = "^2.1.0", extras = ["httpx", "websockets", "fastapi"] }
nonebot-adapter-onebot = "^2.1.0"
nonebot-plugin-apscheduler = "^0.2.0"
nonebot_plugin_guild_patch = "^0.2.1"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/hikari_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
is_first_run = True
_nlmt = DailyNumberLimiter(_max)
_flmt = FreqLimiter(3)
__bot_version__ = '1.0.2.1'
__bot_version__ = '1.0.3'

bot_get_random_pic = on_fullmatch('wws 随机表情包', block=True, priority=5)
bot_update = on_fullmatch('wws 更新Hikari', priority=5, block=True, permission=SUPERUSER)
Expand Down

0 comments on commit 0a86020

Please sign in to comment.