Lately, I’ve been working on a chat bot for a streamer. Since it has a lot of functions the spam becomes a bit too much. With this, I decided to make the bot direct responses to a user be sent by whispers. However, I haven’t been able to send them. I tried everything, from requesting all the CAPs to connecting to group servers’ IPs.
Sometimes I get the “Unrecognized command /w” some other times I don’t. I tried with both “/w” and “.w” and none of them worked.
Was hoping some of you could enlighten me.
Thanks in advance!
Thanks for your reply.
The only bans that this bot got were due to an endless While loop sending messages to channel, not by whispering, and that was when it was coded with mSL (~2 months ago).
I can log in to the bot account and manually send whispers, though.
PASS oauth:twitch_oauth_token NICK twitch_username
and received this?
:tmi.twitch.tv 001 twitch_username :Welcome, GLHF!
:tmi.twitch.tv 002 twitch_username :Your host is tmi.twitch.tv
:tmi.twitch.tv 003 twitch_username :This server is rather new
:tmi.twitch.tv 004 twitch_username :-
:tmi.twitch.tv 375 twitch_username :-
:tmi.twitch.tv 372 twitch_username :You are in a maze of twisty passages, all alike.
:tmi.twitch.tv 376 twitch_username :>
are you able to connect to a regular channel to send and receive regular PRIVMSG?
you need to send CAP REQ :twitch.tv/commands to be able to recieve them, but I don’t think you need it for sending. Other than that I personally am coming up empty. The little code you posted seems to produce the correct format.