I hate that this is needed... sapphire... fix your shit

This commit is contained in:
Atridad Lahiji 2023-09-07 00:18:03 -06:00
parent e0be6dfabf
commit 055f441433
No known key found for this signature in database
17 changed files with 30 additions and 14 deletions

View file

@ -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",

24
pnpm-lock.yaml generated
View file

@ -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

View file

@ -7,6 +7,8 @@ const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY
});
// @ts-ignore
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'You can ACTUALLY ask Himbot something! So cool!',
options: ['prompt']

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'Borf! Borf!'
})

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'Check how many credits I have left!'
})

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'Dad joke for daddies only!'
})

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'Disclosures for privacy.'
})

View file

@ -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<Command.Options>({
description: 'Make a picture... but high res!',
options: ['prompt', 'number of pictures'],

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'Meow!'
})

View file

@ -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<Command.Options>({
description: 'Make a picture!',
options: ['prompt', 'amount'],

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'Pong!'
})

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'Quack!'
})

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: "Help support HimBot's AI features."
})

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Args, Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'This command is the title of your sextape.',
options: ['title']

View file

@ -2,6 +2,7 @@ import { ApplyOptions } from '@sapphire/decorators';
import { Args, Command } from '@sapphire/framework';
import { Message } from 'discord.js';
// @ts-ignore
@ApplyOptions<Command.Options>({
description: 'This command was your nickname in highschool!',
options: ['nickname']

View file

@ -4,6 +4,7 @@ import { blue, gray, green, magenta, magentaBright, white, yellow } from 'colore
const dev = process.env.NODE_ENV !== 'production';
// @ts-ignore
@ApplyOptions<Listener.Options>({ once: true })
export class UserEvent extends Listener {
private readonly style = dev ? yellow : blue;

View file

@ -1,6 +1,7 @@
{
"extends": "@sapphire/ts-config",
"compilerOptions": {
"ignoreDeprecations": "5.0",
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/.tsbuildinfo"