ahegao 1.69.276 → 1.69.277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +0 -3
- package/dist/index.js +12 -146
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TextCompLookupMap } from "./types/classes";
|
|
2
1
|
export * from "./structures/structs";
|
|
3
2
|
export * from "./types/classes";
|
|
4
3
|
export * from "./types/modular_tasker_classes";
|
|
@@ -9,5 +8,3 @@ export * from "./types/discord_fields";
|
|
|
9
8
|
export * from "./types/discord_types";
|
|
10
9
|
export * from "./utils/discord-util";
|
|
11
10
|
export * from "./utils/util";
|
|
12
|
-
export declare function createTextCompLookup(): TextCompLookupMap;
|
|
13
|
-
export declare function generateDMIntroMessages(): string[];
|
package/dist/index.js
CHANGED
|
@@ -14,10 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.createTextCompLookup = createTextCompLookup;
|
|
18
|
-
exports.generateDMIntroMessages = generateDMIntroMessages;
|
|
19
|
-
const classes_1 = require("./types/classes");
|
|
20
|
-
const fields_1 = require("./types/fields");
|
|
21
17
|
const util_1 = require("./utils/util");
|
|
22
18
|
__exportStar(require("./structures/structs"), exports);
|
|
23
19
|
__exportStar(require("./types/classes"), exports);
|
|
@@ -29,148 +25,18 @@ __exportStar(require("./types/discord_fields"), exports);
|
|
|
29
25
|
__exportStar(require("./types/discord_types"), exports);
|
|
30
26
|
__exportStar(require("./utils/discord-util"), exports);
|
|
31
27
|
__exportStar(require("./utils/util"), exports);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
`I'm a ${minAge}-${maxAge} year old girl (somewhere between there)`,
|
|
45
|
-
`I'm a somewhere between ${minAge} and ${maxAge} year old girl`,
|
|
46
|
-
`I'm a ${minAge} to ${maxAge} (don't wanna share my specific age) year old girl`,
|
|
47
|
-
]));
|
|
48
|
-
lookup.set("age_intro", (0, util_1.makeWeightedTextCompMap)([
|
|
49
|
-
{
|
|
50
|
-
text: "[age_info]",
|
|
51
|
-
children: [
|
|
52
|
-
"that loves creativity~ Whether it's something created by others, or by me~!",
|
|
53
|
-
"that loves everything creative~ Whether it's something created by others, or by me~!",
|
|
54
|
-
"that loves all sorts of creativity~! Whether it's something created by others, or by me~!",
|
|
55
|
-
"that loves and makes everything creative~",
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
]));
|
|
59
|
-
lookup.set("creative_things_list", (0, util_1.makeWeightedTextCompMap)([
|
|
60
|
-
{
|
|
61
|
-
continueToChildOnFail: true,
|
|
62
|
-
text: "Music,",
|
|
63
|
-
children: {
|
|
64
|
-
continueToChildOnFail: true,
|
|
65
|
-
text: "Bracelets,",
|
|
66
|
-
children: {
|
|
67
|
-
continueToChildOnFail: true,
|
|
68
|
-
text: "Dresses,",
|
|
69
|
-
children: {
|
|
70
|
-
continueToChildOnFail: true,
|
|
71
|
-
text: "Images,",
|
|
72
|
-
chance: 0.5,
|
|
73
|
-
children: {
|
|
74
|
-
continueToChildOnFail: true,
|
|
75
|
-
text: "Programs,",
|
|
76
|
-
chance: 0.5,
|
|
77
|
-
children: {
|
|
78
|
-
continueToChildOnFail: true,
|
|
79
|
-
text: "Renders,",
|
|
80
|
-
chance: 0.5,
|
|
81
|
-
children: [
|
|
82
|
-
"even Games sometimes!",
|
|
83
|
-
"Games, etc~!",
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
]));
|
|
92
|
-
lookup.set("creative_things_intro", (0, util_1.makeWeightedTextCompMap)([
|
|
93
|
-
"There's plenty of variety between all the things I create, some of which are: [creative_things_list]",
|
|
94
|
-
"I make all sorts of things! Some of which are: [creative_things_list]",
|
|
95
|
-
"I really enjoy creating all sorts of things, such as: [creative_things_list]",
|
|
96
|
-
"I create a lot of things! Some of which are: [creative_things_list]",
|
|
97
|
-
]));
|
|
98
|
-
lookup.set("mlp_gen4", (0, util_1.makeWeightedTextCompMap)([
|
|
99
|
-
"Ponies (My Little Pony: Friendship is Magic)",
|
|
100
|
-
"Ponies (MLP: Friendship is Magic)",
|
|
101
|
-
"My Little Pony: Friendship is Magic",
|
|
102
|
-
"My Little Pony Generation 4 (Friendship is Magic)",
|
|
103
|
-
]));
|
|
104
|
-
lookup.set("hobbies_intro", (0, util_1.makeWeightedTextCompMap)([
|
|
105
|
-
"I have a Bunch of things I love super much, but the ones that shaped and still do shape me most are: Ponies (My Little Pony: Friendship is Magic), Music, and Nature~!",
|
|
106
|
-
]));
|
|
107
|
-
lookup.set("relationship_intro", (0, util_1.makeWeightedTextCompMap)([
|
|
108
|
-
"I really enjoy making close-knit relationships - my friends are my world~!",
|
|
109
|
-
"I really enjoy making close-knit relationships - my friends mean the world to me~!",
|
|
110
|
-
"I cherish close-knit relationships - my friends are my world~!",
|
|
111
|
-
"I cherish close-knit relationships - my friends mean the world to me~!",
|
|
112
|
-
"I strive to have close-knit relationships - my friends are my world~!",
|
|
113
|
-
"I strive to have close-knit relationships - my friends mean the world to me~!",
|
|
114
|
-
]));
|
|
115
|
-
lookup.set("dream_intro", (0, util_1.makeWeightedTextCompMap)([
|
|
116
|
-
"My dream is to have a close-knit group of friends that mean the world to me~ ^-^",
|
|
117
|
-
]));
|
|
118
|
-
lookup.set("server_intro", (0, util_1.makeWeightedTextCompMap)([
|
|
119
|
-
"[hi]\n\n[age_intro]\n\n[creative_things_intro]\n\n[hobbies_intro]\n\n[relationship_intro]\n\n[dream_intro]",
|
|
120
|
-
]));
|
|
121
|
-
lookup.set("amogus_or_space", (0, util_1.makeWeightedTextCompMap)([
|
|
122
|
-
// {
|
|
123
|
-
// text: AMOGUS,
|
|
124
|
-
// weight: 1,
|
|
125
|
-
// },
|
|
126
|
-
// {
|
|
127
|
-
// text: "\n\n",
|
|
128
|
-
// weight: 0.25,
|
|
129
|
-
// },
|
|
130
|
-
{
|
|
131
|
-
text: " ",
|
|
132
|
-
weight: 1,
|
|
133
|
-
},
|
|
134
|
-
]));
|
|
135
|
-
lookup.set("dm_i_saw_you", (0, util_1.makeWeightedTextCompMap)([
|
|
136
|
-
{
|
|
137
|
-
text: "[amogus_or_space]",
|
|
138
|
-
children: [
|
|
139
|
-
{
|
|
140
|
-
text: "I saw you on the server",
|
|
141
|
-
children: [
|
|
142
|
-
{
|
|
143
|
-
text: "and",
|
|
144
|
-
children: [
|
|
145
|
-
"you seemed nice c:",
|
|
146
|
-
"wanted to say hi~!",
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
]));
|
|
154
|
-
lookup.set("dm_intro", (0, util_1.makeWeightedTextCompMap)([
|
|
155
|
-
"[hi][dm_i_saw_you]",
|
|
156
|
-
]));
|
|
157
|
-
return lookup;
|
|
158
|
-
}
|
|
159
|
-
const textCompLookup = createTextCompLookup();
|
|
160
|
-
const serverIntroTextComp = new classes_1.TextComp({ text: "[server_intro]" });
|
|
161
|
-
const dmIntroTextComp = new classes_1.TextComp({ text: "[dm_intro]" });
|
|
162
|
-
function generateDMIntroMessages() {
|
|
163
|
-
return dmIntroTextComp.generate(textCompLookup).split(fields_1.AMOGUS).map(message => message.trim());
|
|
164
|
-
}
|
|
165
|
-
if ((0, util_2.isLibTs)()) {
|
|
166
|
-
for (let i = 0; i < 100; ++i) {
|
|
167
|
-
const messages = generateDMIntroMessages();
|
|
168
|
-
let m = 0;
|
|
169
|
-
for (const message of messages) {
|
|
170
|
-
console.log(`[${++m}]: ${message}`);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
28
|
+
// import { isLibTs } from "./utils/util"
|
|
29
|
+
// if(isLibTs())
|
|
30
|
+
// {
|
|
31
|
+
// for(let i = 0; i < 100; ++i)
|
|
32
|
+
// {
|
|
33
|
+
// let m = 0
|
|
34
|
+
// for(const message of messages)
|
|
35
|
+
// {
|
|
36
|
+
// console.log(`[${++m}]: ${message}`)
|
|
37
|
+
// }
|
|
38
|
+
// }
|
|
39
|
+
// }
|
|
174
40
|
//━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━
|
|
175
41
|
process.on("uncaughtException", (err) => {
|
|
176
42
|
(0, util_1.logCrash)(normalizeError(err), "uncaughtException");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAiD;AAEjD,uDAAoC;AACpC,kDAA+B;AAC/B,iEAA8C;AAC9C,iDAA8B;AAC9B,gDAA6B;AAC7B,0DAAuC;AACvC,yDAAsC;AACtC,wDAAqC;AACrC,uDAAoC;AACpC,+CAA4B;AAE5B,yCAAyC;AACzC,gBAAgB;AAChB,IAAI;AACJ,mCAAmC;AACnC,QAAQ;AACR,oBAAoB;AAEpB,yCAAyC;AACzC,YAAY;AACZ,kDAAkD;AAClD,YAAY;AACZ,QAAQ;AACR,IAAI;AAEJ,0CAA0C;AAE1C,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,GAAG,EAAE,EAAE;IAEpC,IAAA,eAAQ,EAAC,cAAc,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAA;AACtD,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,EAAE;IAExC,IAAA,eAAQ,EAAC,cAAc,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC,CAAA;AAC1D,CAAC,CAAC,CAAA;AAEF,SAAS,cAAc,CAAC,KAAc;IAElC,IAAI,KAAK,YAAY,KAAK,EAC1B,CAAC;QACG,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,OAAO,IAAI,KAAK,CAEZ,OAAO,KAAK,KAAK,QAAQ;QACrB,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,IAAA,eAAQ,EAAC,KAAK,CAAC,CACxB,CAAA;AACL,CAAC"}
|