final fix for possibly wrong .env values, structural changes to bot, bot supports sharding from now onwards

This commit is contained in:
2022-12-25 21:13:02 +01:00
parent f002da6439
commit bff96545f8
5 changed files with 75 additions and 25 deletions

View File

@ -3,11 +3,11 @@ const sql = require('mysql');
const Database = async (db) => {
const server = sql.createConnection({
host : db.HOST,
user : db.USERNAME,
password : db.PASSWORD
host : db.DB_HOST,
user : db.DB_USERNAME,
password : db.DB_PASSWORD
,
database : db.DATABASE
database : db.DB_NAME
});
server.connect(function(err) {