Build JSON of Quotes From Stream Elements
- Download files
- run CMD or Powershell in folder (shift+right-click => 'Open PowerShell')
- type and run
npm i
- Rename the file in the .hidden folder to
settings.json - Edit the information in
settings.json
- Your Channel Name
- OAUTH Token For Your Account (Access Token)
- Get Token Here: https://twitchtokengenerator.com/
- Required Scopes: Helix chat:read & cha:edit
- Stream Elements Bot Username (streamelements or bot username if changed)
- run CMD or Powershell in folder
- type and run
node twitchquotegetter.js
- make sure the !quote command is set to offline or both mode.
- use this command to start the bot:
!allthequotes - if you want to start a specific quote use a number argument:
!allthequotes 100
- The above command will start at quote #100 and run until the end of the list
- the bot will run until it reaches the end of the quote list
- to stop the bot use command:
!stop - once complete or stopped there will be a quoteDatabase.json file in the bot folder with all of the quotes
- Bot is expecting the response for "!quote #" in the format of "@username, #1: test quote 1"
- Bot is expecting a message in the format of "@username, no quote found" for a quote that does not exist.
- Bot will stop after 3 consecutive missing quotes messages. (if SE bot is not mod this could be 10 requests due to repeat messages)
- The delay is set to 9 seconds between quote requests. 100 quotes will take 15 minutes to complete
- Going quicker could result in quotes being skipped if there is a slow response from Stream Elements
- It is recommended to get the quotes in batches of 50 or 100 using the starting point and stop commands to prevent data loss and waste of time.
Make sure to save the batch data in a new file before restarting as the bot will override all information in the quoteDatabase.json file!!