Skip to content

Commit

Permalink
Merge pull request #73 from yzyyz1387/main-check
Browse files Browse the repository at this point in the history
🚨 MANIFEST.in
  • Loading branch information
yzyyz1387 authored Dec 20, 2022
2 parents ff2c233 + 97c1035 commit 9dd77d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

recursive-include nonebot_plugin_admin/ *.html
2 changes: 0 additions & 2 deletions nonebot_plugin_admin/word_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ async def _(bot: Bot, event: GroupMessageEvent):
txt = c.read().split('\n')
if gid not in txt:
c.write(gid + '\n')
c.close()
logger.info(f"开始记录{gid}")
await word_start.finish('成功')
logger.info(f"{gid}已存在")
Expand All @@ -47,7 +46,6 @@ async def _(bot: Bot, event: GroupMessageEvent):
if gid in txt:
with open(word_path, 'w', encoding='utf-8') as c:
c.write(txt.replace(gid, ''))
c.close()
logger.info(f"停止记录{gid}")
await word_start.finish('成功,曾经的记录不会被删除')
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="nonebot-plugin-admin",
version="0.4.1",
version="0.4.2",
author="yzyyz1387",
author_email="[email protected]",
keywords=("pip", "nonebot2", "nonebot", "admin", "nonebot_plugin"),
Expand Down

0 comments on commit 9dd77d0

Please sign in to comment.