-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.js
235 lines (204 loc) ยท 7.93 KB
/
config.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
// S C R I P T O R I B Y @BochilGaming ๐ญ
// M A D E B Y Letta - Sama ๐ฐ
// Credits, jangan dihapus atau diubah!
// - - THANKS TO - -
// โข Allah SWT
// โข Nurutomo
// โข Bochilgaming
// โข Rominaru
// โข Kannachann
// โข The.Sad.Boy01
// โข Rasel comel
// โข Xtreshe (Beban)
// โข Dll
//[!] Jangan Dihapus, mending ditambahin
import { watchFile, unwatchFile } from 'fs'
import chalk from 'chalk'
import { fileURLToPath } from 'url'
import moment from 'moment-timezone'
import fetch from 'node-fetch'
/*============= WAKTU =============*/
let wibh = moment.tz('Asia/Jakarta').format('HH')
let wibm = moment.tz('Asia/Jakarta').format('mm')
let wibs = moment.tz('Asia/Jakarta').format('ss')
let wktuwib = `${wibh} H ${wibm} M ${wibs} S`
let d = new Date(new Date + 3600000)
let locale = 'id'
// d.getTimeZoneOffset()
// Offset -420 is 18.00
// Offset 0 is 0.00
// Offset 420 is 7.00
let weton = ['Pahing', 'Pon', 'Wage', 'Kliwon', 'Legi'][Math.floor(d / 84600000) % 5]
let week = d.toLocaleDateString(locale, { weekday: 'long' })
let date = d.toLocaleDateString(locale, {
day: 'numeric',
month: 'long',
year: 'numeric'
})
/*============== SOCIAL ==============*/
// Kalo ga punya biarin aja, biar ada creditsnya :v
global.sig = 'https://www.instagram.com/oktaofcrill'
global.sgh = 'https://github.com/ChataOfc'
global.sgc = 'https://chat.whatsapp.com/IRRkLJqImnuB6lCjGzyME0'
global.sdc = " "
global.snh = 'https://nhentai.net/g/365296/'
//mwehehe:v
/*============== PAYMENT ==============*/
global.pdana = '085731947500'
global.povo = '-'
global.pgopay = '085731947500'
global.ppulsa = '085731947500'
global.ppulsa2 = '085749543572'
global.psaweria = 'https://saweria.co/oktakc'
global.fetch = (await import('node-fetch'))
/*============== NOMOR ==============*/
global.nomorbot = '62881027834993'
global.nomorown = '6285731947500'
global.namebot = 'YaeMiko'
global.nameown = 'Okta'
/*============== STAFF ==============*/
global.owner = [
['6285731947500', 'Okta๐ฟ!', true]
// [number, dia creator/owner?, dia developer?]
] // Put your number here
global.mods = [] // Want some help?
global.prems = [] // Premium user bukan disini nambahinnya, ketik .addprem @user 10
/*============== API ==============*/
global.APIs = { // API Prefix
// name: 'https://website'
nrtm: 'https://nurutomo.herokuapp.com',
rey: 'https://server-api-rey.herokuapp.com',
xteam: 'https://api.xteam.xyz',
zahir: 'https://zahirr-web.herokuapp.com',
lol: 'https://api.lolhuman.xyz',
dhnjing: 'https://dhnjing.xyz',
neoxr: 'https://neoxr-api.herokuapp.com',
zeks: 'https://api.zeks.me',
pencarikode: 'https://pencarikode.xyz',
ana: 'https://anabotofc.herokuapp.com/',
amel: 'https://melcanz.com',
hardianto: 'https://hardianto.xyz',
botstyle: 'https://botstyle-api.herokuapp.com',
adiisus: 'https://adiixyzapi.herokuapp.com',
LeysCoder: 'https://leyscoders-api.herokuapp.com',
kanx: 'https://kannxapi.herokuapp.com/'
}
global.APIKeys = { // APIKey Here
// 'https://website': 'apikey'
'https://api.xteam.xyz': 'cristian9407',
'https://anabotofc.herokuapp.com/': 'AnaBot',
'https://api.lolhuman.xyz': 'Xynoz',
'https://zahirr-web.herokuapp.com': 'zahirgans',
'https://api.zeks.me': 'apivinz',
'https://pencarikode.xyz': 'pais',
'https://melcanz.com': 'wEDTUsWj',
'https://neoxr-api.herokuapp.com': 'yntkts',
'https://server-api-rey.herokuapp.com': 'apirey',
'https://botstyle-api.herokuapp.com': 'Eyar749L',
'https://hardianto.xyz': 'hardianto',
'https://leyscoders-api.herokuapp.com': 'dappakntlll'
}
// Kata APIKEY itu isi dengan apikey lu sendiri, dengan beli ke website itu
/*============= APIKEY ===============*/
global.bear = 'VBkM7rbU'
global.lolkey = 'yudhasehat'
/*============== WATERMARK ==============*/
global.wm = ' ใ YaeMiko-MD ใโฉ ใ' //Main Watermark
global.wm2 = 'Yaee๐คค'
global.wm3 = 'โซนโซบ สแดแดแดษชแดแด'
global.botdate = `โซนโซบ ๐๐ฎ๐๐ฒ: ${week} ${date}`
global.bottime = `๐ง ๐ ๐ ๐ : ${wktuwib}`
global.titlebot = '๐ฑ โ ๐ฅ๐ฃ๐ Whatsapp สแดแด'
global.author = global.wm
/*============== LOGO ==============*/
global.thumb = 'https://telegra.ph/file/25677558edc61ac8609b6.jpg' //Main Thumbnail
global.thumb2 = 'https://telegra.ph/file/f5f9587a03915b487c56f.jpg'
global.thumbbc = 'https://telegra.ph/file/d7d3f1059f269224c69c0.jpg' //For broadcast
global.giflogo = 'https://telegra.ph/file/6b4b92d088f95aa6a244b.mp4'
global.fla = 'https://www6.flamingtext.com/net-fu/proxy_form.cgi?&imageoutput=true&script=sketch-name&doScale=true&scaleWidth=800&scaleHeight=500&fontsize=100&fillTextType=1&fillTextPattern=Warning!&text='
/*============== TEXT ==============*/
global.wait = '```ใโฐโฐโฐโฑโฑโฑโฑโฑโฑโฑใLoading...```'
global.eror = '```404 error```'
/*=========== TYPE DOCUMENT ===========*/
global.dpptx = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
global.ddocx = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
global.dxlsx = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
global.dpdf = 'application/pdf'
global.drtf = 'text/rtf'
global.thumbdoc = 'https://telegra.ph/file/25677558edc61ac8609b6.jpg'
/*=========== FAKE SIZE ===========*/
global.fsizedoc = '99999999999999' // default 10TB
global.fpagedoc = '999'
/*=========== HIASAN ===========*/
// DEFAULT MENU
global.dmenut = 'โโโ
โโโโฉ' //top
global.dmenub = 'โโข' //body
global.dmenub2 = 'โ' //body for info cmd on Default menu
global.dmenuf = 'โโโโโโโโโโโโฆ' //footer
// COMMAND MENU
global.dashmenu = 'โ
โโโโโโโ
โโ *๐
๐
๐
ข๐
๐
๐
๐
๐
ก๐
* โโโ
โโโโโโโ
'
global.cmenut = 'โโโโโโโใ' //top
global.cmenuh = 'ใโโโโโโ' //header
global.cmenub = 'โโฆ ' //body
global.cmenuf = 'โโโโ
โโโโโโโโเน\n' //footer
global.cmenua = '\nโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ\n ' //after
global.pmenus = 'โ' //pembatas menu selector
global.htki = 'โโโโโโใ' // Hiasan Titile (KIRI)
global.htka = 'ใโโโโโโ' // Hiasan Title (KANAN)
global.lopr = 'โ
' //LOGO PREMIUM ON MENU.JS
global.lolm = 'โ' //LOGO FREE ON MENU.JS
global.htjava = 'โซนโซบ' //hiasan Doang :v
global.hsquere = ['โถ','โ','โซนโซบ']
/*============== STICKER WM ==============*/
global.stickpack = '.'
global.stickauth = `โ๏ธ\nY\na\ne\nM\ni\nk\no\n๐\n๐ข\n๐ง\nโฆ\n\nโซนโซบ Whatsapp BOT\nwa.me/${global.nomorbot}`
global.multiplier = 38 // The higher, The harder levelup
/*============== EMOJI ==============*/
global.rpg = {
emoticon(string) {
string = string.toLowerCase()
let emot = {
level: '๐',
limit: '๐ซ',
health: 'โค๏ธ',
exp: 'โจ',
money: '๐น',
bank: '๐ฆ',
potion: '๐ฅค',
diamond: '๐',
common: '๐ฆ',
uncommon: '๐๏ธ',
mythic: '๐',
legendary: '๐๏ธ',
superior: '๐ผ',
pet: '๐',
trash: '๐',
armor: '๐ฅผ',
sword: 'โ๏ธ',
pickaxe: 'โ๏ธ',
fishingrod: '๐ฃ',
wood: '๐ชต',
rock: '๐ชจ',
string: '๐ธ๏ธ',
horse: '๐ด',
cat: '๐ฑ',
dog: '๐ถ',
fox: '๐ฆ',
petFood: '๐',
iron: 'โ๏ธ',
gold: '๐ช',
emerald: 'โ๏ธ',
upgrader: '๐งฐ'
}
let results = Object.keys(emot).map(v => [v, new RegExp(v, 'gi')]).filter(v => v[1].test(string))
if (!results.length) return ''
else return emot[results[0][0]]
}
}
//------ JANGAN DIUBAH -----
let file = fileURLToPath(import.meta.url)
watchFile(file, () => {
unwatchFile(file)
console.log(chalk.redBright("Update 'config.js'"))
import(`${file}?update=${Date.now()}`)
})