Update 'node/chatbot.js'

This commit is contained in:
Sarimoko 2022-02-11 05:51:02 +00:00
parent 34054127b4
commit ec017737dc
1 changed files with 0 additions and 14 deletions

View File

@ -6,20 +6,6 @@
// -------------------------------- // --------------------------------
require('dotenv').config(); require('dotenv').config();
const tmi = require('tmi.js'); const tmi = require('tmi.js');
// MySQL Setup | Optional - View README.md for MySQL setup!
// --------------------------------
var mysql = require('mysql');
var con = mysql.createConnection({
host: process.env.SQL_IP, // Add in DOTenv
user: process.env.SQL_USER, // Add in DOTenv
password: process.env.SQL_PASS // Add in DOTenv
});
// MySQL Error Check
// --------------------------------
con.connect(function(err) {
if (err) throw err;
console.log("MySQL | Connected!");
});
// TMI Config // TMI Config
// -------------------------------- // --------------------------------
console.log(process.env.API_HOST); console.log(process.env.API_HOST);