Revert some changes

This commit is contained in:
Moe Poi ~ 2021-11-15 17:35:31 +07:00
parent c15a6f3ae6
commit 5003dcd8b2
3 changed files with 8 additions and 3 deletions

2
.gitignore vendored
View file

@ -37,4 +37,4 @@ Temporary Items
.apdisk
# Config
conf.js
config.js

View file

@ -1,5 +1,10 @@
var mysql = require('mysql2');
const config = require('../conf');
try {
const config = require('../config');
} catch (e) {
console.log('No config file found');
}
function connect() {
const connection = mysql.createConnection(config.db);