mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-09 18:39:21 +02:00
grand commit que tutur attend ( marche pas le raidmode en dev)
sinon il y a pleins de truc comme les anti raid , des coorectif ect
This commit is contained in:
+39
-1
@@ -63,6 +63,45 @@ module.exports = {
|
||||
} else {
|
||||
}
|
||||
});
|
||||
db.run(`CREATE TABLE IF NOT EXISTS status (
|
||||
botId TEXT PRIMARY KEY,
|
||||
type TEXT NOT NULL,
|
||||
status TEXT NOT NULL
|
||||
);`, (err) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
} else {
|
||||
}
|
||||
});
|
||||
db.run(`CREATE TABLE IF NOT EXISTS master (
|
||||
id TEXT PRIMARY KEY,
|
||||
value TEXT
|
||||
);`, (err) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
}
|
||||
|
||||
});
|
||||
db.run(`CREATE TABLE IF NOT EXISTS antiraid (
|
||||
guild TEXT PRIMARY KEY,
|
||||
value TEXT
|
||||
);`, (err) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
}
|
||||
|
||||
});
|
||||
db.run(`CREATE TABLE IF NOT EXISTS invitations (
|
||||
guild_id TEXT NOT NULL,
|
||||
member_id TEXT NOT NULL,
|
||||
invite_count INTEGER NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (guild_id, member_id)
|
||||
);;`, (err) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
db.get('SELECT value FROM gestion WHERE id = ?', [client.user.id], (err, row) => {
|
||||
@@ -96,7 +135,6 @@ module.exports = {
|
||||
console.log(`Le bot ${client.user.tag} est en ligne
|
||||
lien d'invite > https://discord.com/oauth2/authorize?client_id=${client.user.id}&scope=bot&permissions=8`);
|
||||
|
||||
|
||||
//AntiCrash
|
||||
process.on('unhandledRejection', (error) => {
|
||||
console.log(' [antiCrash] :: Unhandled Rejection/Catch');
|
||||
|
||||
Reference in New Issue
Block a user