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.
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/PKG-INFO +2 -1
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/convert_cmd.py +1 -1
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/PKG-INFO +2 -1
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/requires.txt +1 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/pyproject.toml +2 -1
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/LICENSE +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/README.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/__init__.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/aux.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/command.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/__init__.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/advrandpic_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/autoreply_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/autoreply_main_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/help_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/md2pic_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/perm_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/pixiv_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/randpic_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/session_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/commands/shitpost_cmd.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/config.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/css/github-markdown-dark-dimmed.css +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/handlers.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/advrandpic.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/autoreply.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/convert.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/help.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/imgs/md2picex1.png +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/imgs/md2picex2.png +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/index.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/md2pic.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/perm.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/pixiv.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/randpic.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/session.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/shitpost.md +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/msgdatabase.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/msgutils.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/parser.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/permissions.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/session.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/tasks.py +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/SOURCES.txt +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/dependency_links.txt +0 -0
- {nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot.egg-info/top_level.txt +0 -0
- {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.
|
|
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.
|
|
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,12 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "nonebot-plugin-shitbot"
|
|
3
|
-
version = "0.4.
|
|
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",
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/command.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/config.py
RENAMED
|
File without changes
|
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/handlers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/convert.md
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/help.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/index.md
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/md2pic.md
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/perm.md
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/pixiv.md
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/randpic.md
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/help/session.md
RENAMED
|
File without changes
|
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/msgdatabase.py
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/msgutils.py
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/parser.py
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/permissions.py
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/session.py
RENAMED
|
File without changes
|
{nonebot_plugin_shitbot-0.4.0 → nonebot_plugin_shitbot-0.4.2}/nonebot_plugin_shitbot/tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|