mirror of
https://github.com/Art-Portal/April.git
synced 2024-12-26 03:14:17 +01:00
Fixed issue #4
This commit is contained in:
parent
7d25298377
commit
5347ec4cb1
@ -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"
|
||||
}
|
||||
}
|
4
index.js
4
index.js
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user