Project

General

Profile

Feature #660

Receiving raw server messages

Added by Markus Krieger over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
irccd
Target version:
-
Start date:
06/11/2017
Due date:
% Done:

0%

Estimated time:
8.00 h
Spent time:
MFD after:
MFD revision:
Branch:
default
Bookmark:
@
Platform:

Description

Hello,
I use your awesome bot on my Twitch channel chat. Their chat servers generally follows RFC1459, but they have a lot custom stuff on their servers, too. (If your interested [[https://dev.twitch.tv/docs/v5/guides/irc/]] )
Generally speaking they have some custom commands for example capabilities. A general "cap req" command request/response looks like this:

< CAP REQ :twitch.tv/membership
> :tmi.twitch.tv CAP * ACK :twitch.tv/membership

Once turned on these capabilities add tags to events for example a PRIVMSG event might look like:

> @badges=global_mod/1,turbo/1;color=#0D4200;display-name=dallas;emotes=25:0-4,12-16/1902:6-10;mod=0;room-id=1337;subscriber=0;turbo=1;user-id=1337;user-type=global_mod :ronni!ronni@ronni.tmi.twitch.tv PRIVMSG #dallas :Kappa Keepo Kappa

Of course this is is a very custom thing and I don't expect you to support it.
Which brings me back to the request for RAW messages.
While I can send the cap request through server.send(message) the bot breaks after it receives the newly tagged messages.
So would it be possible to get an onRawMessage(server, message) event which just passes on all server send commands as is? Then I could parse the messages myself.

Thank you very much,
Wizzzzard


Files

raw.patch (1.42 KB) raw.patch initial patch David Demelier, 06/15/2017 12:56 PM

History

#1

Updated by David Demelier over 2 years ago

  • Category set to irccd
  • Assignee set to David Demelier
  • Estimated time set to 8.00 h

Hello,

This will require to modify the external libircclient but as it is shipped with irccd we can do this. However I have no twitch account so I will need some time to implement this.

#2

Updated by David Demelier over 2 years ago

Markus,

Can you try the following patch and tell me what is printed into the console when you get custom messages?

The libircclient provides a function for messages that are not known in IRC protocol, perhaps we can deal with it. I just need that you receive a message and show me what you receive.

To apply do the following.

# Clone if not already done
hg clone http://hg.malikania.fr/irccd
cd irccd
hg import ~/raw.patch

Then compile and test please.

#3

Updated by David Demelier over 2 years ago

  • Status changed from New to Feedback
#4

Updated by David Demelier over 2 years ago

  • Status changed from Feedback to Closed

Closed as no feedback timeout, please reopen the issue if you have time to test.

Also available in: Atom PDF