Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 28, 2023
1 parent 54a7f3d commit 0191dd7
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 184 deletions.
2 changes: 2 additions & 0 deletions Target/Application/Discord.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: {};
export default _default;
18 changes: 1 addition & 17 deletions Target/Application/Discord.js
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var discord_js_1 = require("discord.js");
var DISCORD_js_1 = require("../Option/DISCORD.js");
for (var _i = 0, defaultsDiscord_1 = DISCORD_js_1.default; _i < defaultsDiscord_1.length; _i++) {
var _a = defaultsDiscord_1[_i], token = _a.token, options = _a.options, events = _a.events;
if (!options) {
continue;
}
var client = new discord_js_1.Client(options);
for (var _b = 0, _c = events !== null && events !== void 0 ? events : []; _b < _c.length; _b++) {
var _d = _c[_b], name_1 = _d[0], event_1 = _d[1];
client.on(name_1, event_1);
}
client.login(token);
}
exports.default = {};
import{Client as r}from"discord.js";import s from"../Option/DISCORD.js";for(const{token:t,options:o,events:e}of s){if(!o)continue;const n=new r(o);for(const[f,i]of e??[])n.on(f,i);n.login(t)}var m={};export{m as default};
15 changes: 15 additions & 0 deletions Target/Configuration/PM2.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { StartOptions } from "pm2";
export type Apps = StartOptions[];
export type Ecosystem = {
apps: Apps;
};
declare const _default: {
apps: {
name: string;
script: string;
watch: true;
autorestart: true;
force: true;
}[];
};
export default _default;
14 changes: 1 addition & 13 deletions Target/Configuration/PM2.js
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
apps: [
{
name: "discord",
script: "./Target/apps/discord.js",
watch: true,
autorestart: true,
force: true,
},
],
};
var t={apps:[{name:"discord",script:"./Target/apps/discord.js",watch:!0,autorestart:!0,force:!0}]};export{t as default};
1 change: 1 addition & 0 deletions Target/Index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as Discord } from "./Application/Discord.js";
6 changes: 1 addition & 5 deletions Target/Index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Discord = void 0;
var Discord_js_1 = require("./Application/Discord.js");
Object.defineProperty(exports, "Discord", { enumerable: true, get: function () { return Discord_js_1.default; } });
import{default as a}from"./Application/Discord.js";export{a as Discord};
8 changes: 8 additions & 0 deletions Target/Library/Environment.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare const _default: {
DISCORD_APPLICATION_ID: string;
DISCORD_CLIENT_ID: string;
DISCORD_CLIENT_SECRET: string;
DISCORD_PUBLIC_KEY: string;
DISCORD_TOKENS: string;
};
export default _default;
15 changes: 1 addition & 14 deletions Target/Library/Environment.js

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

13 changes: 13 additions & 0 deletions Target/Option/DISCORD.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { ClientOptions } from "discord.js";
export type Client = {
events?: Map<string, (...args: string[]) => Promise<void>>;
options?: ClientOptions;
token?: string;
preflight?: (...args: string[]) => Promise<void>;
};
export type Flight = {
routes: [];
preflight: () => Promise<void>;
};
declare const _default: Client[];
export default _default;
136 changes: 1 addition & 135 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 0191dd7

Please sign in to comment.