JHue58 / ChatLearning

基于mirai-api-http,让bot学会你的群的说话方式
GNU Affero General Public License v3.0
313 stars 21 forks source link

[建议]增加对卡片消息的过滤选项 #78

Open CDN18 opened 1 year ago

CDN18 commented 1 year ago

ChatLearning会记录群聊内的几乎所有消息,包括分享类的卡片消息,例如:

[{'type': 'App', 'content': '{"config":{"forward":true,"type":"card","autosize":true},"prompt":"[应用]地图","from":1,"app":"com.tencent.map","ver":"1.1.2.4","view":"LocationShare","meta":{"Location.Search":{"from":"plusPanel","id":"1**********5","lat":"**.*****5","lng":"***.******","name":"****","address":"**省**市**区**路**号"}},"desc":""}'}]

是否可以实现一个过滤规则,过滤这种消息呢?