-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
308 lines (270 loc) · 7.07 KB
/
main.js
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
const config = require("./configure")
const fs = require("fs")
// INFO: Adding commands
// INFO: Admin Commands
config.addCommand({
name: "Admin Command List",
description: "Just a helpdesk for admins",
script: "admin",
category: "onetime",
command: "admin",
admin: true
})
config.addCommand({
name: "AI Toggle",
description: "This is to toggle the AI auto chat",
script: "ai",
command: "ai",
admin: true
})
config.addCommand({
name: "Bot Status checker",
description: "Just to check if the bot is still alive or not",
script: "check",
command: "check",
admin: true
})
config.addCommand({
name: "Gender Configuration",
description: "This is to add the user's gender to the dataset",
script: "gender",
command: "gender ([\\w]+) as ([m|f]+)",
hint: [
"gender this as [male | female] <message_reply>",
"gender [name] as [male | female]"
],
message_type: [
"message",
"message_reply"
],
admin: true
})
config.addCommand({
name: "Message Pin",
description: "A command to pin a specific message through message reply",
script: "pin",
command: "pin",
prefix: "_",
message_type: [
"message",
"message_reply",
],
admin: true
})
config.addCommand({
name: "Name changer",
description: "This is to easily change the bot nickname for AI command",
script: "name",
command: "name as ([\\w]+)",
hint: [
"name as [new bot nickname]"
],
admin: true
})
config.addCommand({
name: "Prefix changer",
description: "A command to change the current prefix of the bot",
script: "prefix",
command: "prefix ([\\W]+)",
hint: [
"prefix [any symbol exept backslash]"
],
admin: true
})
config.addCommand({
name: "Status toggler",
description: "A command to toggle or switch the bot on and off",
script: "toggle",
command: "toggle",
admin: true
})
config.addCommand({
name: "Unsent a message",
description: "A command where it unsents the message that the bot sent",
script: "unsent",
command: "remove_message",
admin: true
})
// NOTE: End of admin commands
// INFO: Start of game commands
config.addCommand({
name: "Answer to a game",
description: "This program will only trigger once you activate one of the games",
script: "answer",
command: "answer ([\\w\\W]+)",
hint: [
"answer [your answer]"
],
category: "game"
})
config.addCommand({
name: "Ball Drop",
description: "A game similar to ball drop",
script: "dropball",
command: "drop ([1-5]+)",
hint: [
"drop [a number from 1 to 5]"
]
})
config.addCommand({
name: "Filipino Riddles",
description: "A filipino based riddles powered by the contributors online",
script: "bugtong",
command: "bugtong",
category: "game"
})
config.addCommand({
name: "Jack 'n Poy",
description: "A filipino game also known as Rock, Paper, Scissors",
script: "jnp",
command: "jnp ([r | p | s]+)",
hint: [
"jnp [choice] (choice must be r, p, and s where r is for rock, p is for paper and s is for scissors)"
]
})
config.add({
name: "Roll dice",
description: "Roll a dice between you and an opponent",
script: "dice",
command: "dice",
hint: [
"dice (for vs computer)",
"dice <message_reply> (for vs a human)"
],
message_type: [
"message",
"message_reply"
]
})
// NOTE: End of games command
// INFO: All user's Commands
config.addCommand({
name: "Help desk",
description: "A command for introduction and showing all list commands available for all users",
script: "info",
category: "onetime",
command: "help"
})
config.addCommand({
name: "Audio Verse",
description: "A audio based verse powered by Biblegateway",
script: "audioverse",
category: "theology",
command: "audioverse ([\\w]+) ([\\d]+)",
hint: [
"audioverse [bookname] [chapter]"
]
})
config.addCommand({
name: "Baybayin Transliterator",
description: "A command that transliterate the normal alplabet into baybayin. Please make sure you translate the word from a language into tagalog",
script: "baybayin",
category: "education",
command: "baybay ([\\w\\W]+)",
hint: "baybay [word or phrase]"
})
config.addCommand({
name: "Bible verse",
description: "A bible verse command powered by Biblegateway",
script: "Biblegateway",
category: "theology",
command: "verse ([\\w]+) "
})
config.addCommand({
name: "Facebook stalker",
description: "A command where it gives some initial information about to someone. Please note that you need to use this command responsively, don't abuse",
script: "fb",
category: "multimedia",
command: "fb ([\\w\\W]+)",
hint: [
"fb this <message_reply>",
"fb [username]",
"fb [facebook id]",
"fb [facebook name] (But not accurate)"
],
message_type: [
"message",
"message_reply"
]
})
config.addCommand({
name: "Games lists",
description: "A command that shows all the games and its commands to use.",
script: "game",
command: "games",
category: "onetime"
})
config.addCommand({
name: "Google Gemini Image Recognizer",
description: "An AI based program where it describe the image powered by Google",
script: "gemini",
category: "education",
command: "analyze ([\\w\\w]+)",
hint: [
"analyze [prompt]",
"analyze this image"
],
message_type: [
"message_reply"
]
})
command.addCommand({
name: "Google Search Engine",
description: "A powerful search engine powered by Google",
script: "google",
category: "education",
command: "search ([\\w\\W]+)",
hint: [
"google [anything you want to search]"
]
})
config.addCommand({
name: "Guitar Chords",
description: "A guitar chords provider command powered by tabs ultimate-guitar",
script: "guitar",
category: "multimedia",
command: "chords ([\\w\\W]+)",
hint: [
"chords [song title]",
"chords [song title with singer]"
]
})
config.addCommand({
name: "Message show pin",
description: "A command that shows the current pinned message in a thread pinned by the admin",
script: "pin",
command: "pin",
category: "dump"
})
config.addCommand({
name: "Not Gonna Lie",
description: "A command for sending a secret message to someone using their ngl username or link",
script: "ngl",
category: "multimedia",
command: "ngl ([\\w]+) ([\\w\\W]+)",
hint: "ngl [username] [message]"
})
config.addCommand({
name: "Youtube Music",
description: "A music command powered by Youtube Music API and YTDL",
script: "music1",
category: "multimedia",
command: "music ([\\w\\W]+)",
hint: [
"music [song title]",
"music [song title] [singer]",
"music [youtube url]"
]
})
// NOTE: End of user commands
config.setAdminGC("7045133965567738")
config.setOptions({
listenEvents: true,
selfListen: true,
forceLogin: true,
autoReconnect: true,
logLevel: "silent",
updatePresence: true,
userAgent: "Mozilla/5.0 (Linux; Android 11; itel P651L Build/RP1A.201005.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.179 Mobile Safari/537.36[FBAN/EMA;FBLC/en_GB;FBAV/399.0.0.16.120;]"
})
config,main(JSON.parse(fs.readFileSync("setup/asset.json", "utf8")))