-
Notifications
You must be signed in to change notification settings - Fork 36
/
config.js
230 lines (201 loc) · 7.65 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
// 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)
// • GOPALA5U (BASE)
// • V4LL (RECODE)
// • Dll
//[!] Jangan Dihapus, mending ditambahin
import { watchFile, unwatchFile } from 'fs'
import chalk from 'chalk'
import { fileURLToPath } from 'url'
import moment from 'moment-timezone'
/*============= 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 ==============*/
// Wajib diisi ya kak!, kalo ga punya biarin aja, biar ada creditsnya :v
global.sig = 'https://www.instagram.com/nvkenn_'
global.sgh = 'https://github.com/nvhitori'
global.sgc = 'https://chat.whatsapp.com/KL2YTdMq2np6QIhas42RCa'
global.sdc = " "
global.snh = 'https://xhitori.my.id'
/*============== PAYMENT ==============*/
global.pdana = '082125276167'
global.povo = '_'
global.pgopay = '_'
global.ppulsa = '082125276167'
global.ppulsa2 = '082125276167'
global.psaweria = 'https://saweria.co/nvkenn'
/*============== NOMOR ==============*/
global.nomorbot = '6281323870860'
global.nomorown = '6282125276167'
global.namebot = 'XHITORI'
global.nameown = 'V4LL'
/*============== STAFF ==============*/
global.owner = [
['6282125276167', 'V4LL', 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
global.xkey = 'APIKEYMU'
/*============== 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',
xgr4m: 'https://api.xgr4mteam.repl.co',
adiisus: 'https://adiixyzapi.herokuapp.com',
males: 'https://malesin.xyz'
}
global.APIKeys = { // APIKey Here
// 'https://website': 'apikey'
'https://api.xteam.xyz': 'NezukoTachibana281207',
'https://anabotofc.herokuapp.com/': 'AnaBot',
'https://api.lolhuman.xyz': 'a70fe5fb01ea65b6bb350009',
'https://zahirr-web.herokuapp.com': 'zahirgans',
'https://api.zeks.me': 'apivinz',
'https://pencarikode.xyz': 'pais',
'https://melcanz.com': 'melcantik',
'https://neoxr-api.herokuapp.com': 'yntkts',
'https://server-api-rey.herokuapp.com': 'apirey',
'https://api.xgr4mteam.repl.co': 'xgram',
'https://hardianto.xyz': 'hardianto',
'https://leyscoders-api.herokuapp.com': 'dappakntlll'
}
// Kata APIKEY itu isi dengan apikey lu sendiri, dengan beli ke website itu
/*============== WATERMARK ==============*/
global.wm = ' 「 X H 1 T O R I シ」' //Main Watermark
global.wm2 = '𝐗𝐇𝐈𝐓𝐎𝐑𝐈'
global.wm3 = '❖ ʜɪᴛᴏʀɪ'
global.botdate = `⫹⫺ 𝗗𝗮𝘁𝗲: ${week} ${date}`
global.bottime = `𝗧 𝗜 𝗠 𝗘 : ${wktuwib}`
global.titlebot = '✨┊ XH1TORI '
global.author = global.wm
/*============== LOGO ==============*/
global.thumb = 'https://telegra.ph/file/bd7978378d54c0fc3afe5.jpg' //Main Thumbnail
global.thumb2 = 'https://telegra.ph/file/08d17dcfd4078ec39dc98.jpg'
global.thumbbc = 'https://telegra.ph/file/1e562c9d8ef1d3ac6e626.jpg' //For broadcast
global.giflogo = 'https://telegra.ph/file/a46ab7fa39338b1f54d5a.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/1e562c9d8ef1d3ac6e626.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 = '┅━━━━━═┅═❏ *DASHBOARD* ❏═┅═━━━━━┅'
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 = 'XH1TORI'
global.stickauth = `シ`
global.multiplier = 38 // The higher, The harder levelup
/*============== EMOJI ==============*/
global.rpg = {
emoticon(string) {
string = string.toLowerCase()
let emot = {
level: '📊',
limit: '🎫',
health: '❤️',
stamina: '🔋',
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()}`)
})