Or you don’t meet the requirements to post in all channels. Most channels employ a follower mode, requiring the bot to follow the channel (which is can’t automatically as there is no create follows endpoint).
Or for the bot to hold a rank, such as VIP or Moderator in the channel.
A normal user cannot repeat the exact same message within a given time span.
Low all response messages from the server.
If you do not have the CAPS and TAGS capabilities enabled you might be lacking critical response messaegs and information to help diagnose the issue.
I do follow the channel on connection, so that should not be the problem. It is not even working with my own account anymore. I have also tried sending different messages to make sure that its not because it is repeating the same message.
Is there a way to tell if the account has violated something globally and gotten blacklisted?
Given theres no API for that, that doesn’t seem likely unless you are logged into the account and doing it manually. That API endpoint was removed and no longer available.
This suggests you might have been globalled from exceeding the rate limits.
Globals usually prevent you connected to chat at all and last time I checked last around 30 minutes.
There is no blacklisting that I’m aware of that operates how you descirbe
And if there was an issue then the ClientID would be blocked from using any API at all.
I am able to connect to the chat and read the messages as they come in, however writing messages is not working.
Is there documentation handy for what would cause being globalled? The chat bot does not post very frequently. However, it does post from just a small series of messages, so across all channels the messages are not very unique. Would that cause an issue?
Thanks for all the info. I do have tags and commands enabled, I will look for the USERNOTICE/NOTICE messages but haven’t yet noticed any of them thus far.
On the chatbot limits, is this saying that I can only send 20 messages per 30 seconds to ALL channels?
“If 10 users are running the bot on a single bot account, the rate limit applies across all 10 users (meaning that the 10 users combined can send a total of 20 messages). If each user is using a different bot account, each bot account has its own rate limit (meaning that each user can send 20 messages).”
Generaly speaking CAP’s should be sent before PASS/NICK
And you may want to wati for the ACK’s of the CAP’s before running joins.
i wonder if you are being dropped from ban evasion or something weird along those lines. Which wouldn’t raise something visible but this is clutchy at straws
Ok - I will try that out. This is really the first time I am digging into what is going on here because this is just a library I picked up. I do appreciate all the help and the quick responses here, will give some of that a try.
For what is worth, I tried all of this with another account/token and it worked exactly as expected. So perhaps something is getting rate limited? Although like I said, it does not send messages very frequently, perhaps once per channel.
The following table shows the rate limits for a normal account.
20 authentication attempts per 10 seconds per user.
20 join attempts per 10 seconds per user.
I have reordered the writes and am still running into the issue with the user. If I use another user however, it does work as expected, so I assume it has been limited/banned for some reason, but as it does not give me any information, I am unable to tell why.
Is there no way for someone internal to Twitch to be able to give me that info so that I can rectify the situation? I am still able to login as that account, so it has not been completely shut down, and it will let me post if I am a mod in the channel.
As before, when joining and attempting to post a channel when not a mod:
WRITE: CAP REQ :twitch.tv/tags
WRITE: CAP REQ :twitch.tv/commands
WRITE: CAP REQ :twitch.tv/membership
WRITE: PASS oauth:XXXXXXXXXXXXXXXXXXXX
WRITE: NICK RiffTraxTheGameBot
WRITE: USER RiffTraxTheGameBot 8 * :RiffTraxTheGameBot
READ: :tmi.twitch.tv CAP * ACK :twitch.tv/tags
READ: :tmi.twitch.tv CAP * ACK :twitch.tv/commands
READ: :tmi.twitch.tv CAP * ACK :twitch.tv/membership
READ: :tmi.twitch.tv 001 rifftraxthegamebot :Welcome, GLHF!
WRITE: JOIN #markzorn
READ: :tmi.twitch.tv 002 rifftraxthegamebot :Your host is tmi.twitch.tv
READ: :tmi.twitch.tv 003 rifftraxthegamebot :This server is rather new
READ: :tmi.twitch.tv 004 rifftraxthegamebot :-
READ: :tmi.twitch.tv 375 rifftraxthegamebot :-
READ: :tmi.twitch.tv 372 rifftraxthegamebot :You are in a maze of twisty passages, all alike.
READ: :tmi.twitch.tv 376 rifftraxthegamebot :>
READ: @badge-info=;badges=;color=;display-name=rifftraxthegamebot;emote-sets=0;user-id=772776071;user-type= :tmi.twitch.tv GLOBALUSERSTATE
READ: :rifftraxthegamebot!rifftraxthegamebot@rifftraxthegamebot.tmi.twitch.tv JOIN #markzorn
READ: :rifftraxthegamebot.tmi.twitch.tv 353 rifftraxthegamebot = #markzorn :rifftraxthegamebot
WRITE: PRIVMSG #markzorn :/me Welcome - make it unique 4384681e-6206-4cb0-9b44-68026199d528