-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.js
175 lines (155 loc) · 5.13 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
global.util = require('util')
global.fs = require('fs')
global.fetch = require('node-fetch')
global.chalk = require('chalk')
global.os = require('os')
global.moment = require('moment-timezone')
global.axios = require('axios')
global.cheerio = require('cheerio')
global.scrape = require('./lib/scrape')
global.xfr = require('xfarr-api')
global.yzu = require('yuzzu-api')
global.dhn = require('dhn-api')
global.hxz = require('hxz-api')
global.bochil = require('@bochilteam/scraper')
global.baileys = require('@adiwajshing/baileys')
global.owner = JSON.parse(fs.readFileSync('./src/owner.json')) // Change owner number => src/premium.json
global.mods = JSON.parse(fs.readFileSync('./src/moderator.json')) // Moderator?
global.prems = JSON.parse(fs.readFileSync('./src/premium.json')) // Premium user has unlimited limit
global.DeveloperMode = 'false'
global.APIs = { // API Prefix
//======= name: 'https://website' ========//
nrtm: 'https://nurutomo.herokuapp.com',
lolhum: 'https://api.lolhuman.xyz',
hardianto: 'https://hardianto.xyz',
neoxr: 'https://api.neoxr.eu.org',
xteam: 'https://api.xteam.xyz',
zeks: 'https://api.zeks.me',
}
global.APIKeys = { // APIKey Here
//======= 'https://website': 'apikey' =======//
'https://api.lolhuman.xyz': '7ecba1cc37eca2e93d6a983b',
'https://hardianto.xyx': 'hardianto',
'https://api.neoxr.eu.org': 'yourkey',
'https://api.xteam.xyz': 'benniismaelapikey',
'https://api.zeks.me': 'apivinz',
}
//=========== Sticker WM =============//
const spack = fs.readFileSync("lib/exif.json")
const stickerpack = JSON.parse(spack)
if (stickerpack.spackname == '') {
var sticker_name = ''
var sticker_author = '© All Team Bot Discussion'
} else {
var sticker_name = stickerpack.spackname
var sticker_author = stickerpack.sauthor
}
const file_exif = "lib/exif.json"
fs.watchFile(file_exif, () => {
fs.unwatchFile(file_exif)
console.log(chalk.redBright("Update 'exif.json'"))
delete require.cache[file_exif]
require('./lib/exif.json')
})
//=========== Don't Change ============//
global.packname = sticker_name
global.author = sticker_author
//=====================================//
//====== Sticker take(colong stiker:v) ======//
const cpack = fs.readFileSync("lib/colong.json")
const ctickerpack = JSON.parse(cpack)
if (ctickerpack.cpackname == '') {
var colong_name = '© All Team Bot Discussion'
var colong_author = 'Ciss 📸'
} else {
var colong_name = ctickerpack.cpackname
var colong_author = ctickerpack.cauthor
}
const file_colong = "lib/colong.json"
fs.watchFile(file_colong, () => {
fs.unwatchFile(file_colong)
console.log(chalk.redBright("Update 'colong.json'"))
delete require.cache[file_colong]
require('./lib/colong.json')
})
//====================================≠=//
global.pclg = colong_name
global.aclg = colong_author
//======================================//
global.wm = '© All Team Bot Discussion'
global.ucpn = ''
//================= Url =================//
global.linkgc = 'https://chat.whatsapp.com/CUCsW6BWfmJLJwJgPQIaKM'
global.linkig = 'https://www.instagram.com/p/CH1A1c9J5pY/?utm_medium=copy_link'
global.linkyt = ''
global.linkfb = 'https://fb.watch/aYv0jAffAO'
global.web = 'https://raselcomel.github.io'
global.web1 = 'https://anu.rasell.repl.co'
global.deslink = ''
global.titlink = 'Folllow me on Instagram'
global.bodlink = '© All Team Bot Discussion'
//========= Url Template Button =========//
global.dtu = 'Group Bot WhatsApp'
global.urlnya = 'https://chat.whatsapp.com/CUCsW6BWfmJLJwJgPQIaKM'
//========= Call Template Button =========//
global.dtc = 'Add Me'
global.nmbrnya = '+62 822-5604-8971'
//============ Proses Bot ============//
global.wait = 'Tunggu sebentar ya sayang'
global.eror = 'Maaf terjadi kesalahan, silahkan coba lagi nanti'
//========== Tampilan Bot ===========//
global.sa = '╭─'
global.gx = '│✇'
global.gy = '│•'
global.gz = '│'
global.sb = '╰────࿐'
global.kki = '「'
global.kka = '」'
global.zt = '*'
global.zc = ''
global.lim ='Ⓛ'
global.prem = 'Ⓟ'
//======== Fake Size ========//
global.fsx = 999999999999 //fake size foto/video
global.fsdx = 9999999999999 //fake size document
global.pcdx = 999999999999 // fake page count document
global.versibot = '^0.0.4'
global.multiplier = 69 // The higher, The harder levelup
global.rpg = {
emoticon(string) {
string = string.toLowerCase()
let emot = {
exp: '✉️',
money: '💵',
potion: '🥤',
diamond: '💎',
common: '📦',
uncommon: '🎁',
mythic: '🗳️',
legendary: '🗃️',
pet: '🎁',
sampah: '🗑',
armor: '🥼',
sword: '⚔️',
kayu: '🪵',
batu: '🪨',
string: '🕸️',
kuda: '🐎',
kucing: '🐈' ,
anjing: '🐕',
petFood: '🍖',
gold: '👑',
emerald: '💚'
}
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]]
}
}
let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(chalk.redBright("Update 'config.js'"))
delete require.cache[file]
require(file)
})