mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 17:51:27 +03:00
start making things
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
const { FrameworkClient } = require('@eartharoid/dbf');
|
||||
const { GatewayIntentBits } = require('discord.js');
|
||||
const {
|
||||
GatewayIntentBits, Partials,
|
||||
} = require('discord.js');
|
||||
const { PrismaClient } = require('@prisma/client');
|
||||
const Keyv = require('keyv');
|
||||
const I18n = require('@eartharoid/i18n');
|
||||
const fs = require('fs');
|
||||
const { join } = require('path');
|
||||
const YAML = require('yaml');
|
||||
const TicketManager = require('./lib/tickets/manager');
|
||||
const encryptionMiddleware = require('./lib/middleware/prisma-encryption');
|
||||
const sqliteMiddleware = require('./lib/middleware/prisma-sqlite');
|
||||
|
||||
@@ -13,10 +16,19 @@ module.exports = class Client extends FrameworkClient {
|
||||
constructor(config, log) {
|
||||
super({
|
||||
intents: [
|
||||
GatewayIntentBits.DirectMessages,
|
||||
GatewayIntentBits.DirectMessageReactions,
|
||||
GatewayIntentBits.DirectMessageTyping,
|
||||
GatewayIntentBits.MessageContent,
|
||||
GatewayIntentBits.Guilds,
|
||||
GatewayIntentBits.GuildMembers,
|
||||
GatewayIntentBits.GuildMessages,
|
||||
],
|
||||
partials: [
|
||||
Partials.Message,
|
||||
Partials.Channel,
|
||||
Partials.Reaction,
|
||||
],
|
||||
});
|
||||
|
||||
const locales = {};
|
||||
@@ -30,6 +42,8 @@ module.exports = class Client extends FrameworkClient {
|
||||
|
||||
/** @type {I18n} */
|
||||
this.i18n = new I18n('en-GB', locales);
|
||||
/** @type {TicketManager} */
|
||||
this.tickets = new TicketManager(this);
|
||||
this.config = config;
|
||||
this.log = log;
|
||||
this.supers = (process.env.SUPER ?? '').split(',');
|
||||
|
Reference in New Issue
Block a user