Compare commits

..

5 commits

Author SHA1 Message Date
Ethan Lane 40db7cfebc Add paginated view for embeds by search
Some checks failed
Test / build (push) Failing after 8s
2024-08-14 22:26:47 +01:00
Ethan Lane f604fd7d18 Merge branch 'develop' into feature/154-add-fuzzy-search 2024-08-14 18:28:09 +01:00
RenovateBot 8bd5f44524 Update dependency ts-jest to v29.2.4 (#336)
All checks were successful
Deploy To Stage / build (push) Successful in 9s
Deploy To Stage / deploy (push) Successful in 17s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [ts-jest](https://kulshekhar.github.io/ts-jest) ([source](https://github.com/kulshekhar/ts-jest)) | dependencies | minor | [`29.1.5` -> `29.2.4`](https://renovatebot.com/diffs/npm/ts-jest/29.1.5/29.2.4) |

---

### Release Notes

<details>
<summary>kulshekhar/ts-jest (ts-jest)</summary>

### [`v29.2.4`](https://github.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2924-2024-08-01)

[Compare Source](https://github.com/kulshekhar/ts-jest/compare/v29.2.3...v29.2.4)

### [`v29.2.3`](https://github.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2923-2024-07-18)

[Compare Source](https://github.com/kulshekhar/ts-jest/compare/v29.2.2...v29.2.3)

### [`v29.2.2`](https://github.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2922-2024-07-10)

[Compare Source](https://github.com/kulshekhar/ts-jest/compare/v29.2.1...v29.2.2)

### [`v29.2.1`](https://github.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2921-2024-07-10)

[Compare Source](https://github.com/kulshekhar/ts-jest/compare/v29.2.0...v29.2.1)

### [`v29.2.0`](https://github.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2920-2024-07-08)

[Compare Source](https://github.com/kulshekhar/ts-jest/compare/v29.1.5...v29.2.0)

##### Bug Fixes

-   fix: don't show warning message with Node16/NodeNext ([99c4f49](https://github.com/kulshekhar/ts-jest/commit/99c4f49)), closes [#&#8203;4266](https://github.com/kulshekhar/ts-jest/issues/4266)

##### Features

-   feat(cli): allow migrating cjs `presets` to `transform` config ([22fb027](https://github.com/kulshekhar/ts-jest/commit/22fb027))
-   feat(presets): add util functions to create ESM presets ([06f78ed](https://github.com/kulshekhar/ts-jest/commit/06f78ed)), close [#&#8203;4200](https://github.com/kulshekhar/ts-jest/issues/4200)
-   feat(presets): add util functions to create CJS presets ([f9cc3c0](https://github.com/kulshekhar/ts-jest/commit/f9cc3c0)), close [#&#8203;4200](https://github.com/kulshekhar/ts-jest/issues/4200)

##### Code refactoring

-   refactor: replace lodash deps with native js implementation ([40f1708](https://github.com/kulshekhar/ts-jest/commit/40f1708))
-   refactor: use `TsJestTransformerOptions` type everywhere possibly ([7d001be](https://github.com/kulshekhar/ts-jest/commit/7d001be))
-   refactor(cli): use new preset util functions to initialize test config ([c2b56ca](https://github.com/kulshekhar/ts-jest/commit/c2b56ca))
-   refactor(presets): use create preset util functions for cjs presets ([922d6d0](https://github.com/kulshekhar/ts-jest/commit/922d6d0))
-   test: switch `react-app` to use Vite ([827c8ad](https://github.com/kulshekhar/ts-jest/commit/827c8ad))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: #336
Reviewed-by: Vylpes <ethan@vylpes.com>
Co-authored-by: Renovate Bot <renovate@vylpes.com>
Co-committed-by: Renovate Bot <renovate@vylpes.com>
2024-08-12 21:01:21 +01:00
RenovateBot 9302902b17 Update dependency @types/node to v20.14.15 (#335)
All checks were successful
Deploy To Stage / build (push) Successful in 9s
Deploy To Stage / deploy (push) Successful in 16s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | devDependencies | patch | [`20.14.14` -> `20.14.15`](https://renovatebot.com/diffs/npm/@types%2fnode/20.14.14/20.14.15) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: #335
Reviewed-by: Vylpes <ethan@vylpes.com>
Co-authored-by: Renovate Bot <renovate@vylpes.com>
Co-committed-by: Renovate Bot <renovate@vylpes.com>
2024-08-12 20:59:56 +01:00
Ethan Lane 480786a1e9 Remove dependency minimatch (#334)
All checks were successful
Deploy To Stage / build (push) Successful in 10s
Deploy To Stage / deploy (push) Successful in 16s
- Removed the dependency minimatch from the project
- Its not actually used anywhere, I believe it wasn't removed when I was trying out glob packages prior to merging

#312

Reviewed-on: #334
Reviewed-by: VylpesTester <tester@vylpes.com>
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
2024-08-10 16:08:45 +01:00
59 changed files with 282 additions and 245 deletions

View file

@ -1,6 +1,7 @@
{ {
"name": "card-drop", "name": "card-drop",
"version": "0.8.0", "version": "0.8.0",
"type": "module",
"main": "./dist/bot.js", "main": "./dist/bot.js",
"typings": "./dist", "typings": "./dist",
"scripts": { "scripts": {
@ -42,7 +43,6 @@
"jest": "^29.0.0", "jest": "^29.0.0",
"jest-mock-extended": "^3.0.0", "jest-mock-extended": "^3.0.0",
"jimp": "^0.22.12", "jimp": "^0.22.12",
"minimatch": "9.0.5",
"mysql": "^2.18.1", "mysql": "^2.18.1",
"ts-jest": "^29.0.0", "ts-jest": "^29.0.0",
"typeorm": "0.3.20", "typeorm": "0.3.20",

View file

@ -1,10 +1,10 @@
import { readFileSync } from "fs"; import { readFileSync } from "fs";
import path from "path"; import path from "path";
import Config from "../database/entities/app/Config"; import Config from "../database/entities/app/Config.js";
import { glob } from "glob"; import { glob } from "glob";
import { SeriesMetadata } from "../contracts/SeriesMetadata"; import { SeriesMetadata } from "../contracts/SeriesMetadata.js";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
export interface CardMetadataResult { export interface CardMetadataResult {
IsSuccess: boolean; IsSuccess: boolean;

View file

@ -1,7 +1,7 @@
import * as dotenv from "dotenv"; import * as dotenv from "dotenv";
import { CoreClient } from "./client/client"; import { CoreClient } from "./client/client.js";
import { IntentsBitField } from "discord.js"; import { IntentsBitField } from "discord.js";
import Registry from "./registry"; import Registry from "./registry.js";
import { existsSync } from "fs"; import { existsSync } from "fs";
import { ExecException, exec } from "child_process"; import { ExecException, exec } from "child_process";

View file

@ -1,12 +1,12 @@
import { ButtonInteraction } from "discord.js"; import { ButtonInteraction } from "discord.js";
import { ButtonEvent } from "../type/buttonEvent"; import { ButtonEvent } from "../type/buttonEvent.js";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import { default as eClaim } from "../database/entities/app/Claim"; import { default as eClaim } from "../database/entities/app/Claim.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata"; import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata.js";
import User from "../database/entities/app/User"; import User from "../database/entities/app/User.js";
import CardConstants from "../constants/CardConstants"; import CardConstants from "../constants/CardConstants.js";
export default class Claim extends ButtonEvent { export default class Claim extends ButtonEvent {
public override async execute(interaction: ButtonInteraction) { public override async execute(interaction: ButtonInteraction) {

View file

@ -1,7 +1,7 @@
import { ButtonInteraction } from "discord.js"; import { ButtonInteraction } from "discord.js";
import { ButtonEvent } from "../type/buttonEvent"; import { ButtonEvent } from "../type/buttonEvent.js";
import InventoryHelper from "../helpers/InventoryHelper"; import InventoryHelper from "../helpers/InventoryHelper.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
export default class Inventory extends ButtonEvent { export default class Inventory extends ButtonEvent {
public override async execute(interaction: ButtonInteraction) { public override async execute(interaction: ButtonInteraction) {

View file

@ -1,15 +1,15 @@
import { AttachmentBuilder, ButtonInteraction } from "discord.js"; import { AttachmentBuilder, ButtonInteraction } from "discord.js";
import { ButtonEvent } from "../type/buttonEvent"; import { ButtonEvent } from "../type/buttonEvent.js";
import { readFileSync } from "fs"; import { readFileSync } from "fs";
import { v4 } from "uuid"; import { v4 } from "uuid";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import Config from "../database/entities/app/Config"; import Config from "../database/entities/app/Config.js";
import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata"; import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata.js";
import path from "path"; import path from "path";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import User from "../database/entities/app/User"; import User from "../database/entities/app/User.js";
import CardConstants from "../constants/CardConstants"; import CardConstants from "../constants/CardConstants.js";
export default class Reroll extends ButtonEvent { export default class Reroll extends ButtonEvent {
public override async execute(interaction: ButtonInteraction) { public override async execute(interaction: ButtonInteraction) {

View file

@ -1,10 +1,10 @@
import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, EmbedBuilder } from "discord.js"; import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, EmbedBuilder } from "discord.js";
import { ButtonEvent } from "../type/buttonEvent"; import { ButtonEvent } from "../type/buttonEvent.js";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata"; import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata.js";
import { CardRarityToString, GetSacrificeAmount } from "../constants/CardRarity"; import { CardRarityToString, GetSacrificeAmount } from "../constants/CardRarity.js";
import EmbedColours from "../constants/EmbedColours"; import EmbedColours from "../constants/EmbedColours.js";
import User from "../database/entities/app/User"; import User from "../database/entities/app/User.js";
export default class Sacrifice extends ButtonEvent { export default class Sacrifice extends ButtonEvent {
public override async execute(interaction: ButtonInteraction) { public override async execute(interaction: ButtonInteraction) {

View file

@ -1,7 +1,7 @@
import { ButtonInteraction } from "discord.js"; import { ButtonInteraction } from "discord.js";
import { ButtonEvent } from "../type/buttonEvent"; import { ButtonEvent } from "../type/buttonEvent.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import SeriesHelper from "../helpers/SeriesHelper"; import SeriesHelper from "../helpers/SeriesHelper.js";
export default class Series extends ButtonEvent { export default class Series extends ButtonEvent {
public override async execute(interaction: ButtonInteraction) { public override async execute(interaction: ButtonInteraction) {

View file

@ -1,9 +1,9 @@
import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, EmbedBuilder } from "discord.js"; import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, EmbedBuilder } from "discord.js";
import { ButtonEvent } from "../type/buttonEvent"; import { ButtonEvent } from "../type/buttonEvent.js";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import EmbedColours from "../constants/EmbedColours"; import EmbedColours from "../constants/EmbedColours.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
export default class Trade extends ButtonEvent { export default class Trade extends ButtonEvent {
public override async execute(interaction: ButtonInteraction) { public override async execute(interaction: ButtonInteraction) {

View file

@ -1,6 +1,6 @@
import {ButtonInteraction} from "discord.js"; import {ButtonInteraction} from "discord.js";
import {ButtonEvent} from "../type/buttonEvent"; import {ButtonEvent} from "../type/buttonEvent.js";
import CardSearchHelper from "../helpers/CardSearchHelper"; import CardSearchHelper from "../helpers/CardSearchHelper.js";
export default class View extends ButtonEvent { export default class View extends ButtonEvent {
public override async execute(interaction: ButtonInteraction) { public override async execute(interaction: ButtonInteraction) {

View file

@ -1,22 +1,22 @@
import { Client, DMChannel, Guild, GuildBan, GuildMember, Message, NonThreadGuildBasedChannel, PartialGuildMember, PartialMessage } from "discord.js"; import { Client, DMChannel, Guild, GuildBan, GuildMember, Message, NonThreadGuildBasedChannel, PartialGuildMember, PartialMessage } from "discord.js";
import * as dotenv from "dotenv"; import * as dotenv from "dotenv";
import ICommandItem from "../contracts/ICommandItem"; import ICommandItem from "../contracts/ICommandItem.js";
import EventExecutors from "../contracts/EventExecutors"; import EventExecutors from "../contracts/EventExecutors.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import { Events } from "./events"; import { Events } from "./events.js";
import { Util } from "./util"; import { Util } from "./util.js";
import IButtonEventItem from "../contracts/ButtonEventItem"; import IButtonEventItem from "../contracts/ButtonEventItem.js";
import { ButtonEvent } from "../type/buttonEvent"; import { ButtonEvent } from "../type/buttonEvent.js";
import AppDataSource from "../database/dataSources/appDataSource"; import AppDataSource from "../database/dataSources/appDataSource.js";
import { Environment } from "../constants/Environment"; import { Environment } from "../constants/Environment.js";
import Webhooks from "../webhooks"; import Webhooks from "../webhooks.js";
import CardMetadataFunction from "../Functions/CardMetadataFunction"; import CardMetadataFunction from "../Functions/CardMetadataFunction.js";
import { SeriesMetadata } from "../contracts/SeriesMetadata"; import { SeriesMetadata } from "../contracts/SeriesMetadata.js";
import AppLogger from "./appLogger"; import AppLogger from "./appLogger.js";
import TimerHelper from "../helpers/TimerHelper"; import TimerHelper from "../helpers/TimerHelper.js";
import GiveCurrency from "../timers/GiveCurrency"; import GiveCurrency from "../timers/GiveCurrency.js";
import PurgeClaims from "../timers/PurgeClaims"; import PurgeClaims from "../timers/PurgeClaims.js";
export class CoreClient extends Client { export class CoreClient extends Client {
private static _commandItems: ICommandItem[]; private static _commandItems: ICommandItem[];

View file

@ -1,8 +1,8 @@
import { Interaction } from "discord.js"; import { Interaction } from "discord.js";
import ChatInputCommand from "./interactionCreate/ChatInputCommand"; import ChatInputCommand from "./interactionCreate/ChatInputCommand.js";
import Button from "./interactionCreate/Button"; import Button from "./interactionCreate/Button.js";
import AppLogger from "./appLogger"; import AppLogger from "./appLogger.js";
import NewUserDiscovery from "./interactionCreate/middleware/NewUserDiscovery"; import NewUserDiscovery from "./interactionCreate/middleware/NewUserDiscovery.js";
export class Events { export class Events {
public async onInteractionCreate(interaction: Interaction) { public async onInteractionCreate(interaction: Interaction) {

View file

@ -1,6 +1,6 @@
import { ButtonInteraction } from "discord.js"; import { ButtonInteraction } from "discord.js";
import { CoreClient } from "../client"; import { CoreClient } from "../client.js";
import AppLogger from "../appLogger"; import AppLogger from "../appLogger.js";
export default class Button { export default class Button {
public static async onButtonClicked(interaction: ButtonInteraction) { public static async onButtonClicked(interaction: ButtonInteraction) {

View file

@ -1,7 +1,7 @@
import { Interaction } from "discord.js"; import { Interaction } from "discord.js";
import { CoreClient } from "../client"; import { CoreClient } from "../client.js";
import ICommandItem from "../../contracts/ICommandItem"; import ICommandItem from "../../contracts/ICommandItem.js";
import AppLogger from "../appLogger"; import AppLogger from "../appLogger.js";
export default class ChatInputCommand { export default class ChatInputCommand {
public static async onChatInput(interaction: Interaction) { public static async onChatInput(interaction: Interaction) {

View file

@ -1,7 +1,7 @@
import { Interaction } from "discord.js"; import { Interaction } from "discord.js";
import User from "../../../database/entities/app/User"; import User from "../../../database/entities/app/User.js";
import CardConstants from "../../../constants/CardConstants"; import CardConstants from "../../../constants/CardConstants.js";
import AppLogger from "../../appLogger"; import AppLogger from "../../appLogger.js";
export default async function NewUserDiscovery(interaction: Interaction) { export default async function NewUserDiscovery(interaction: Interaction) {
const existingUser = await User.FetchOneById(User, interaction.user.id); const existingUser = await User.FetchOneById(User, interaction.user.id);

View file

@ -1,7 +1,7 @@
import { Client, REST, Routes, SlashCommandBuilder } from "discord.js"; import { Client, REST, Routes, SlashCommandBuilder } from "discord.js";
import EventExecutors from "../contracts/EventExecutors"; import EventExecutors from "../contracts/EventExecutors.js";
import { CoreClient } from "./client"; import { CoreClient } from "./client.js";
import AppLogger from "./appLogger"; import AppLogger from "./appLogger.js";
export class Util { export class Util {
public loadSlashCommands(client: Client) { public loadSlashCommands(client: Client) {

View file

@ -1,6 +1,6 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { ActionRowBuilder, ButtonBuilder, ButtonStyle, CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js";
import EmbedColours from "../constants/EmbedColours"; import EmbedColours from "../constants/EmbedColours.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
export default class About extends Command { export default class About extends Command {
constructor() { constructor() {

View file

@ -1,7 +1,7 @@
import { CommandInteraction, EmbedBuilder, PermissionsBitField, SlashCommandBuilder } from "discord.js"; import { CommandInteraction, EmbedBuilder, PermissionsBitField, SlashCommandBuilder } from "discord.js";
import EmbedColours from "../constants/EmbedColours"; import EmbedColours from "../constants/EmbedColours.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import User from "../database/entities/app/User"; import User from "../database/entities/app/User.js";
export default class AllBalance extends Command { export default class AllBalance extends Command {
constructor() { constructor() {

View file

@ -1,7 +1,7 @@
import { CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import User from "../database/entities/app/User"; import User from "../database/entities/app/User.js";
import EmbedColours from "../constants/EmbedColours"; import EmbedColours from "../constants/EmbedColours.js";
export default class Balance extends Command { export default class Balance extends Command {
constructor() { constructor() {

View file

@ -1,8 +1,8 @@
import { CommandInteraction, SlashCommandBuilder } from "discord.js"; import { CommandInteraction, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import User from "../database/entities/app/User"; import User from "../database/entities/app/User.js";
import CardConstants from "../constants/CardConstants"; import CardConstants from "../constants/CardConstants.js";
import TimeLengthInput from "../helpers/TimeLengthInput"; import TimeLengthInput from "../helpers/TimeLengthInput.js";
export default class Daily extends Command { export default class Daily extends Command {
constructor() { constructor() {

View file

@ -1,15 +1,15 @@
import { AttachmentBuilder, CommandInteraction, SlashCommandBuilder } from "discord.js"; import { AttachmentBuilder, CommandInteraction, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import { readFileSync } from "fs"; import { readFileSync } from "fs";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import { v4 } from "uuid"; import { v4 } from "uuid";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import Config from "../database/entities/app/Config"; import Config from "../database/entities/app/Config.js";
import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata"; import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata.js";
import path from "path"; import path from "path";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import User from "../database/entities/app/User"; import User from "../database/entities/app/User.js";
import CardConstants from "../constants/CardConstants"; import CardConstants from "../constants/CardConstants.js";
export default class Drop extends Command { export default class Drop extends Command {
constructor() { constructor() {

View file

@ -1,10 +1,10 @@
import { CacheType, CommandInteraction, PermissionsBitField, SlashCommandBuilder } from "discord.js"; import { CacheType, CommandInteraction, PermissionsBitField, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import { ExecException, exec } from "child_process"; import { ExecException, exec } from "child_process";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import Config from "../database/entities/app/Config"; import Config from "../database/entities/app/Config.js";
import CardMetadataFunction from "../Functions/CardMetadataFunction"; import CardMetadataFunction from "../Functions/CardMetadataFunction.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
export default class Gdrivesync extends Command { export default class Gdrivesync extends Command {
constructor() { constructor() {

View file

@ -1,11 +1,11 @@
import { CacheType, CommandInteraction, PermissionsBitField, SlashCommandBuilder } from "discord.js"; import { CacheType, CommandInteraction, PermissionsBitField, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import Config from "../database/entities/app/Config"; import Config from "../database/entities/app/Config.js";
import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata"; import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata.js";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import User from "../database/entities/app/User"; import User from "../database/entities/app/User.js";
export default class Give extends Command { export default class Give extends Command {
constructor() { constructor() {

View file

@ -1,7 +1,7 @@
import { CommandInteraction, SlashCommandBuilder } from "discord.js"; import { CommandInteraction, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import InventoryHelper from "../helpers/InventoryHelper"; import InventoryHelper from "../helpers/InventoryHelper.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
export default class Inventory extends Command { export default class Inventory extends Command {
constructor() { constructor() {

View file

@ -1,8 +1,8 @@
import { CacheType, CommandInteraction, PermissionsBitField, SlashCommandBuilder } from "discord.js"; import { CacheType, CommandInteraction, PermissionsBitField, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import Config from "../database/entities/app/Config"; import Config from "../database/entities/app/Config.js";
import CardMetadataFunction from "../Functions/CardMetadataFunction"; import CardMetadataFunction from "../Functions/CardMetadataFunction.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
export default class Resync extends Command { export default class Resync extends Command {
constructor() { constructor() {

View file

@ -1,9 +1,9 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, CacheType, CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { ActionRowBuilder, ButtonBuilder, ButtonStyle, CacheType, CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import { CardRarityToString, GetSacrificeAmount } from "../constants/CardRarity"; import { CardRarityToString, GetSacrificeAmount } from "../constants/CardRarity.js";
import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata"; import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata.js";
import EmbedColours from "../constants/EmbedColours"; import EmbedColours from "../constants/EmbedColours.js";
export default class Sacrifice extends Command { export default class Sacrifice extends Command {
constructor() { constructor() {

View file

@ -1,8 +1,8 @@
import { CommandInteraction, SlashCommandBuilder } from "discord.js"; import { CommandInteraction, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import SeriesHelper from "../helpers/SeriesHelper"; import SeriesHelper from "../helpers/SeriesHelper.js";
export default class Series extends Command { export default class Series extends Command {
constructor() { constructor() {

View file

@ -1,11 +1,11 @@
import { AttachmentBuilder, CacheType, CommandInteraction, DiscordAPIError, SlashCommandBuilder } from "discord.js"; import { AttachmentBuilder, CacheType, CommandInteraction, DiscordAPIError, SlashCommandBuilder } from "discord.js";
import { Command } from "../../type/command"; import { Command } from "../../type/command.js";
import { readFileSync } from "fs"; import { readFileSync } from "fs";
import Inventory from "../../database/entities/app/Inventory"; import Inventory from "../../database/entities/app/Inventory.js";
import { v4 } from "uuid"; import { v4 } from "uuid";
import { CoreClient } from "../../client/client"; import { CoreClient } from "../../client/client.js";
import path from "path"; import path from "path";
import CardDropHelperMetadata from "../../helpers/CardDropHelperMetadata"; import CardDropHelperMetadata from "../../helpers/CardDropHelperMetadata.js";
export default class Dropnumber extends Command { export default class Dropnumber extends Command {
constructor() { constructor() {

View file

@ -1,11 +1,11 @@
import { AttachmentBuilder, CacheType, CommandInteraction, DiscordAPIError, SlashCommandBuilder } from "discord.js"; import { AttachmentBuilder, CacheType, CommandInteraction, DiscordAPIError, SlashCommandBuilder } from "discord.js";
import { Command } from "../../type/command"; import { Command } from "../../type/command.js";
import { CardRarity, CardRarityParse } from "../../constants/CardRarity"; import { CardRarity, CardRarityParse } from "../../constants/CardRarity.js";
import { readFileSync } from "fs"; import { readFileSync } from "fs";
import Inventory from "../../database/entities/app/Inventory"; import Inventory from "../../database/entities/app/Inventory.js";
import { v4 } from "uuid"; import { v4 } from "uuid";
import { CoreClient } from "../../client/client"; import { CoreClient } from "../../client/client.js";
import CardDropHelperMetadata from "../../helpers/CardDropHelperMetadata"; import CardDropHelperMetadata from "../../helpers/CardDropHelperMetadata.js";
import path from "path"; import path from "path";
export default class Droprarity extends Command { export default class Droprarity extends Command {

View file

@ -1,9 +1,9 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js"; import { ActionRowBuilder, ButtonBuilder, ButtonStyle, CommandInteraction, EmbedBuilder, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import EmbedColours from "../constants/EmbedColours"; import EmbedColours from "../constants/EmbedColours.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
export default class Trade extends Command { export default class Trade extends Command {
constructor() { constructor() {

View file

@ -1,12 +1,12 @@
import { AttachmentBuilder, CommandInteraction, DiscordAPIError, SlashCommandBuilder } from "discord.js"; import { AttachmentBuilder, CommandInteraction, DiscordAPIError, SlashCommandBuilder } from "discord.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import { readFileSync } from "fs"; import { readFileSync } from "fs";
import path from "path"; import path from "path";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata"; import CardDropHelperMetadata from "../helpers/CardDropHelperMetadata.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import CardSearchHelper from "../helpers/CardSearchHelper"; import CardSearchHelper from "../helpers/CardSearchHelper.js";
export default class View extends Command { export default class View extends Command {
constructor() { constructor() {

View file

@ -1,4 +1,4 @@
import EmbedColours from "./EmbedColours"; import EmbedColours from "./EmbedColours.js";
export enum CardRarity { export enum CardRarity {
Unknown, Unknown,

View file

@ -1,6 +1,6 @@
import { Column, DeepPartial, EntityTarget, PrimaryColumn, ObjectLiteral, FindOptionsWhere } from "typeorm"; import { Column, DeepPartial, EntityTarget, PrimaryColumn, ObjectLiteral, FindOptionsWhere } from "typeorm";
import { v4 } from "uuid"; import { v4 } from "uuid";
import AppDataSource from "../database/dataSources/appDataSource"; import AppDataSource from "../database/dataSources/appDataSource.js";
export default class AppBaseEntity { export default class AppBaseEntity {
constructor() { constructor() {

View file

@ -1,5 +1,5 @@
import { Environment } from "../constants/Environment"; import { Environment } from "../constants/Environment.js";
import { ButtonEvent } from "../type/buttonEvent"; import { ButtonEvent } from "../type/buttonEvent.js";
interface ButtonEventItem { interface ButtonEventItem {
ButtonId: string, ButtonId: string,

View file

@ -1,5 +1,5 @@
import { Environment } from "../constants/Environment"; import { Environment } from "../constants/Environment.js";
import { Command } from "../type/command"; import { Command } from "../type/command.js";
interface ICommandItem { interface ICommandItem {
Name: string, Name: string,

View file

@ -1,4 +1,4 @@
import { CardRarity } from "../constants/CardRarity"; import { CardRarity } from "../constants/CardRarity.js";
export interface SeriesMetadata { export interface SeriesMetadata {
id: number, id: number,

View file

@ -1,7 +1,7 @@
import { Column, Entity, ManyToOne } from "typeorm"; import { Column, Entity, ManyToOne } from "typeorm";
import AppBaseEntity from "../../../contracts/AppBaseEntity"; import AppBaseEntity from "../../../contracts/AppBaseEntity.js";
import Inventory from "./Inventory"; import Inventory from "./Inventory.js";
import AppDataSource from "../../dataSources/appDataSource"; import AppDataSource from "../../dataSources/appDataSource.js";
@Entity() @Entity()
export default class Claim extends AppBaseEntity { export default class Claim extends AppBaseEntity {

View file

@ -1,6 +1,6 @@
import { Column, Entity } from "typeorm"; import { Column, Entity } from "typeorm";
import AppBaseEntity from "../../../contracts/AppBaseEntity"; import AppBaseEntity from "../../../contracts/AppBaseEntity.js";
import AppDataSource from "../../dataSources/appDataSource"; import AppDataSource from "../../dataSources/appDataSource.js";
@Entity() @Entity()
export default class Config extends AppBaseEntity { export default class Config extends AppBaseEntity {

View file

@ -1,7 +1,7 @@
import { Column, Entity, OneToMany } from "typeorm"; import { Column, Entity, OneToMany } from "typeorm";
import AppBaseEntity from "../../../contracts/AppBaseEntity"; import AppBaseEntity from "../../../contracts/AppBaseEntity.js";
import AppDataSource from "../../dataSources/appDataSource"; import AppDataSource from "../../dataSources/appDataSource.js";
import Claim from "./Claim"; import Claim from "./Claim.js";
@Entity() @Entity()
export default class Inventory extends AppBaseEntity { export default class Inventory extends AppBaseEntity {

View file

@ -1,5 +1,5 @@
import { Column, Entity } from "typeorm"; import { Column, Entity } from "typeorm";
import AppBaseEntity from "../../../contracts/AppBaseEntity"; import AppBaseEntity from "../../../contracts/AppBaseEntity.js";
@Entity() @Entity()
export default class User extends AppBaseEntity { export default class User extends AppBaseEntity {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm"; import { MigrationInterface, QueryRunner } from "typeorm";
import MigrationHelper from "../../../../helpers/MigrationHelper"; import MigrationHelper from "../../../../helpers/MigrationHelper.js";
export class CreateClaim1694609771821 implements MigrationInterface { export class CreateClaim1694609771821 implements MigrationInterface {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm"; import { MigrationInterface, QueryRunner } from "typeorm";
import MigrationHelper from "../../../../helpers/MigrationHelper"; import MigrationHelper from "../../../../helpers/MigrationHelper.js";
export class CreateBase1693769942868 implements MigrationInterface { export class CreateBase1693769942868 implements MigrationInterface {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm"; import { MigrationInterface, QueryRunner } from "typeorm";
import MigrationHelper from "../../../../helpers/MigrationHelper"; import MigrationHelper from "../../../../helpers/MigrationHelper.js";
export class CreateConfig1699814500650 implements MigrationInterface { export class CreateConfig1699814500650 implements MigrationInterface {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm"; import { MigrationInterface, QueryRunner } from "typeorm";
import MigrationHelper from "../../../../helpers/MigrationHelper"; import MigrationHelper from "../../../../helpers/MigrationHelper.js";
export class User1713289062969 implements MigrationInterface { export class User1713289062969 implements MigrationInterface {

View file

@ -1,5 +1,5 @@
import { MigrationInterface, QueryRunner } from "typeorm"; import { MigrationInterface, QueryRunner } from "typeorm";
import MigrationHelper from "../../../../helpers/MigrationHelper"; import MigrationHelper from "../../../../helpers/MigrationHelper.js";
export class Daily1715967355818 implements MigrationInterface { export class Daily1715967355818 implements MigrationInterface {

View file

@ -1,10 +1,10 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js"; import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js";
import { CardRarity, CardRarityToColour, CardRarityToString } from "../constants/CardRarity"; import { CardRarity, CardRarityToColour, CardRarityToString } from "../constants/CardRarity.js";
import CardRarityChances from "../constants/CardRarityChances"; import CardRarityChances from "../constants/CardRarityChances.js";
import { DropResult } from "../contracts/SeriesMetadata"; import { DropResult } from "../contracts/SeriesMetadata.js";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import CardConstants from "../constants/CardConstants"; import CardConstants from "../constants/CardConstants.js";
export default class CardDropHelperMetadata { export default class CardDropHelperMetadata {
public static GetRandomCard(): DropResult | undefined { public static GetRandomCard(): DropResult | undefined {

View file

@ -1,11 +1,11 @@
import {ActionRowBuilder, AttachmentBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder} from "discord.js"; import {ActionRowBuilder, AttachmentBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder} from "discord.js";
import {Fzf} from "fzf"; import {Fzf} from "fzf";
import {CoreClient} from "../client/client"; import {CoreClient} from "../client/client.js";
import CardDropHelperMetadata from "./CardDropHelperMetadata"; import CardDropHelperMetadata from "./CardDropHelperMetadata.js";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import {readFileSync} from "fs"; import {readFileSync} from "fs";
import path from "path"; import path from "path";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
interface ReturnedPage { interface ReturnedPage {
embed: EmbedBuilder, embed: EmbedBuilder,

View file

@ -1,8 +1,8 @@
import {createCanvas, loadImage} from "canvas"; import {createCanvas, loadImage} from "canvas";
import path from "path"; import path from "path";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import {existsSync} from "fs"; import {existsSync} from "fs";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import Jimp from "jimp"; import Jimp from "jimp";
interface CardInput { interface CardInput {

View file

@ -1,11 +1,11 @@
import { ActionRowBuilder, AttachmentBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js"; import { ActionRowBuilder, AttachmentBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js";
import Inventory from "../database/entities/app/Inventory"; import Inventory from "../database/entities/app/Inventory.js";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import EmbedColours from "../constants/EmbedColours"; import EmbedColours from "../constants/EmbedColours.js";
import { CardRarity, CardRarityToString } from "../constants/CardRarity"; import { CardRarity, CardRarityToString } from "../constants/CardRarity.js";
import cloneDeep from "clone-deep"; import cloneDeep from "clone-deep";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import ImageHelper from "./ImageHelper"; import ImageHelper from "./ImageHelper.js";
interface InventoryPage { interface InventoryPage {
id: number, id: number,

View file

@ -1,10 +1,10 @@
import { ActionRowBuilder, AttachmentBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js"; import { ActionRowBuilder, AttachmentBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import cloneDeep from "clone-deep"; import cloneDeep from "clone-deep";
import { CoreClient } from "../client/client"; import { CoreClient } from "../client/client.js";
import EmbedColours from "../constants/EmbedColours"; import EmbedColours from "../constants/EmbedColours.js";
import { CardRarityToString } from "../constants/CardRarity"; import { CardRarityToString } from "../constants/CardRarity.js";
import ImageHelper from "./ImageHelper"; import ImageHelper from "./ImageHelper.js";
export default class SeriesHelper { export default class SeriesHelper {
public static async GenerateSeriesViewPage(seriesId: number, page: number, userId: string): Promise<{ embed: EmbedBuilder, row: ActionRowBuilder<ButtonBuilder>, image: AttachmentBuilder } | null> { public static async GenerateSeriesViewPage(seriesId: number, page: number, userId: string): Promise<{ embed: EmbedBuilder, row: ActionRowBuilder<ButtonBuilder>, image: AttachmentBuilder } | null> {

View file

@ -1,4 +1,4 @@
import StringTools from "./StringTools"; import StringTools from "./StringTools.js";
export default class TimeLengthInput { export default class TimeLengthInput {
public readonly value: string; public readonly value: string;

View file

@ -1,6 +1,6 @@
import { CronJob } from "cron"; import { CronJob } from "cron";
import { v4 } from "uuid"; import { v4 } from "uuid";
import { Primitive } from "../type/primitive"; import { Primitive } from "../type/primitive.js";
interface Timer { interface Timer {
id: string; id: string;

View file

@ -1,6 +1,6 @@
import { Request, Response } from "express"; import { Request, Response } from "express";
import CardMetadataFunction from "../Functions/CardMetadataFunction"; import CardMetadataFunction from "../Functions/CardMetadataFunction.js";
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
export default async function ReloadDB(req: Request, res: Response) { export default async function ReloadDB(req: Request, res: Response) {
AppLogger.LogInfo("Hooks/ReloadDB", "Reloading Card DB..."); AppLogger.LogInfo("Hooks/ReloadDB", "Reloading Card DB...");

View file

@ -1,33 +1,33 @@
import { CoreClient } from "./client/client"; import { CoreClient } from "./client/client.js";
import { Environment } from "./constants/Environment"; import { Environment } from "./constants/Environment.js";
// Global Command Imports // Global Command Imports
import About from "./commands/about"; import About from "./commands/about.js";
import AllBalance from "./commands/allbalance"; import AllBalance from "./commands/allbalance.js";
import Balance from "./commands/balance"; import Balance from "./commands/balance.js";
import Daily from "./commands/daily"; import Daily from "./commands/daily.js";
import Drop from "./commands/drop"; import Drop from "./commands/drop.js";
import Gdrivesync from "./commands/gdrivesync"; import Gdrivesync from "./commands/gdrivesync.js";
import Give from "./commands/give"; import Give from "./commands/give.js";
import Inventory from "./commands/inventory"; import Inventory from "./commands/inventory.js";
import Resync from "./commands/resync"; import Resync from "./commands/resync.js";
import Sacrifice from "./commands/sacrifice"; import Sacrifice from "./commands/sacrifice.js";
import Series from "./commands/series"; import Series from "./commands/series.js";
import Trade from "./commands/trade"; import Trade from "./commands/trade.js";
import View from "./commands/view"; import View from "./commands/view.js";
// Test Command Imports // Test Command Imports
import Dropnumber from "./commands/stage/dropnumber"; import Dropnumber from "./commands/stage/dropnumber.js";
import Droprarity from "./commands/stage/droprarity"; import Droprarity from "./commands/stage/droprarity.js";
// Button Event Imports // Button Event Imports
import Claim from "./buttonEvents/Claim"; import Claim from "./buttonEvents/Claim.js";
import InventoryButtonEvent from "./buttonEvents/Inventory"; import InventoryButtonEvent from "./buttonEvents/Inventory.js";
import Reroll from "./buttonEvents/Reroll"; import Reroll from "./buttonEvents/Reroll.js";
import SacrificeButtonEvent from "./buttonEvents/Sacrifice"; import SacrificeButtonEvent from "./buttonEvents/Sacrifice.js";
import SeriesEvent from "./buttonEvents/Series"; import SeriesEvent from "./buttonEvents/Series.js";
import TradeButtonEvent from "./buttonEvents/Trade"; import TradeButtonEvent from "./buttonEvents/Trade.js";
import ViewButtonEvent from "./buttonEvents/View"; import ViewButtonEvent from "./buttonEvents/View.js";
export default class Registry { export default class Registry {
public static RegisterCommands() { public static RegisterCommands() {

View file

@ -1,6 +1,6 @@
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import CardConstants from "../constants/CardConstants"; import CardConstants from "../constants/CardConstants.js";
import User from "../database/entities/app/User"; import User from "../database/entities/app/User.js";
export default async function GiveCurrency() { export default async function GiveCurrency() {
AppLogger.LogDebug("Timers/GiveCurrency", "Giving currency to every known user"); AppLogger.LogDebug("Timers/GiveCurrency", "Giving currency to every known user");

View file

@ -1,5 +1,5 @@
import AppLogger from "../client/appLogger"; import AppLogger from "../client/appLogger.js";
import Claim from "../database/entities/app/Claim"; import Claim from "../database/entities/app/Claim.js";
export default async function PurgeClaims() { export default async function PurgeClaims() {
const claims = await Claim.FetchAll(Claim); const claims = await Claim.FetchAll(Claim);

View file

@ -1,7 +1,7 @@
import bodyParser from "body-parser"; import bodyParser from "body-parser";
import express, { Application } from "express"; import express, { Application } from "express";
import ReloadDB from "./hooks/ReloadDB"; import ReloadDB from "./hooks/ReloadDB.js";
import AppLogger from "./client/appLogger"; import AppLogger from "./client/appLogger.js";
export default class Webhooks { export default class Webhooks {
private app: Application; private app: Application;

View file

@ -5,7 +5,7 @@
/* Basic Options */ /* Basic Options */
// "incremental": true, /* Enable incremental compilation */ // "incremental": true, /* Enable incremental compilation */
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */ "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ "module": "es2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */ // "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */ // "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */ // "checkJs": true, /* Report errors in .js files. */
@ -44,7 +44,7 @@
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */ // "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
/* Module Resolution Options */ /* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */

View file

@ -1247,11 +1247,11 @@
integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w== integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==
"@types/node@*": "@types/node@*":
version "20.14.9" version "22.2.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.9.tgz#12e8e765ab27f8c421a1820c99f5f313a933b420" resolved "https://registry.yarnpkg.com/@types/node/-/node-22.2.0.tgz#7cf046a99f0ba4d628ad3088cb21f790df9b0c5b"
integrity sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg== integrity sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==
dependencies: dependencies:
undici-types "~5.26.4" undici-types "~6.13.0"
"@types/node@16.9.1": "@types/node@16.9.1":
version "16.9.1" version "16.9.1"
@ -1259,9 +1259,9 @@
integrity sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g== integrity sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g==
"@types/node@^20.0.0": "@types/node@^20.0.0":
version "20.14.14" version "20.14.15"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.14.tgz#6b655d4a88623b0edb98300bb9dd2107225f885e" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.15.tgz#e59477ab7bc7db1f80c85540bfd192a0becc588b"
integrity sha512-d64f00982fS9YoOgJkAMolK7MN8Iq3TDdVjchbYHdEmjth/DHowx82GnoA+tVUAN+7vxfYUgAzi+JXbKNd2SDQ== integrity sha512-Fz1xDMCF/B00/tYSVMlmK7hVeLh7jE5f3B7X1/hmV0MJBwE27KlS7EvD/Yp+z1lm8mVhwV5w+n8jOZG8AfTlKw==
dependencies: dependencies:
undici-types "~5.26.4" undici-types "~5.26.4"
@ -1332,9 +1332,9 @@
integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==
"@types/yargs@^17.0.8": "@types/yargs@^17.0.8":
version "17.0.32" version "17.0.33"
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.32.tgz#030774723a2f7faafebf645f4e5a48371dca6229" resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.33.tgz#8c32303da83eec050a84b3c7ae7b9f922d13e32d"
integrity sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog== integrity sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==
dependencies: dependencies:
"@types/yargs-parser" "*" "@types/yargs-parser" "*"
@ -2018,7 +2018,7 @@ chalk@^2.4.1, chalk@^2.4.2:
escape-string-regexp "^1.0.5" escape-string-regexp "^1.0.5"
supports-color "^5.3.0" supports-color "^5.3.0"
chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2: chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2:
version "4.1.2" version "4.1.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
@ -2601,6 +2601,13 @@ ee-first@1.1.1:
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==
ejs@^3.1.10:
version "3.1.10"
resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.10.tgz#69ab8358b14e896f80cc39e62087b88500c3ac3b"
integrity sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==
dependencies:
jake "^10.8.5"
electron-to-chromium@^1.4.668: electron-to-chromium@^1.4.668:
version "1.4.788" version "1.4.788"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.788.tgz#a3545959d5cfa0a266d3e551386c040be34e7e06" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.788.tgz#a3545959d5cfa0a266d3e551386c040be34e7e06"
@ -3014,6 +3021,13 @@ file-type@^16.5.4:
strtok3 "^6.2.4" strtok3 "^6.2.4"
token-types "^4.1.1" token-types "^4.1.1"
filelist@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5"
integrity sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==
dependencies:
minimatch "^5.0.1"
fill-range@^7.1.1: fill-range@^7.1.1:
version "7.1.1" version "7.1.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292"
@ -3962,6 +3976,16 @@ jackspeak@^3.1.2:
optionalDependencies: optionalDependencies:
"@pkgjs/parseargs" "^0.11.0" "@pkgjs/parseargs" "^0.11.0"
jake@^10.8.5:
version "10.9.2"
resolved "https://registry.yarnpkg.com/jake/-/jake-10.9.2.tgz#6ae487e6a69afec3a5e167628996b59f35ae2b7f"
integrity sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==
dependencies:
async "^3.2.3"
chalk "^4.0.2"
filelist "^1.0.4"
minimatch "^3.1.2"
jest-changed-files@^29.7.0: jest-changed-files@^29.7.0:
version "29.7.0" version "29.7.0"
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.7.0.tgz#1c06d07e77c78e1585d020424dedc10d6e17ac3a" resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.7.0.tgz#1c06d07e77c78e1585d020424dedc10d6e17ac3a"
@ -4783,13 +4807,6 @@ minimatch@9.0.3:
dependencies: dependencies:
brace-expansion "^2.0.1" brace-expansion "^2.0.1"
minimatch@9.0.5, minimatch@^9.0.4:
version "9.0.5"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5"
integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==
dependencies:
brace-expansion "^2.0.1"
minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
version "3.1.2" version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
@ -4797,6 +4814,13 @@ minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
dependencies: dependencies:
brace-expansion "^1.1.7" brace-expansion "^1.1.7"
minimatch@^5.0.1:
version "5.1.6"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96"
integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==
dependencies:
brace-expansion "^2.0.1"
minimatch@^9.0.0: minimatch@^9.0.0:
version "9.0.4" version "9.0.4"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.4.tgz#8e49c731d1749cbec05050ee5145147b32496a51" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.4.tgz#8e49c731d1749cbec05050ee5145147b32496a51"
@ -4804,6 +4828,13 @@ minimatch@^9.0.0:
dependencies: dependencies:
brace-expansion "^2.0.1" brace-expansion "^2.0.1"
minimatch@^9.0.4:
version "9.0.5"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5"
integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==
dependencies:
brace-expansion "^2.0.1"
minimist@^1.2.0: minimist@^1.2.0:
version "1.2.8" version "1.2.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
@ -5872,12 +5903,12 @@ semver@^6.0.0, semver@^6.3.0, semver@^6.3.1:
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
semver@^7.3.5, semver@^7.3.7, semver@^7.5.3, semver@^7.5.4: semver@^7.3.5, semver@^7.3.7, semver@^7.5.4:
version "7.6.2" version "7.6.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13"
integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==
semver@^7.6.0: semver@^7.5.3, semver@^7.6.0:
version "7.6.3" version "7.6.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==
@ -6425,11 +6456,12 @@ ts-essentials@^10.0.0:
integrity sha512-77FHNJEyysF9+1s4G6eejuA1lxw7uMchT3ZPy3CIbh7GIunffpshtM8pTe5G6N5dpOzNevqRHew859ceLWVBfw== integrity sha512-77FHNJEyysF9+1s4G6eejuA1lxw7uMchT3ZPy3CIbh7GIunffpshtM8pTe5G6N5dpOzNevqRHew859ceLWVBfw==
ts-jest@^29.0.0: ts-jest@^29.0.0:
version "29.1.5" version "29.2.4"
resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.5.tgz#d6c0471cc78bffa2cb4664a0a6741ef36cfe8f69" resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.2.4.tgz#38ccf487407d7a63054a72689f6f99b075e296e5"
integrity sha512-UuClSYxM7byvvYfyWdFI+/2UxMmwNyJb0NPkZPQE2hew3RurV7l7zURgOHAd/1I1ZdPpe3GUsXNXAcN8TFKSIg== integrity sha512-3d6tgDyhCI29HlpwIq87sNuI+3Q6GLTTCeYRHCs7vDz+/3GCMwEtV9jezLyl4ZtnBgx00I7hm8PCP8cTksMGrw==
dependencies: dependencies:
bs-logger "0.x" bs-logger "0.x"
ejs "^3.1.10"
fast-json-stable-stringify "2.x" fast-json-stable-stringify "2.x"
jest-util "^29.0.0" jest-util "^29.0.0"
json5 "^2.2.3" json5 "^2.2.3"
@ -6561,6 +6593,11 @@ undici-types@~5.26.4:
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
undici-types@~6.13.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.13.0.tgz#e3e79220ab8c81ed1496b5812471afd7cf075ea5"
integrity sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==
undici@6.13.0: undici@6.13.0:
version "6.13.0" version "6.13.0"
resolved "https://registry.yarnpkg.com/undici/-/undici-6.13.0.tgz#7edbf4b7f3aac5f8a681d515151bf55cb3589d72" resolved "https://registry.yarnpkg.com/undici/-/undici-6.13.0.tgz#7edbf4b7f3aac5f8a681d515151bf55cb3589d72"