Update 'node/chatbot.js'
This commit is contained in:
parent
34054127b4
commit
ec017737dc
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue