# Avoiding repeated chat bans during development

**URL:** <https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668>\
**Category:** Chat and IRC\
**Created:** [June 9, 2017, 11:05pm UTC](https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668 "2017-06-09T23:05:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShinyMark](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@ShinyMark](https://discuss.dev.twitch.com/u/ShinyMark)\
**Post date:** [June 9, 2017, 11:05pm UTC](https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668/1 "2017-06-09T23:05:41Z")

</div>

Hi,

I run a game dev team that is developing our first game that integrates with Twitch. It’s run as a channel like other “Twitch Plays” games.

We have a static IP at our office and have received multiple temporary chat bans in the past few weeks. Although there is no reason given when a ban occurs I’m guessing it’s due to spam protection. This is disrupting my development team’s ability to test and iterate on our game. When doing internal playtests we have up to 10 people playing the game from this same IP and also run a bot that allows the players to interact with the game in a variety of ways.

How can we avoid these temporary chat bans? Can we get our IP whitelisted by Twitch to remove or reduce the restrictions?

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![george](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/george/32/120_2.png) [@george](https://discuss.dev.twitch.com/u/george)\
**Post date:** [June 9, 2017, 11:13pm UTC](https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668/2 "2017-06-09T23:13:35Z")

</div>

Make sure the bots are a moderator in any channels where they are posting messages. Whitelisting is available for individual accounts: [Have a chat/whisper bot? Let us know!](https://discuss.dev.twitch.com/t/have-a-chat-whisper-bot-let-us-know/10651)

---

<div class="post-metadata">

**Author:** ![ShinyMark](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@ShinyMark](https://discuss.dev.twitch.com/u/ShinyMark)\
**Post date:** [June 9, 2017, 11:24pm UTC](https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668/3 "2017-06-09T23:24:00Z")

</div>

Thanks. I just filled out the form a few minutes ago so hopefully that will help on the bot side.

However, we’ve also been banned when our bot wasn’t running, so it does seem like there is some sort of general rate limit we’ve exceeded when trying to test our game with solely human users. It seems to be happening at the IP level because when it happens no one can chat. We’re all logged into different Twitch accounts.

---

<div class="post-metadata">

**Author:** ![george](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/george/32/120_2.png) [@george](https://discuss.dev.twitch.com/u/george)\
**Post date:** [June 9, 2017, 11:31pm UTC](https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668/4 "2017-06-09T23:31:02Z")

</div>

What are the symptoms of the ban you are seeing? Disconnecting from chat when sending a message?

That is caused by a chat session exceeding 20 messages sent in a 30 second which will result in a lockout on the IP address.

---

<div class="post-metadata">

**Author:** ![ShinyMark](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@ShinyMark](https://discuss.dev.twitch.com/u/ShinyMark)\
**Post date:** [June 10, 2017, 12:18am UTC](https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668/5 "2017-06-10T00:18:49Z")

</div>

We see the message “Sorry, we were unable to connect to chat. Reconnecting in 2 seconds.” when sending chat messages.

We’re probably hitting the limit you described which is unfortunate because we want to do team-wide playtests internally on the platform. I suppose we could write our own simple chat server that fakes Twitch IRC responses for testing to avoid this but I’d prefer to test on the platform to ensure our integration is working correctly in the real environment.

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [June 10, 2017, 1:59am UTC](https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668/6 "2017-06-10T01:59:17Z")

</div>

The message limit is per connection, although if any single connection breaks that limit the resulting ban is based on IP so will block all users from that IP, regardless of which connection was the one to break the limit. While testing you’ll want to make sure that all users are mods in the channel that you’re testing in, and that none of you go past the limit or it will block all of you.

---

<div class="post-metadata">

**Author:** ![xangold](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/xangold/32/527_2.png) [@xangold](https://discuss.dev.twitch.com/u/xangold)\
**Post date:** [June 12, 2017, 11:11pm UTC](https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668/7 "2017-06-12T23:11:04Z")

</div>

^ What Dist/George mentioned is correct. The block currently lasts 30 minutes on the IP if a connection goes over.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [July 12, 2017, 11:24pm UTC](https://discuss.dev.twitch.com/t/avoiding-repeated-chat-bans-during-development/10668/8 "2017-07-12T23:24:58Z")

</div>

Closed on July 12, 2017, 11:24pm UTC

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