ChenXu233 / nonebot-plugin-watermarker

一个为nonebot发出的图片添加水印的插件
MIT License
2 stars 0 forks source link

等待watermark_image_exculed_plugin实现 #3

Closed Nenot233 closed 1 year ago

Nenot233 commented 1 year ago

由于GIF也会出现水印,导致无法正常发送GIF

PackageInstaller commented 1 year ago

刚想提issues你这就发了哈哈

ChenXu233 commented 1 year ago

由于GIF也会出现水印,导致无法正常发送GIF

到时候为GIF也添加一个适配,然后新增配置针对不同类型的图片选择性加水印(((

ChenXu233 commented 1 year ago

真糟糕,因为不能在on_calling_api钩子函数里面获取调用api的插件信息(ddl:调用api行为和插件无关),所以这个插件目前只能无差别攻击 总之我还是先把GIF适配整了

ChenXu233 commented 1 year ago

40BG{C_%(RWIXP~LB4AXR2 再咕一个星期,获得调用API的插件信息的方法已经知道了(current_matcher),完工在望

base64padding的问题解决了(

Nenot233 commented 1 year ago

PackageInstaller commented 1 year ago

image

PackageInstaller commented 1 year ago

话说能对特定插件排除水印吗,我超分图片,出来的图带水印,就很怪((((

ChenXu233 commented 1 year ago

话说能对特定插件排除水印吗,我超分图片,出来的图带水印,就很怪((((

在写了在写了

(可以用的版本已经传上GitHub了,但是pip的版本还没有上传,准备和GIF适配一起做了在弄到pip上) E$K2)SY{{ R33 OVDCJM(~D

ChenXu233 commented 1 year ago

完成了!

_2V7KI@M`0SD83 `BXE7IES

PackageInstaller commented 1 year ago

好,让我git pull

PackageInstaller commented 1 year ago

watermark_image_exculed_plugin = [extensive_plugin.plugins.super_resolution]这样设置了还是不行

ChenXu233 commented 1 year ago

watermark_image_exculed_plugin = [extensive_plugin.plugins.super_resolution]这样设置了还是不行

给插件名称加双引号,这个里面其实是一个列表里面用字符串代表插件名称 如:

watermark_image_exculed_plugin = ["extensive_plugin.plugins.super_resolution","其他插件名称"]
PackageInstaller commented 1 year ago

watermark_image_exculed_plugin = [extensive_plugin.plugins.super_resolution]这样设置了还是不行

给插件名称加双引号,这个里面其实是一个列表里面用字符串代表插件名称 如:

watermark_image_exculed_plugin = ["extensive_plugin.plugins.super_resolution","其他插件名称"]

还是不行,我看看真寻手册先

ChenXu233 commented 1 year ago

watermark_image_exculed_plugin = [extensive_plugin.plugins.super_resolution]这样设置了还是不行

给插件名称加双引号,这个里面其实是一个列表里面用字符串代表插件名称 如:

watermark_image_exculed_plugin = ["extensive_plugin.plugins.super_resolution","其他插件名称"]

还是不行,我看看真寻手册先

那我找个机会弄个真寻bot在本地试试(

PackageInstaller commented 1 year ago

草,那我找个机会把真寻bot弄下来试试

速速做个真寻适配版(((

ChenXu233 commented 1 year ago

)Y1G~_ }8@0I)71` }I0M0K_tmb

ChenXu233 commented 1 year ago

草,那我找个机会把真寻bot弄下来试试

速速做个真寻适配版(((

草,不想搭建数据库,你能不能给我看看你的真寻运行的debug日志什么的,我看看每个matcher名称是什么,这样好有针对性的修改 _L}@SARWO%%G)YYP(6@F(RH

PackageInstaller commented 1 year ago

草,那我找个机会把真寻bot弄下来试试

速速做个真寻适配版(((

草,不想搭建数据库,你能不能给我看看你的真寻运行的debug日志什么的,我看看每个matcher名称是什么,这样好有针对性的修改 _L}@SARWO%%G)YYP(6@F(RH

不知道为什么,我在.env.dev中设置DEBUG=True后后台还是正常的样子

PackageInstaller commented 1 year ago

唯一一次卡出来debu模式还是在装了拟声鸟那个插件的依赖后,但是我现在是python3.11,那个依赖要3.10

ChenXu233 commented 1 year ago

要不问问真寻bot群的群友们((

ChenXu233 commented 1 year ago

其实INFO也可以(( image

可以在INFO中看见

06-03 22:37:33 [INFO] nonebot | Matcher(type='message', module=extensive_plugin.nonebot_plugin_petpet) running complete

内有Matcher的一些信息,这个Matcher有跟随着插件的名字

module=extensive_plugin.nonebot_plugin_petpet

在配置项内填入

watermark_image_exculed_plugin = ["extensive_plugin.super_resolution","其他插件名称"]

即可成功((


接下来出什么大事估计得明天搞了**

PackageInstaller commented 1 year ago

其实INFO也可以(( image

可以在INFO中看见

06-03 22:37:33 [INFO] nonebot | Matcher(type='message', module=extensive_plugin.nonebot_plugin_petpet) running complete

内有Matcher的一些信息,这个Matcher有跟随着插件的名字

module=extensive_plugin.nonebot_plugin_petpet

在配置项内填入

watermark_image_exculed_plugin = ["extensive_plugin.super_resolution","其他插件名称"]

即可成功((

接下来出什么大事估计得明天搞了**

大概就是这样吧ba image image image

PackageInstaller commented 1 year ago

虽然有报错,但是带上了水印()

ChenXu233 commented 1 year ago

奇怪了,要不你直接改插件里的config.py? https://github.com/X-Skirt-X/nonebot-plugin-watermarker/blob/2376bf417abc8ce0bd2ce477b48b333183ba611c/nonebot_plugin_watermarker/config.py#L16 往这里加(?

ChenXu233 commented 1 year ago

实在不行我写个logINFO输出插件名称 然后根据这个插件名称去改

PackageInstaller commented 1 year ago

奇怪了,要不你直接改插件里的config.py? https://github.com/X-Skirt-X/nonebot-plugin-watermarker/blob/2376bf417abc8ce0bd2ce477b48b333183ba611c/nonebot_plugin_watermarker/config.py#L16 往这里加(?

你怎么知道我们真寻Bot玩家一般都是直接改config.py的(bushi,在加了,重启中 18a9cba92c39a317.gif

PackageInstaller commented 1 year ago

加了后还是不行 image

后台截图 image image

ChenXu233 commented 1 year ago

试试GitHub版本,然后再看日志(等我push上来(( image

ChenXu233 commented 1 year ago

现在再看看(?

PackageInstaller commented 1 year ago

image

ChenXu233 commented 1 year ago

image

看看你的config.py(感觉应该没问题啊*

PackageInstaller commented 1 year ago

image

ChenXu233 commented 1 year ago

感觉没问题啊,诡异啊,我自己这里都能用的

ChenXu233 commented 1 year ago

image

看起来有点像中文逗号

PackageInstaller commented 1 year ago

image

看起来有点像中文逗号

不可能,我这用英文引号自动补全的,要是中文直接报错

ChenXu233 commented 1 year ago

image

看起来有点像中文逗号

不可能,我这用英文引号自动补全的,要是中文直接报错

问题解决了吗?没有解决的话咱QQ上继续吧,这里不太好搞,你可以把QQ号发到我邮箱()

PackageInstaller commented 1 year ago

image

看起来有点像中文逗号

不可能,我这用英文引号自动补全的,要是中文直接报错

问题解决了吗?没有解决的话咱QQ上继续吧,这里不太好搞,你可以把QQ号发到我邮箱()

我不知道你邮箱啊

ChenXu233 commented 1 year ago

image

看起来有点像中文逗号

不可能,我这用英文引号自动补全的,要是中文直接报错

问题解决了吗?没有解决的话咱QQ上继续吧,这里不太好搞,你可以把QQ号发到我邮箱()

我不知道你邮箱啊

GitHub上有啊() Woyerpa@outlook.com

PackageInstaller commented 1 year ago

image

看起来有点像中文逗号

不可能,我这用英文引号自动补全的,要是中文直接报错

问题解决了吗?没有解决的话咱QQ上继续吧,这里不太好搞,你可以把QQ号发到我邮箱()

我不知道你邮箱啊

GitHub上有啊() Woyerpa@outlook.com

发你了

ChenXu233 commented 1 year ago

理论上这个问题已经被解决,关issue咯。