Add Message Filter to Channel Chat Message Conditions
Most bot functionality is behind trigger characters, with "!" being the most popular. For such bots, receiving a webhook message for every message in chat is an unnecessary number of requests. I suggest a simple prefix comparison or regular-expression based "message_filter" condition to allow limiting channel.chat.message subscriptions, reducing network overhead and load at the cost of a single comparison.
4
votes
-
NifflasGames
commented
I need this too, and RealityRipple's suggestion is a good way to implement it!
It'd both save bandwidth, and avoid unnecessary garbage collections on my game's side, as it's very hard to parse json in C# without heap allocations.