Comments (12)
目前暂时不能,原插件可以,但它使用的api是nonebot2
才有的reply属性,可以获取被回复消息的图片;而hoshino
基于的nonebot1
暂时没有该属性,只能获取到被回复消息的id
,没研究过能不能依此获取到被回复消息的图片。
在init.py的第53行注释就是原插件里的对被回复消息图片的处理。
from headimg_generator.
目前暂时不能,原插件可以,但它使用的api是
nonebot2
才有的reply属性,可以获取被回复消息的图片;而hoshino
基于的nonebot1
暂时没有该属性,只能获取到被回复消息的id
,没研究过能不能依此获取到被回复消息的图片。 在init.py的第53行注释就是原插件里的对被回复消息图片的处理。
好的明白了
from headimg_generator.
调整cqhttp的设置
# 为Reply附加更多信息
extra-reply-data: true
即可获得回复的消息的文本及cq码
from headimg_generator.
尝试修改设置之后,拿到的内容是
[CQ:reply,id=1894547954,seq=2408,qq=我Q号,time=1664040845,text=[图片]][CQ:at,qq=我Q号] 撕
from headimg_generator.
尝试修改设置之后,拿到的内容是
[CQ:reply,id=1894547954,seq=2408,qq=我Q号,time=1664040845,text=[图片]][CQ:at,qq=我Q号] 撕
text里面的图片内容转换为cq码即可
from headimg_generator.
目前暂时不能,原插件可以,但它使用的api是
nonebot2
才有的reply属性,可以获取被回复消息的图片;而hoshino
基于的nonebot1
暂时没有该属性,只能获取到被回复消息的id
,没研究过能不能依此获取到被回复消息的图片。 在init.py的第53行注释就是原插件里的对被回复消息图片的处理。
可以的,但是当前go-cqhttp的稳定版构建存在bug,回复id获取会出问题,dev分支的最新构建已修复
from headimg_generator.
目前暂时不能,原插件可以,但它使用的api是
nonebot2
才有的reply属性,可以获取被回复消息的图片;而hoshino
基于的nonebot1
暂时没有该属性,只能获取到被回复消息的id
,没研究过能不能依此获取到被回复消息的图片。 在init.py的第53行注释就是原插件里的对被回复消息图片的处理。可以的,但是当前go-cqhttp的稳定版构建存在bug,回复id获取会出问题,dev分支的最新构建已修复
好,等会战结束了我研究下。
from headimg_generator.
好,等会战结束了我研究下。
实现方法:
bot.get_msg(msg_id)
from headimg_generator.
finish in #18
对于一个完整的reply message,存在一个隐式调用的@cq码;同时当回复对象不是自己时,会自动补充一个显示@,对于PCQQ无法主动删除,移动端则可以手动删除@,因此一个完整的reply最多会重复两次at,因为reply中本身就存在回复对象的QQ,因此这两个@建议删除以防止读错参数
from headimg_generator.
finish in #18
对于一个完整的reply message,存在一个隐式调用的@cq码;同时当回复对象不是自己时,会自动补充一个显示@,对于PCQQ无法主动删除,移动端则可以手动删除@,因此一个完整的reply最多会重复两次at,因为reply中本身就存在回复对象的QQ,因此这两个@建议删除以防止读错参数
关于移动端和PC端的是不是反了?我自己测试的ios qq和mac qq,显示的at删掉的话,pc端是没有隐式at,而手机端还保留着隐式at
from headimg_generator.
finish in #18
对于一个完整的reply message,存在一个隐式调用的@cq码;同时当回复对象不是自己时,会自动补充一个显示@,对于PCQQ无法主动删除,移动端则可以手动删除@,因此一个完整的reply最多会重复两次at,因为reply中本身就存在回复对象的QQ,因此这两个@建议删除以防止读错参数关于移动端和PC端的是不是反了?我自己测试的ios qq和mac qq,显示的at删掉的话,pc端是没有隐式at,而手机端还保留着隐式at
PC和AndroidQQ可以删除回复时附带的显式at,删除以后你看raw_message还是存在一个隐式的at(因为回复本身就带一个隐式at)
from headimg_generator.
感谢
from headimg_generator.
Related Issues (20)
- 表情包会一闪一闪的。 HOT 2
- 无法加载 resources 下 fonts 字体 HOT 4
- 无法显示文字 HOT 3
- 这个报错应该怎么办呢?
- pip install -r requirements.txt 报错 HOT 1
- 同步上游更新 HOT 3
- TypeError: split_msg_v11() takes 4 positional arguments but 5 were given HOT 1
- 新版本前后端分离后,关于中文显示方块/无法加载字体的一种解决思路 HOT 3
- 在首次安装生成config.yml后再次启动hoshino时出现报错 HOT 6
- 能否像以前一样增加回复触发? HOT 5
- 报错显示这个 求助 HOT 14
- 这是什么报错 HOT 1
- 请问 我安装后不能使用怎么办 HOT 7
- 报错 yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:hoshino.modules.headimg_generator.manage r.MemeMode' 解决办法 HOT 2
- 典中典无法使用,求助 HOT 4
- AttributeError: 'Event' object has no attribute 'to_me' HOT 2
- Docker部署的Hoshinobot,字体问题应该如何解决? HOT 2
- 这个报错重装依赖也运行不起来 HOT 1
- 使用at和’自己‘方式触发时报错 HOT 7
- 表情资源和none那边不会同步吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headimg_generator.