Trouble finding all mods of a chat

Hey guys, I am having trouble doing the ‘/mods’ command with pIRCbot, I have looked at both pIRCbot javadocs and this https://help.twitch.tv/customer/portal/articles/1302780-twitch-irc, but I can’t seem to find how I can get a list of mods. Thanks!

Requesting /mods:

Pircbot.sendMessage("#channelname", ".mods");

Response will be received as a NOTICE so you will need to override onNotice if you are not already doing so.

(Note: Removing / (slash) with . (period) in command is recommended practice when using Twitch IRC but either should still work)

Hmm, I thought that I had to send “.mods”, but I didn’t know I had to override onNotice. But, I have done both and debugged it, it never reaches onNotice, thoughts?

Also make sure you are requesting the twitch.tv/commands capability to enable notice responses. This should be sent once after you’ve connected to the server.

Pircbot.sendRawLine("CAP REQ :twitch.tv/commands");
1 Like

Awesome thanks ill try that when I get a chance!

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