diff --git a/package.json b/package.json index cff7f33..44c00cb 100644 --- a/package.json +++ b/package.json @@ -11,13 +11,13 @@ "dependencies": { "@sapphire/decorators": "^6.0.2", "@sapphire/discord.js-utilities": "7.0.2", - "@sapphire/framework": "^4.5.3", + "@sapphire/framework": "^4.6.0", "@sapphire/plugin-logger": "^3.0.6", "@sapphire/utilities": "^3.13.0", "@skyra/env-utilities": "^1.2.1", "colorette": "^2.0.20", "discord.js": "^14.13.0", - "openai": "^4.4.0" + "openai": "^4.5.0" }, "devDependencies": { "@sapphire/cli": "^1.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4b9b0f5..3e50a53 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ dependencies: specifier: 7.0.2 version: 7.0.2 '@sapphire/framework': - specifier: ^4.5.3 - version: 4.5.3 + specifier: ^4.6.0 + version: 4.6.0 '@sapphire/plugin-logger': specifier: ^3.0.6 version: 3.0.6 @@ -30,8 +30,8 @@ dependencies: specifier: ^14.13.0 version: 14.13.0 openai: - specifier: ^4.4.0 - version: 4.4.0 + specifier: ^4.5.0 + version: 4.5.0 devDependencies: '@sapphire/cli': @@ -118,7 +118,7 @@ packages: '@vladfrangu/async_event_emitter': 2.2.2 discord-api-types: 0.37.50 tslib: 2.6.2 - ws: 8.13.0 + ws: 8.14.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -181,8 +181,8 @@ packages: engines: {node: '>=v14.0.0', npm: '>=7.0.0'} dev: false - /@sapphire/framework@4.5.3: - resolution: {integrity: sha512-w26lRzmtCLf4McvMl5v+Hoh0X0K+s1sbN7fYpTl6xFmPg3vfQHAAFL1HNk5++bvsP7cmRYzht7w3zTUM3xvjew==} + /@sapphire/framework@4.6.0: + resolution: {integrity: sha512-yEVEWw0g/0jscK2uS2Jxv3NUKM4NnGTPaoQn3x/Dvu2TLPytXcJmSKF8dH7p1uJGxeIqwyYNoPmYfttFFEitkQ==} engines: {node: '>=16.6.0', npm: '>=7.0.0'} dependencies: '@discordjs/builders': 1.6.5 @@ -408,7 +408,7 @@ packages: lodash.snakecase: 4.1.1 tslib: 2.6.2 undici: 5.22.1 - ws: 8.13.0 + ws: 8.14.0 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -629,8 +629,8 @@ packages: mimic-fn: 4.0.0 dev: true - /openai@4.4.0: - resolution: {integrity: sha512-JN0t628Kh95T0IrXl0HdBqnlJg+4Vq0Bnh55tio+dfCnyzHvMLiWyCM9m726MAJD2YkDU4/8RQB6rNbEq9ct2w==} + /openai@4.5.0: + resolution: {integrity: sha512-9cA5i6KpEAeLV8nZrVgOXqRmUWUIu4FV2oRKvSIwrA7Z5aMd4sXVOaqWAuRDhFFewirxhys8D6R5B2Drj1pKIQ==} hasBin: true dependencies: '@types/node': 18.17.14 @@ -815,8 +815,8 @@ packages: isexe: 2.0.0 dev: true - /ws@8.13.0: - resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} + /ws@8.14.0: + resolution: {integrity: sha512-WR0RJE9Ehsio6U4TuM+LmunEsjQ5ncHlw4sn9ihD6RoJKZrVyH9FWV3dmnwu8B2aNib1OvG2X6adUCyFpQyWcg==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 diff --git a/src/commands/ask.ts b/src/commands/ask.ts index 232d456..e4300a0 100644 --- a/src/commands/ask.ts +++ b/src/commands/ask.ts @@ -7,6 +7,8 @@ const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY }); +// @ts-ignore +// @ts-ignore @ApplyOptions({ description: 'You can ACTUALLY ask Himbot something! So cool!', options: ['prompt'] diff --git a/src/commands/borf.ts b/src/commands/borf.ts index bd29258..107e72c 100644 --- a/src/commands/borf.ts +++ b/src/commands/borf.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: 'Borf! Borf!' }) diff --git a/src/commands/credits.ts b/src/commands/credits.ts index 96bc14d..208cf42 100644 --- a/src/commands/credits.ts +++ b/src/commands/credits.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: 'Check how many credits I have left!' }) diff --git a/src/commands/dad.ts b/src/commands/dad.ts index cec2de1..5d0fc97 100644 --- a/src/commands/dad.ts +++ b/src/commands/dad.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: 'Dad joke for daddies only!' }) diff --git a/src/commands/disclosure.ts b/src/commands/disclosure.ts index ab5fcdb..a52a78a 100644 --- a/src/commands/disclosure.ts +++ b/src/commands/disclosure.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: 'Disclosures for privacy.' }) diff --git a/src/commands/fancypic.ts b/src/commands/fancypic.ts index a019e3f..b391820 100644 --- a/src/commands/fancypic.ts +++ b/src/commands/fancypic.ts @@ -4,6 +4,7 @@ import { AttachmentBuilder, Message } from 'discord.js'; // This is literally the worlds messiest TS code. Please don't judge me... +// @ts-ignore @ApplyOptions({ description: 'Make a picture... but high res!', options: ['prompt', 'number of pictures'], diff --git a/src/commands/meow.ts b/src/commands/meow.ts index 036b592..a9d3667 100644 --- a/src/commands/meow.ts +++ b/src/commands/meow.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: 'Meow!' }) diff --git a/src/commands/pic.ts b/src/commands/pic.ts index 7ecaa5d..3d19064 100644 --- a/src/commands/pic.ts +++ b/src/commands/pic.ts @@ -4,6 +4,7 @@ import { AttachmentBuilder, Message } from 'discord.js'; // This is literally the worlds messiest TS code. Please don't judge me... +// @ts-ignore @ApplyOptions({ description: 'Make a picture!', options: ['prompt', 'amount'], diff --git a/src/commands/ping.ts b/src/commands/ping.ts index f0467fb..04febbe 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: 'Pong!' }) diff --git a/src/commands/quack.ts b/src/commands/quack.ts index 51bc970..9d158b4 100644 --- a/src/commands/quack.ts +++ b/src/commands/quack.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: 'Quack!' }) diff --git a/src/commands/support.ts b/src/commands/support.ts index db3b8f7..f9ecc78 100644 --- a/src/commands/support.ts +++ b/src/commands/support.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: "Help support HimBot's AI features." }) diff --git a/src/commands/title.ts b/src/commands/title.ts index 6546b4e..56716dc 100644 --- a/src/commands/title.ts +++ b/src/commands/title.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Args, Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: 'This command is the title of your sextape.', options: ['title'] diff --git a/src/commands/wryna.ts b/src/commands/wryna.ts index c433e29..2c414c9 100644 --- a/src/commands/wryna.ts +++ b/src/commands/wryna.ts @@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators'; import { Args, Command } from '@sapphire/framework'; import { Message } from 'discord.js'; +// @ts-ignore @ApplyOptions({ description: 'This command was your nickname in highschool!', options: ['nickname'] diff --git a/src/listeners/ready.ts b/src/listeners/ready.ts index 88db6e4..aadc73e 100644 --- a/src/listeners/ready.ts +++ b/src/listeners/ready.ts @@ -4,6 +4,7 @@ import { blue, gray, green, magenta, magentaBright, white, yellow } from 'colore const dev = process.env.NODE_ENV !== 'production'; +// @ts-ignore @ApplyOptions({ once: true }) export class UserEvent extends Listener { private readonly style = dev ? yellow : blue; diff --git a/tsconfig.json b/tsconfig.json index 329be80..a7a61d0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@sapphire/ts-config", "compilerOptions": { + "ignoreDeprecations": "5.0", "rootDir": "src", "outDir": "dist", "tsBuildInfoFile": "dist/.tsbuildinfo"