-
Notifications
You must be signed in to change notification settings - Fork 0
/
compiler.es.mjs
79 lines (72 loc) · 1.67 KB
/
compiler.es.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* Asynchronously loads and exports essential modules for various functionalities.
*
* @async
* @returns {Promise<{
* discordwh: discordwh,
* nextchat: nextchat,
* rectify: rectify,
* search: search,
* xio: xio,
* exe: exe
* }>} A Promise resolving to an object containing the loaded modules.
*/
async function load() {
/**
* Imports the Discord Webhook module for sending messages to Discord.
*
* @type {discordwh}
*/
const discordwh = (await import("./lib/discordwh/main.js")).default;
/**
* Imports the NextChat module for interacting with AI chat and image models.
*
* @type {nextchat}
*/
const nextchat = (await import("./lib/nextchat/main.js")).default;
/**
* Imports the Rectify module for building web servers.
*
* @type {rectify}
*/
const rectify = (await import("./lib/rectify/main.js")).default;
/**
* Imports the Search module for various search functionalities.
*
* @type {search}
*/
const search = (await import("./lib/search/main.js")).default;
/**
* Imports the Xio module for making HTTP requests.
*
* @type {xio}
*/
const xio = (await import("./lib/xio/main.js")).default;
/**
* Imports the Exe module for executing code.
*
* @type {exe}
*/
const exe = (await import("./lib/exe/main.js")).default;
return {
discordwh: discordwh,
nextchat: nextchat,
rectify: rectify,
search: search,
xio: xio,
exe: exe
};
}
/**
* Exports the asynchronously loaded modules.
*
* @type {{
* discordwh: discordwh,
* nextchat: nextchat,
* rectify: rectify,
* search: search,
* xio: xio,
* exe: exe
* }}
*/
export default await load();