bot-myrtus / forward

Provides a message forwarding feature.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

建议丰富头像显示

adquantum opened this issue · comments

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

可以给个示例吗

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

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

你用的是这个插件吗

这个插件是有 ID 显示的

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

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

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

那你希望改成啥样的呢?

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

image
l类似上面这样

image l类似上面这样

dc 似乎没有提供这种接口

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/

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/

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

已发版

大佬牛逼

已发版

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

已发版

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

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