bot-myrtus / forward

Provides a message forwarding feature.
GNU Affero General Public License v3.0
36 stars 5 forks source link

建议丰富头像显示 #12

Closed adquantum closed 1 year ago

adquantum commented 1 year ago

例如discord机器人转发qq消息时,将每条消息的id和头像设置为对应qq用户的头像和id

idranme commented 1 year ago

可以给个示例吗

adquantum commented 1 year ago

image 如图,dc机器人(以及其他平台)应该有接口让机器人能够显示消息发送者的id和avatar image

idranme commented 1 year ago

image 如图,dc机器人(以及其他平台)应该有接口让机器人能够显示消息发送者的id和avatar image

你用的是这个插件吗

idranme commented 1 year ago

这个插件是有 ID 显示的

adquantum commented 1 year ago

image 如果使用本插件,是这样,纯文字看起来有点分不清谁是谁,如果文本量大的话

adquantum commented 1 year ago

上面的截图来自dcqq-relay插件

idranme commented 1 year ago

image 如果使用本插件,是这样,纯文字看起来有点分不清谁是谁,如果文本量大的话

那你希望改成啥样的呢?

adquantum commented 1 year ago

增加一个头像avatar的显示,让dc机器人以这个avatar的形象发送该条消息?

adquantum commented 1 year ago

image l类似上面这样

idranme commented 1 year ago

image l类似上面这样

dc 似乎没有提供这种接口

adquantum commented 1 year ago
result.children.push(
  <author
    nickname={`[QQ:${session.userId}] ${session.username}`}
    avatar={session.author.avatar}
  />
);
result.children = [...result.children, ...tmp];
let sent = await dcBot.sendMessage(
  relation.discordChannel,
  result,
  relation.discordGuild
);
大概是这样的?

https://github.com/koishijs/koishi-plugin-dcqq-relay/

idranme commented 1 year ago
result.children.push(
  <author
    nickname={`[QQ:${session.userId}] ${session.username}`}
    avatar={session.author.avatar}
  />
);
result.children = [...result.children, ...tmp];
let sent = await dcBot.sendMessage(
  relation.discordChannel,
  result,
  relation.discordGuild
);
大概是这样的?

https://github.com/koishijs/koishi-plugin-dcqq-relay/

晚点我试试,快的话今晚发版。

idranme commented 1 year ago

已发版

adquantum commented 1 year ago

大佬牛逼

devil233-ui commented 10 months ago

已发版

请问dc和tg转发能也装个这功能么

idranme commented 10 months ago

已发版

请问dc和tg转发能也装个这功能么

可以在tg转dc时使用这个功能