This example covers how to send an Extension Chat message with an Emote!
- Open
config_sample.jsonin a text editor - Visit Twitch Dev Console
- Visit Extensions
- Manage your Extension, or create one if you don't have any
- Top right select "Extension Settings"
- Copy the "Client ID" from the top into the
""ofclient_id - Down the bottom under
Extension Client Configurationhit theshowbutton - Copy the contents of the field into the
""ofextension_secret - Set the
""ofownerto the TwitchID of the user that owns the extension, usually this is you but it might not be - Set the
""ofchannel_idto the TwitchID of the channel that has the extension installed and active in a slot - Set the
""ofextension_versionto the version of the extension you wish to test. If does not have to be a released version. Just active on the target channel. - Save your modified file as
config.json
If is important that the owner and channel_id in the config.json is wrapped in ", as channelID's and userID's for extensions need to be cast as strings, not numerics.
Make sure the Extension is ACTIVE in ANY slot in order to send Chat Messages.
In a console/terminal, run these commands:
npm installnode send_chat.js
