如何实时订阅liveChatMessage事件

huangapple go评论100阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年4月4日 05:11:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/75923801.html
  • youtube-livestreaming-api
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定