Open-Source Glimesh Chat Bot
I recommend using this package with your Glimesh Chat Bot.
Connect to a specific Glimesh Streamer Channel.
Features:
- Refreshes Token automatically.
- Chat Bot
Usage
This requires you to setup OAuth to use it correctly. I recommend you to go here to learn how to setup OAuth.
Check Server.js, everything inside is documented.
First Time Usage
I recommend Postman desktop application. After you get your code and use it to get your first time Auth Code, you should get a response similar to the following.
{"access_token":"abcde12345","refresh_token":"abcde12345","scope":"public email chat","created_at":"2021-01-01T01:01:01","expires_in":21600,"token_type":"bearer"}
Paste the corresponding values into the Glimesh.json.
Install
Run this command to install packages.
npm install
Run this command to start the bot.
nodemon