clean up: using unprotected sqlite database
This commit is contained in:
parent
ae8562c536
commit
7026ed56a8
@ -1,6 +1,3 @@
|
|||||||
TOKEN=
|
TOKEN=
|
||||||
CLIENT=
|
CLIENT=
|
||||||
DB_PWD=
|
|
||||||
DB_NAME=
|
DB_NAME=
|
||||||
DB_HOST=
|
|
||||||
DB_USER=
|
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ node_modules
|
|||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
commands/examples
|
commands/examples
|
||||||
|
*.sqlite
|
||||||
|
@ -5,12 +5,11 @@ import { Sequelize } from 'sequelize';
|
|||||||
import { config } from 'dotenv';
|
import { config } from 'dotenv';
|
||||||
config();
|
config();
|
||||||
|
|
||||||
const { DB_NAME, DB_USER, DB_PWD, DB_HOST } = process.env;
|
const { DB_NAME } = process.env;
|
||||||
const sequelize = new Sequelize(DB_NAME, DB_USER, DB_PWD, {
|
const sequelize = new Sequelize({
|
||||||
storage: `${DB_NAME}.sqlite`,
|
storage: `${DB_NAME}.sqlite`,
|
||||||
dialect: 'sqlite',
|
dialect: 'sqlite',
|
||||||
logging: false,
|
logging: false,
|
||||||
host: DB_HOST,
|
|
||||||
});
|
});
|
||||||
const RoleEmojiPair = defineRoleEmojiPair(sequelize);
|
const RoleEmojiPair = defineRoleEmojiPair(sequelize);
|
||||||
const VoiceChannel = defineVoiceChannel(sequelize);
|
const VoiceChannel = defineVoiceChannel(sequelize);
|
||||||
|
Loading…
Reference in New Issue
Block a user