mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Remove Stuff
This commit is contained in:
@@ -8,6 +8,10 @@ class XiaoCommand extends Command {
|
||||
this.nsfw = info.nsfw;
|
||||
this.clientPermissions = info.clientPermissions;
|
||||
this.userPermissions = info.userPermissions;
|
||||
this.throttling = {
|
||||
usages: 1,
|
||||
duration: 2
|
||||
};
|
||||
}
|
||||
|
||||
hasPermission(msg) {
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
const { Client } = require('discord.js-commando');
|
||||
const Database = require('./PostgreSQL');
|
||||
|
||||
class CommandoClient extends Client {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
|
||||
this.database = Database.db;
|
||||
Database.start();
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CommandoClient;
|
||||
@@ -1,23 +0,0 @@
|
||||
const Sequelize = require('sequelize');
|
||||
const { DATABASE_URL } = process.env;
|
||||
const database = new Sequelize(DATABASE_URL, { logging: false });
|
||||
|
||||
class Database {
|
||||
static get db() {
|
||||
return database;
|
||||
}
|
||||
|
||||
static start() {
|
||||
database.authenticate()
|
||||
.then(() => console.log('[DATABASE] Connection has been established successfully.'))
|
||||
.then(() => console.log('[DATABASE] Synchronizing...'))
|
||||
.then(() => database.sync()
|
||||
.then(() => console.log('[DATABASE] Synchronizing complete!'))
|
||||
.catch((err) => console.error(`[DATABASE] Error synchronizing: ${err}`))
|
||||
)
|
||||
.then(() => console.log('[DATABASE] Ready!'))
|
||||
.catch((err) => console.error(`[DATABASE] Unable to connect: ${err}`));
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Database;
|
||||
Reference in New Issue
Block a user