From d8c06ca14bb67c8c9de943a0dbb46fec3b315e71 Mon Sep 17 00:00:00 2001 From: Sarimoko Date: Fri, 11 Feb 2022 06:03:06 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 808f9a2..d891288 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,54 @@ # TMI_js -TMI js is a Node & JavaScript API proved by Twitch. \ No newline at end of file +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 +```bash +sudo git clone git@git.sarimoko.com:Heyo/TMI_js.git --stable +``` +With MySQL +```bash +sudo git clone git@git.sarimoko.com:Heyo/TMI_js.git --mysql +``` + +### Initialize/Prerequisites TMI_js +```bash +sudo npm install tmi.js@1.5.0 +sudo npm install dotenv +sudo node TMI_js.js +``` +### Auto-Start on Boot +```bash +# 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 +``` \ No newline at end of file