Hello,
Ive browsed quite a bit to find out how to receive whispers via my bot to no avail. Either the information is outdated, or since im self taught I get lost reading Klingon.
I have a currency system that I run in several channels and it works great. Some of the streamers however, now that they have grown quite large, are having me reduce what they consider spam, typically in initializing a command or receiving the response.
I have successfully been able to whisper a user their currency via PRIVMSG which is easy and awesome now that the chat servers have been moved, but I have not been able to figure out how to receive a whisper.
My goal is that a user can whisper the bot, and the bot reply via whisper the currency.
Currently i have the user enter in standard chat a command, and then the bot whispers, but with 250+ users, once the first person initiates the currency command, its followed by 10+ other users initiating the same command, which has become annoying for the streamer.
Any help would be much appreciated, and keep in mind, im not fluent in Klingon!
I have attempted using
/CAP REQ :twitch.tv/tags
/CAP REQ :twitch.tv/commands
to no avail.
If i was receiving that i could then determine how to handle it, but i get nothing whatsoever. I am not connected to the group chat because it seems to me it was moved to the regular server, as i can SEND whispers from it, is the RECIEVE on a different server by chance? Possibly there is a setting within mIRC that is blocking the whisper from showing in the status window? Is it even supposed to come through the status window, or possibly directly from #jtv like hosts do? No clue what im doing wrong here.
Itās better to post your relevant listening code, as more often than not thereās somebody here who has written a bot in the language youāre using and can help troubleshoot the exact issue location. There was a mirc script floating around to parse twitch chat messages + whispers a while ago, not sure where it went, but itās probably available via search.
listening code? i have none, because i have not received anything i have no clue on how to handle the incoming message, i planned to explore that once i receive a whisper.
language = msl
output code =
/raw PRIVMSG #jtv :/w XuserX XmessageX
produces in the status window
[05/26 16:05] -> Server: PRIVMSG #jtv :/w almightysoul this is a test
recieved via twitch website whisper to almightysoul āthis is a testā
i assumed it would be apparent that that is what im doing, sending is working fine, receiving is what im trying to accomplish
/raw PRIVMSG #jtv :/w almightysoul this is a test
produces in the status window
[05/26 16:05] -> Server: PRIVMSG #jtv :/w almightysoul this is a test
recieved via twitch website whisper to almightysoul āthis is a testā
this particular discussion is how to capture a message that is sent (received) by the console. I am not getting anything in the console. This is what i am trying to accomplish. If i can receive the code specified
thank you for asking, no i do not, was an interesting question, as i had set up the bot account and never checked the default, but no, i have nothing blocked. I spoke with a dev friend of mine, whom i wish had more time for personal ventures and he referenced a āraw loggerā. could this be what was previously mentioned as ālistening codeā? would this potentially make a difference? all the references ive seen mention a whisper coming right through to the status window, with no mention of a logger.
I havenāt done anything with whispers yet myself, as my bot hasnāt needed it, but I did some research on this a few months ago, and at the time, I believe there was a different cluster of servers for whispers than from normal chat (I think the āgroupā chat servers?).
But I think this all changed since the switch to AWS. Can anyone else on this thread confirm/deny?
My suggestion would be to use the recently implemented ON PARSELINE event to work with the raw data. You can type ā/help on parselineā into mIRC to get more information on it. Good luck!
@Almightysoul Please explain how you were able to accomplish listening to whispers. I am able to send them but have no idea how to recieve them even what is said above is a little confusing to me. I am trying to recieve whispers using PircBot.
Sorry, i failed to report once my problem was solved. Thanks to this forum, heres the process.
i have the following cap requests enabled
/CAP REQ :twitch.tv/membership
/CAP REQ :twitch.tv/tags
/CAP REQ :twitch.tv/commands
then, this command opens a new debug window that the whispers will come through on.
/debug @raw
i have yet to try to analyze the information that comes through in this window.