-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54a7f3d
commit 0191dd7
Showing
10 changed files
with
44 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare const _default: {}; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as Discord } from "./Application/Discord.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.