Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Jan 1, 2024
1 parent 07e95ed commit 85cdc6a
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 200 deletions.
4 changes: 2 additions & 2 deletions Source/Configuration/PM2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type Ecosystem = {
apps: Apps;
};

export default ({
export default {
apps: [
{
name: "discord",
Expand All @@ -16,4 +16,4 @@ export default ({
force: true,
},
],
} satisfies Ecosystem);
} satisfies Ecosystem;
4 changes: 2 additions & 2 deletions Source/Option/DISCORD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Clients: Client[] = [

if (!DISCORD_PUBLIC_KEY) {
throw new Error(
"The DISCORD_TOKEN environment variable is required.",
"The DISCORD_TOKEN environment variable is required."
);
}

Expand All @@ -72,7 +72,7 @@ export const Clients: Client[] = [

async function registerGlobalCommands() {
await registerCommands(
`https://discord.com/api/v10/applications/${applicationId}/commands`,
`https://discord.com/api/v10/applications/${applicationId}/commands`
);
}

Expand Down
11 changes: 1 addition & 10 deletions Target/Application/Discord.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Target/Configuration/PM2.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { StartOptions } from "pm2";
export type Apps = StartOptions[];
export type Ecosystem = {
apps: Apps;
apps: Apps;
};
declare const _default: {
apps: {
name: string;
script: string;
watch: true;
autorestart: true;
force: true;
}[];
apps: {
name: string;
script: string;
watch: true;
autorestart: true;
force: true;
}[];
};
export default _default;
13 changes: 1 addition & 12 deletions Target/Configuration/PM2.js
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
var t = {
apps: [
{
name: "discord",
script: "./Target/apps/discord.js",
watch: !0,
autorestart: !0,
force: !0,
},
],
};
export { t as default };
var t={apps:[{name:"discord",script:"./Target/apps/discord.js",watch:!0,autorestart:!0,force:!0}]};export{t as default};
3 changes: 1 addition & 2 deletions Target/Index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import { default as a } from "./Application/Discord.js";
export { a as Discord };
import{default as a}from"./Application/Discord.js";export{a as Discord};
102 changes: 27 additions & 75 deletions Target/Library/Environment.d.ts
Original file line number Diff line number Diff line change
@@ -1,76 +1,28 @@
export declare const object: <T extends import("zod").ZodRawShape>(
shape: T,
params?: import("zod").RawCreateParams,
) => import("zod").ZodObject<
T,
"strip",
import("zod").ZodTypeAny,
{
[k_1 in keyof import("zod").objectUtil.addQuestionMarks<
import("zod").baseObjectOutputType<T>,
{
[k in keyof import("zod").baseObjectOutputType<T>]: undefined extends import("zod").baseObjectOutputType<T>[k]
? never
: k;
}[keyof T]
>]: import("zod").objectUtil.addQuestionMarks<
import("zod").baseObjectOutputType<T>,
{
[k_2 in keyof import("zod").baseObjectOutputType<T>]: undefined extends import("zod").baseObjectOutputType<T>[k_2]
? never
: k_2;
}[keyof T]
>[k_1];
},
{
[k_2 in keyof import("zod").baseObjectInputType<T>]: import("zod").baseObjectInputType<T>[k_2];
}
>,
string: (
params?:
| ({
errorMap?: import("zod").ZodErrorMap | undefined;
invalid_type_error?: string | undefined;
required_error?: string | undefined;
description?: string | undefined;
} & {
coerce?: true | undefined;
})
| undefined,
) => import("zod").ZodString;
declare const _default: import("zod").ZodObject<
{
DISCORD_APPLICATION_ID: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_CLIENT_ID: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_CLIENT_SECRET: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_PUBLIC_KEY: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
DISCORD_TOKENS: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
},
"strip",
import("zod").ZodTypeAny,
{
DISCORD_APPLICATION_ID: string;
DISCORD_CLIENT_ID: string;
DISCORD_CLIENT_SECRET: string;
DISCORD_PUBLIC_KEY: string;
DISCORD_TOKENS: string;
},
{
DISCORD_APPLICATION_ID?: string | undefined;
DISCORD_CLIENT_ID?: string | undefined;
DISCORD_CLIENT_SECRET?: string | undefined;
DISCORD_PUBLIC_KEY?: string | undefined;
DISCORD_TOKENS?: string | undefined;
}
>;
export declare const object: <T extends import("zod").ZodRawShape>(shape: T, params?: import("zod").RawCreateParams) => import("zod").ZodObject<T, "strip", import("zod").ZodTypeAny, { [k_1 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<T>, { [k in keyof import("zod").baseObjectOutputType<T>]: undefined extends import("zod").baseObjectOutputType<T>[k] ? never : k; }[keyof T]>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<T>, { [k_2 in keyof import("zod").baseObjectOutputType<T>]: undefined extends import("zod").baseObjectOutputType<T>[k_2] ? never : k_2; }[keyof T]>[k_1]; }, { [k_2 in keyof import("zod").baseObjectInputType<T>]: import("zod").baseObjectInputType<T>[k_2]; }>, string: (params?: ({
errorMap?: import("zod").ZodErrorMap | undefined;
invalid_type_error?: string | undefined;
required_error?: string | undefined;
description?: string | undefined;
} & {
coerce?: true | undefined;
}) | undefined) => import("zod").ZodString;
declare const _default: import("zod").ZodObject<{
DISCORD_APPLICATION_ID: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_CLIENT_ID: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_CLIENT_SECRET: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_PUBLIC_KEY: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
DISCORD_TOKENS: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
}, "strip", import("zod").ZodTypeAny, {
DISCORD_APPLICATION_ID: string;
DISCORD_CLIENT_ID: string;
DISCORD_CLIENT_SECRET: string;
DISCORD_PUBLIC_KEY: string;
DISCORD_TOKENS: string;
}, {
DISCORD_APPLICATION_ID?: string | undefined;
DISCORD_CLIENT_ID?: string | undefined;
DISCORD_CLIENT_SECRET?: string | undefined;
DISCORD_PUBLIC_KEY?: string | undefined;
DISCORD_TOKENS?: string | undefined;
}>;
export default _default;
11 changes: 1 addition & 10 deletions Target/Library/Environment.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 7 additions & 9 deletions Target/Option/DISCORD.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
export declare const DISCORD_APPLICATION_ID: string,
DISCORD_PUBLIC_KEY: string,
DISCORD_TOKENS: string;
export declare const DISCORD_APPLICATION_ID: string, DISCORD_PUBLIC_KEY: string, DISCORD_TOKENS: string;
export declare const Tokens: string[];
export type Client = {
events?: Map<string, (...args: string[]) => Promise<void>>;
options?: ClientOptions;
token?: string;
preflight?: (...args: string[]) => Promise<void>;
events?: Map<string, (...args: string[]) => Promise<void>>;
options?: ClientOptions;
token?: string;
preflight?: (...args: string[]) => Promise<void>;
};
export type Flight = {
routes: [];
preflight: () => Promise<void>;
routes: [];
preflight: () => Promise<void>;
};
export declare const Clients: Client[];
declare const _default: Client[];
Expand Down
71 changes: 1 addition & 70 deletions Target/Option/DISCORD.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85cdc6a

Please sign in to comment.