TMI js is a Node & JavaScript API proved by Twitch.
Go to file
Sarimoko bea8da4120 Update 'README.md' 2022-02-13 03:24:49 +00:00
node Update 'node/chatbot.js' 2022-02-13 03:22:16 +00:00
.gitignore Initial commit 2022-02-10 07:27:48 +00:00
LICENSE Initial commit 2022-02-10 07:27:48 +00:00
README.md Update 'README.md' 2022-02-13 03:24:49 +00:00

README.md

TMI_js

Heyo / TMI_js is a Hello World Chatbot

Why?

A starting point for all the default hello world stuff. TMI_js Chatbot is built in Node.js using Twitch's Official TMI.js API!

What?

  • dot ENV to keep API Keys out of code ever uploaded/downloaded.
  • TMI.js obv connects
  • Mod & Broadcaster Role Init
  • !COMMAND => command parse
  • Hello World Commands for Mods & Everyone

TODO

  • Add Subs-Only Commands
  • MySQL Branch | Logs & Input

How to install

Git

Basic

sudo git clone git@git.sarimoko.com:Heyo/TMI_js.git --stable

With MySQL

sudo git clone git@git.sarimoko.com:Heyo/TMI_js.git --mysql

Initialize/Prerequisites TMI_js

sudo npm install tmi.js@1.5.0
sudo npm install dotenv
sudo npm install request-promise
sudo node TMI_js.js

Auto-Start on Boot

# Installing pm2    
npm install -g pm2 # may require sudo

# Starting the app
pm2 start ~/Projects/red.js
pm2 save    # saves the running processes
            # if not saved, pm2 will forget
            # the running apps on next boot


# check status 
pm2 list

# IMPORTANT: If you want pm2 to start on system boot
pm2 startup 
# starts pm2 on computer boot