mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 08:13:09 +02:00
Improve JSDoc
This commit is contained in:
parent
8a15f34342
commit
f40fabfbf3
19
src/index.js
19
src/index.js
@ -102,6 +102,8 @@ const {
|
|||||||
Client,
|
Client,
|
||||||
Intents
|
Intents
|
||||||
} = require('discord.js');
|
} = require('discord.js');
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
|
const FastifyLogger = require('leekslazylogger-fastify');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Discord client
|
* The Discord client
|
||||||
@ -126,10 +128,16 @@ class Bot extends Client {
|
|||||||
/** The global bot configuration */
|
/** The global bot configuration */
|
||||||
this.config = require('../user/config');
|
this.config = require('../user/config');
|
||||||
|
|
||||||
/** A [leekslazylogger](https://logger.eartharoid.me) instance */
|
/**
|
||||||
|
* A [leekslazylogger](https://logger.eartharoid.me) instance
|
||||||
|
* @type {FastifyLogger}
|
||||||
|
*/
|
||||||
this.log = log;
|
this.log = log;
|
||||||
|
|
||||||
/** A [Cryptr](https://www.npmjs.com/package/cryptr) instance */
|
/**
|
||||||
|
* A [Cryptr](https://www.npmjs.com/package/cryptr) instance
|
||||||
|
* @type {Cryptr}
|
||||||
|
*/
|
||||||
this.cryptr = new Cryptr(process.env.DB_ENCRYPTION_KEY);
|
this.cryptr = new Cryptr(process.env.DB_ENCRYPTION_KEY);
|
||||||
|
|
||||||
const locales = {};
|
const locales = {};
|
||||||
@ -143,7 +151,10 @@ class Bot extends Client {
|
|||||||
locales[name] = JSON.parse(data);
|
locales[name] = JSON.parse(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
/** An [@eartharoid/i18n](https://github.com/eartharoid/i18n) instance */
|
/**
|
||||||
|
* An [@eartharoid/i18n](https://github.com/eartharoid/i18n) instance
|
||||||
|
* @type {I18n}
|
||||||
|
*/
|
||||||
this.i18n = new I18n('en-GB', locales);
|
this.i18n = new I18n('en-GB', locales);
|
||||||
|
|
||||||
/** A sequelize instance */
|
/** A sequelize instance */
|
||||||
@ -154,7 +165,7 @@ class Bot extends Client {
|
|||||||
require('./updater')(this); // check for updates
|
require('./updater')(this); // check for updates
|
||||||
|
|
||||||
const listeners = new ListenerLoader(this);
|
const listeners = new ListenerLoader(this);
|
||||||
listeners.load(); // load internal listeners
|
listeners.load(); // load listeners
|
||||||
|
|
||||||
/** The ticket manager */
|
/** The ticket manager */
|
||||||
this.tickets = new TicketManager(this);
|
this.tickets = new TicketManager(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user