diff --git a/config.example.json b/config.example.json index 0c8d099..947be66 100644 --- a/config.example.json +++ b/config.example.json @@ -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" + } } \ No newline at end of file diff --git a/index.js b/index.js index 8d2c9ab..eeb2db4 100644 --- a/index.js +++ b/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,