Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
akpi816218 committed Jul 12, 2024
1 parent 35d40cf commit e6fec4e
Show file tree
Hide file tree
Showing 8 changed files with 1,091 additions and 3,187 deletions.
4,239 changes: 1,075 additions & 3,164 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{
"author": "Akhil Pillai",
"dependencies": {
"@deno/kv": "^0.8.0",
"@deno/kv": "^0.8.1",
"@discordjs/collection": "^2.1.0",
"@napi-rs/canvas": "^0.1.52",
"discord.js": "^14.15.3",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"helmet": "^7.1.0",
"jsoning": "^1.0.1",
"node-fetch": "^3.3.2",
"node-schedule": "^2.1.1",
"octokit": "^4.0.2",
"pino": "^9.1.0",
"pino-pretty": "^11.1.0",
"pino": "^9.2.0",
"pino-pretty": "^11.2.1",
"qrcode": "^1.5.3"
},
"description": "",
Expand All @@ -22,13 +20,13 @@
"@types/express": "^4.17.21",
"@types/node-schedule": "^2.1.7",
"@types/qrcode": "^1.5.5",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"knip": "^5.18.0",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"knip": "^5.25.2",
"npm-check-updates": "^16.14.20",
"prettier": "^3.3.1",
"tsx": "^4.13.2",
"typescript": "^5.4.5"
"prettier": "^3.3.2",
"tsx": "^4.16.2",
"typescript": "^5.5.3"
},
"license": "GPL-3.0",
"main": "src/index.ts",
Expand All @@ -48,4 +46,4 @@
"start": "tsx src/index.ts",
"up": "ncu -u && npm i"
}
}
}
3 changes: 1 addition & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@ export enum DatabaseKeys {
Devs = 'devs',
Blacklist = 'blacklist',
Bday = 'bday',
GuildConfig = 'guildConfig',
ErrorLog = 'errorLog'
GuildConfig = 'guildConfig'
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*import {
import {
AuditLogEvent,
BaseGuildTextChannel,
BaseGuildVoiceChannel,
Expand Down Expand Up @@ -234,4 +234,4 @@ function getDifferentProperties(before: GuildChannel, after: GuildChannel) {
}
return diff;
}, {} as Partial<GuildChannel>);
}*/
}
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export enum Methods {
PUT = 'put'
}

export interface Route {
interface Route {
handler: (req: Request, res: Response) => void;
method: Methods;
route: string;
Expand Down
2 changes: 1 addition & 1 deletion src/struct/CommandHelpEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class CommandHelpEntry {
}
}

export interface SerializedCommandHelpEntry {
interface SerializedCommandHelpEntry {
description: string;
name: string;
usage?: string[];
Expand Down
4 changes: 1 addition & 3 deletions src/struct/discord/Extend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Command } from './types';
}
}

export class ExtendedClient extends Client {
export class CommandClient extends Client {
commands: ExtendedCollection<string, Command>;

constructor(options: ClientOptions) {
Expand All @@ -22,5 +22,3 @@ export class ExtendedClient extends Client {
this.commands = new ExtendedCollection<string, Command>();
}
}

export { ExtendedClient as CommandClient };
2 changes: 0 additions & 2 deletions src/struct/discord/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ export interface Command {
help?: CommandHelpEntry;
execute: (interaction: ChatInputCommandInteraction) => Promise<void>;
}

export type Writable<T> = { -readonly [P in keyof T]: T[P] };

0 comments on commit e6fec4e

Please sign in to comment.