Skip to content

Customize author's nick in webhook #572

Open
@DarthGandalf

Description

@DarthGandalf

E.g. make it ... (via IRC) to make it clear where the message comes from instead of just saying "Bot"

The "format.discord" option from config isn't used in the webhook mode, from what I can see in

discord-irc/lib/bot.js

Lines 597 to 602 in e0f2edf

const username = _.padEnd(author.substring(0, USERNAME_MAX_LENGTH), USERNAME_MIN_LENGTH, '_');
webhook.client.send(withMentions, {
username,
avatarURL,
disableMentions: canPingEveryone ? 'none' : 'everyone',
}).catch(logger.error);

In the non-webhook case I could make the bot's nick to be "IRC", so it's not the problem there

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions