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