mirror of
https://github.com/Art-Portal/April.git
synced 2024-12-27 20:14:19 +01:00
Fixed issue #4
This commit is contained in:
parent
7d25298377
commit
5347ec4cb1
@ -7,5 +7,9 @@
|
|||||||
"rolesChannelId" : "Roles Channel ID",
|
"rolesChannelId" : "Roles Channel ID",
|
||||||
"devId" : "Developer's ID",
|
"devId" : "Developer's ID",
|
||||||
"sanctionChannelId": "Saanctions Channel'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 fs = require('fs');
|
||||||
const Sequelize = require('sequelize');
|
const Sequelize = require('sequelize');
|
||||||
const { Client, GatewayIntentBits } = require("discord.js");
|
const { Client, GatewayIntentBits } = require("discord.js");
|
||||||
const { token } = require('./config.json');
|
const { token, sequelizeCredentials } = require('./config.json');
|
||||||
const { deploy_commands } = require('./functions.js');
|
const { deploy_commands } = require('./functions.js');
|
||||||
|
|
||||||
const client = new Client({
|
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',
|
host: 'localhost',
|
||||||
dialect: 'sqlite',
|
dialect: 'sqlite',
|
||||||
logging: false,
|
logging: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user