nonebot-plugin-shitbot 0.4.0__tar.gz → 0.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/PKG-INFO +2 -1
  2. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/convert_cmd.py +1 -1
  3. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/PKG-INFO +2 -1
  4. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/requires.txt +1 -0
  5. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/pyproject.toml +2 -1
  6. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/LICENSE +0 -0
  7. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/README.md +0 -0
  8. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/__init__.py +0 -0
  9. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/aux.py +0 -0
  10. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/command.py +0 -0
  11. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/__init__.py +0 -0
  12. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/advrandpic_cmd.py +0 -0
  13. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/autoreply_cmd.py +0 -0
  14. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/autoreply_main_cmd.py +0 -0
  15. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/help_cmd.py +0 -0
  16. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/md2pic_cmd.py +0 -0
  17. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/perm_cmd.py +0 -0
  18. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/pixiv_cmd.py +0 -0
  19. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/randpic_cmd.py +0 -0
  20. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/session_cmd.py +0 -0
  21. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/shitpost_cmd.py +0 -0
  22. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/config.py +0 -0
  23. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/css/github-markdown-dark-dimmed.css +0 -0
  24. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/handlers.py +0 -0
  25. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/advrandpic.md +0 -0
  26. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/autoreply.md +0 -0
  27. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/convert.md +0 -0
  28. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/help.md +0 -0
  29. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/imgs/md2picex1.png +0 -0
  30. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/imgs/md2picex2.png +0 -0
  31. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/index.md +0 -0
  32. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/md2pic.md +0 -0
  33. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/perm.md +0 -0
  34. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/pixiv.md +0 -0
  35. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/randpic.md +0 -0
  36. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/session.md +0 -0
  37. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/shitpost.md +0 -0
  38. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/msgdatabase.py +0 -0
  39. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/msgutils.py +0 -0
  40. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/parser.py +0 -0
  41. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/permissions.py +0 -0
  42. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/session.py +0 -0
  43. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/tasks.py +0 -0
  44. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/SOURCES.txt +0 -0
  45. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/dependency_links.txt +0 -0
  46. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/top_level.txt +0 -0
  47. {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/setup.cfg +0 -0
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-shitbot
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: NoneBot shitpost plugin
5
5
  Requires-Python: >=3.10
6
6
  License-File: LICENSE
7
7
  Requires-Dist: nonebot2>=2.5.0
8
8
  Requires-Dist: nonebot-adapter-onebot>=2.4.6
9
9
  Requires-Dist: nonebot-plugin-htmlrender>=0.6.7
10
+ Requires-Dist: fastapi>=0.100
10
11
  Requires-Dist: nonebot-plugin-localstore>=0.3.0
11
12
  Requires-Dist: PixivPy-Async>=1.2.14
12
13
  Requires-Dist: Pillow>=12.2.0
@@ -8,7 +8,6 @@ from pathlib import Path
8
8
  from typing import TYPE_CHECKING
9
9
 
10
10
  import httpx
11
- import magic
12
11
  from nonebot.adapters.onebot.v11 import Bot, Message, MessageEvent, MessageSegment
13
12
  from nonebot.log import logger
14
13
 
@@ -96,6 +95,7 @@ class BotCommandConvert(BotCommand):
96
95
  if download_path == "":
97
96
  return ""
98
97
  png_path = png_dir / f"{uuid.uuid4().hex}.png"
98
+ import magic
99
99
  mime = magic.from_file(download_path, mime=True)
100
100
  logger.info(
101
101
  f"检测文件类型: {mime}, 执行图片转 PNG: {download_path} -> {png_path}"
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-shitbot
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: NoneBot shitpost plugin
5
5
  Requires-Python: >=3.10
6
6
  License-File: LICENSE
7
7
  Requires-Dist: nonebot2>=2.5.0
8
8
  Requires-Dist: nonebot-adapter-onebot>=2.4.6
9
9
  Requires-Dist: nonebot-plugin-htmlrender>=0.6.7
10
+ Requires-Dist: fastapi>=0.100
10
11
  Requires-Dist: nonebot-plugin-localstore>=0.3.0
11
12
  Requires-Dist: PixivPy-Async>=1.2.14
12
13
  Requires-Dist: Pillow>=12.2.0
@@ -1,6 +1,7 @@
1
1
  nonebot2>=2.5.0
2
2
  nonebot-adapter-onebot>=2.4.6
3
3
  nonebot-plugin-htmlrender>=0.6.7
4
+ fastapi>=0.100
4
5
  nonebot-plugin-localstore>=0.3.0
5
6
  PixivPy-Async>=1.2.14
6
7
  Pillow>=12.2.0
@@ -1,12 +1,13 @@
1
1
  [project]
2
2
  name = "nonebot-plugin-shitbot"
3
- version = "0.4.0"
3
+ version = "0.4.2"
4
4
  description = "NoneBot shitpost plugin"
5
5
  requires-python = ">=3.10"
6
6
  dependencies = [
7
7
  "nonebot2>=2.5.0",
8
8
  "nonebot-adapter-onebot>=2.4.6",
9
9
  "nonebot-plugin-htmlrender>=0.6.7",
10
+ "fastapi>=0.100",
10
11
  "nonebot-plugin-localstore>=0.3.0",
11
12
  "PixivPy-Async>=1.2.14",
12
13
  "Pillow>=12.2.0",