Add helper function for bot settings
and fix registration check always returning true
This commit is contained in:
17
seeders/20220819111700-core-bot-config.js
Normal file
17
seeders/20220819111700-core-bot-config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up (queryInterface, Sequelize) {
|
||||
await queryInterface.bulkInsert('Bots', [{
|
||||
id: 1,
|
||||
maintenance: 0,
|
||||
adminIDs: '["222457277708369928"]',
|
||||
pullTimeout: 300000,
|
||||
dropTimeout: 900000
|
||||
}]);
|
||||
},
|
||||
|
||||
async down (queryInterface, Sequelize) {
|
||||
await queryInterface.bulkDelete('Bots', null, {});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user