Fixed issue #4

This commit is contained in:
ninjdai1 2022-11-11 22:19:06 +01:00
parent 7d25298377
commit 5347ec4cb1
2 changed files with 7 additions and 3 deletions

View File

@ -7,5 +7,9 @@
"rolesChannelId" : "Roles Channel ID",
"devId" : "Developer's ID",
"sanctionChannelId": "Saanctions Channel's ID",
"progressBar": "Emojis/Text to show when loading something"
"progressBar": "Emojis/Text to show when loading something",
"sequelizeCredentials": {
"username": "user",
"password": "password"
}
}

View File

@ -1,7 +1,7 @@
const fs = require('fs');
const Sequelize = require('sequelize');
const { Client, GatewayIntentBits } = require("discord.js");
const { token } = require('./config.json');
const { token, sequelizeCredentials } = require('./config.json');
const { deploy_commands } = require('./functions.js');
const client = new Client({
@ -13,7 +13,7 @@ const client = new Client({
]
});
const sequelize = new Sequelize('database', 'user', 'password', {
const sequelize = new Sequelize('database', sequelizeCredentials.username, sequelizeCredentials.password, {
host: 'localhost',
dialect: 'sqlite',
logging: false,