Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop bot from displaying username of user from Slack #195

Open
stonecoldpat opened this issue May 2, 2017 · 3 comments
Open

Stop bot from displaying username of user from Slack #195

stonecoldpat opened this issue May 2, 2017 · 3 comments

Comments

@stonecoldpat
Copy link

stonecoldpat commented May 2, 2017

Hi,

I've been playing with the bot, and when I send a message from Slack to IRC it looks like:

[19:01] <stonecoldpat> <stonecoldpat> ok

<stonecoldpat> is my username in slack (and also irc).

is there a way to stop the slack name being sent to IRC? It would also be great to add this to the README.md for others if it is possible (which is why I made the issue). I couldn't find the documentation on how to do this anywhere.

@ekmartin
Copy link
Owner

ekmartin commented May 2, 2017

Is the reason you want to hide the Slack username that you're trying to use Slack as an IRC client? If so there's a section in the README about that, with a corresponding recommendation: https://github.com/ekmartin/slack-irc#personal-irc-client

@stonecoldpat
Copy link
Author

stonecoldpat commented May 2, 2017

It is mostly for our team to sit on an IRC channel and receive messages from it. But it would be good to hide who is sending messages from slack to IRC. So on IRC it could come up [10:03] < teamname > hello

@ekmartin
Copy link
Owner

ekmartin commented May 3, 2017

Ah, I see - you want to make the contact from your team's side anonymous. I'd be open to adding an ircMessageFormat configuration option that would default to <$username> $message. The implementation would probably look similar to https://github.com/ekmartin/slack-irc/pull/171/files.
If you just want to change this in your own fork the lines you'd have to change would be these: https://github.com/ekmartin/slack-irc/blob/master/lib/bot.js#L209-L217.

If we added an ircMessageFormat option we'd probably have to add ircActionFormat, ircFileFormat and so on too though, could probably put it under a format object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants