英文:
How to subscribe to liveChatMessage events in real time
问题
我正在尝试编写一个聊天机器人,将我的直播聊天中的消息转发到我正在玩的游戏中,以便在直播时读取并回应我的观众。然而,看起来我的机器人遇到了配额超限的错误。
我找不到一种订阅消息事件的方法,所以为了测试,我每秒轮询一次liveChatMessages资源,但这很快就使我超过了每日的配额限制。
显然,对我的机器人来说,及时处理消息非常重要,否则我将无法与观众进行适当的互动,但我认为我可能只是在API文档中忽略了某个细节。在不在几小时内超过我的配额的情况下,处理直播聊天中的消息的预期/建议方法是什么?
英文:
I'm trying to write a chat bot to forward messages from my live chat into the game I'm playing so I can read them and respond to my audience when I stream, however, it looks like my bot is running into quota exceeded errors.
I could not find a way to subscribe to a message event, so for testing I polled the liveChatMessages resource once a second, which however quickly pushed my over my daily quota.
Obviously it's important for my bot to process messages in near real-time, otherwise I won't be able to properly interact with my audience, but I assume I've simply glossed over a detail in the API documentation. What is the expected / suggested way of processing chat messages from my live chat in real time without exceeding my quota within a couple of hours?
答案1
得分: 1
我同意,这个API在当前的配额限制下对于与聊天集成是无用的,因为我正在尝试做同样的事情。已经请求增加配额,猜猜我会得到什么回应。
英文:
I agree, this API is useless for chat integration with current quota limits, as I am trying to do the same thing. Requested an increase, guess I'll see what comes back.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论