Twitch/YouTube Chat listener...

Discussion in 'Plugin Development' started by SamLearn, Aug 7, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    SamLearn

    I have this idea for streamer/youtuber's chat being able to execute commands in Minecraft.
    Or custom commands that you could make in the plugin.
    (NOT the in-game chat, but the actual Streamer's Chat)

    The question is, how do I make a plugin that listens for the streamer's chat? What would I have to download or look for? (I have no idea, any help will be super appreciated)

    So if you can somewhat point me in the right direction, thank you very very much.
    If not, then thank you for stopping by and spend your time on reading this!

    I hope you have/will have a nice day! :3 <3
     
    Last edited: Aug 9, 2022
  2. Offline

    KarimAKL

    If I understand you correctly, you want to listen for the AsyncPlayerChatEvent. You can get the player and check if it is a streamer.

    If you're new to plugin development and don't know how to listen for events, I advise you to read this.
     
  3. Offline

    SamLearn


    No, not the in game chat. The actual streamer's chat.
    Sorry for the misunderstanding...
     
  4. Offline

    CraftCreeper6

    @SamLearn
    Twitch has an API for this. It's going to be a challenge to get it working since Twitch uses IRC and not HTTP.
    Here's a link to the relevant messages page

    Although, currently, v5 of the API doesn't include a reference to getting messages from the chat. Though it must be possible since bots like Nightbot do it all the time.
     
Thread Status:
Not open for further replies.

Share This Page