Get current ROOMSTATE

Hello guys,

I am reading a channel chat via socket connection.

As far as I understood the /tags capability will only give me an update as the room state changes, so if I join a channel that is currently in slow mode, I wouldn’t notice until someone turns it off.

Is there a way of getting the current room state of a channel chat ?

Greetings and thanks for your help

You get a full ROOMSTATE upon JOINing the room.

I’m sorry, I’m probably missing something.

Upon sending my credentials and the CAP REQs this is what I get (using channel #grimmmz as example): 001 ionicblaze :Welcome, GLHF! 002 ionicblaze :Your host is 003 ionicblaze :This server is rather new 004 ionicblaze :- 375 ionicblaze :- 372 ionicblaze :You are in a maze of twisty passages, all alike. 376 ionicblaze :>
:ionicblaze! JOIN #grimmmz CAP * ACK CAP * ACK CAP * ACK 353 ionicblaze = #grimmmz :ionicblaze 366 ionicblaze #grimmmz :End of /NAMES list
:jtv MODE #grimmmz +o anele
:jtv MODE #grimmmz +o sazzlles
:jtv MODE #grimmmz +o mssbunnii
:jtv MODE #grimmmz +o crown9te
:jtv MODE #grimmmz +o xifonix
:jtv MODE #grimmmz +o whisenhunt
:jtv MODE #grimmmz +o nightbot
:jtv MODE #grimmmz +o grimmmz

Where am I supposed to get information about the roomstate ?

Your JOIN is being acknowledged before the CAP REQs are. Delay the JOIN by a little bit.

$ openssl s_client -connect -quiet
depth=2 C = US, O = DigiCert Inc, OU =, CN = DigiCert Global Root CA
verify return:1
depth=1 C = US, O = DigiCert Inc, CN = DigiCert SHA2 Secure Server CA
verify return:1
depth=0 C = US, ST = California, L = San Francisco, O = "Twitch Interactive, Inc.", CN = *
verify return:1
PASS oauth:something
NICK justinfan1 001 justinfan1 :Welcome, GLHF! 002 justinfan1 :Your host is 003 justinfan1 :This server is rather new 004 justinfan1 :- 375 justinfan1 :- 372 justinfan1 :You are in a maze of twisty passages, all alike. 376 justinfan1 :>
JOIN #twitch
:justinfan1! JOIN #twitch 353 justinfan1 = #twitch :justinfan1 366 justinfan1 #twitch :End of /NAMES list
@broadcaster-lang=;emote-only=0;followers-only=-1;r9k=0;room-id=12826;slow=5;subs-only=0 ROOMSTATE #twitch HOSTTARGET #twitch :gamesdonequick -
@msg-id=host_on NOTICE #twitch :Now hosting GamesDoneQuick.

Cool, this works very well. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.