I have a basic extension that contains a button. When a user clicks on the button, I want “Hello word” to be written in the chat, as if it were the user who had written in the chat, automatically and quickly.
Should I use IRC? But going through a bot to do this seems complicated and useless.
Is there a POST method in the api to send a message as a user? (I did not find)
I have a game, in which viewers can write in chat “1”, “2” or “3”. My game receives messages and performs actions in functions (for example: viewer XXX throws a bomb).
I would like to create an extension so that the viewer no longer needs to write in the chat but just click on a button to perform these actions.
Here is the flow I thought of:
click on the button 1 => automatically writes the message “1” in the chat => my game receives the message “1” => it does the action