Open philliproso opened 8 years ago
If you export NODE_ENV as development you should see a debug log for each Slack message posted (i.e. NODE_ENV=development slack-irc --config
). Then you can see the raw message that gets posted to Slack, should help with debugging.
I narrowed it down to the parseText method in bot.js https://github.com/ekmartin/slack-irc/blob/master/lib/bot.js
There's a test for that here: https://github.com/ekmartin/slack-irc/blob/master/test/bot.test.js#L268
You could try adding an assertion using the input message that produces the weird output, then removing replace
statements from parseText
until it stays the same (for example).
I'm wondering if this has something to do with the escape sequences and color codes that are being sent:
The slack-irc bot adds a random character to the slack message, sometimes really strangely.
IRC message example PROBLEM - xxxxxxxxxxxxxxxxxxx IRC message in slack PROBLEM - 5xxxxxxxxxxxxx
Any idea where this comes from or where I should look.