mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-03 23:36:35 +02:00
add lock , unlock , hide , unhide and version all , add sync commande
This commit is contained in:
@@ -2,18 +2,12 @@ require('dotenv').config();
|
||||
const { Client, IntentsBitField, Collection } = require("discord.js");
|
||||
const loadCommands = require("./loaders/loadCommands");
|
||||
const loadEvents = require("./loaders/loadEvents");
|
||||
const db = require('quick.db');
|
||||
const GestionDb = new db.table('gestion')
|
||||
const client = new Client({intents: new IntentsBitField(3276799)});
|
||||
|
||||
client.events = new Collection();
|
||||
client.commands = new Collection();
|
||||
client.snipes = new Map();
|
||||
client.once('ready', () => {
|
||||
const permissions = require('./permissions.json');
|
||||
GestionDb.set(`${client.user.id}.permissions`, permissions);
|
||||
console.log(`${client.user.username} a bien charge les permissions`);
|
||||
});
|
||||
|
||||
|
||||
|
||||
(async () => {
|
||||
loadCommands(client);
|
||||
|
||||
Reference in New Issue
Block a user