forked from raseldev18/mymd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
136 lines (129 loc) · 4.3 KB
/
config.js
File metadata and controls
136 lines (129 loc) · 4.3 KB
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
let fs = require('fs')
//============== Data jid =============//
global.owner = JSON.parse(fs.readFileSync('./src/owner.json')) // Change/add owner number => src/owner.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
//====== Needed in plugin/update.js ======//
global.repox = 'alyatzy/RxR-Bot'
global.branx = 'master'
//=========== Watermark & Url ==========//
global.wm = '©alya'
global.wmtitle = '🌹 alyatzy ⚚'
global.wmbody = '🍃 alyatzy ཽ ྀ ྭ ྱ ྲ ཻ'
global.wmlink = 'https://wa.me/62895324080019'
global.linkgc = 'https://chat.whatsapp.com/HwjoGIhIUb89hhiiHII9kk'
global.linkmed = 'https://www.instagram.com/p/CH1A1c9J5pY/?utm_medium=copy_link'
//=========== Process Bot ============//
global.wait = 'Tunggu sebentar ya sayang'
global.eror = 'Maaf terjadi kesalahan, silahkan coba lagi nanti'
//========= Url Template Button =========//
global.dTux = 'WHATSAPP'
global.uRlx = 'wa.me/62895324080019' //''
//========= Call Template Button =========//
global.dTcx = 'click'
global.nUmx = 'i love you'
//================ Buttons ================//
global.bTnx = [['DASHBOARD', '.say blum pasang:v']] //buttons map
global.mediaMenu = 'https://telegra.ph/file/505b2a03d98bb3b8680e7.jpg'
global.lIm = 'Ⓛ'
global.pRm = 'Ⓟ'
global.uRl = 'Ⓤ'
global.tXt = 'Ⓣ'
global.nUm = 'Ⓝ'
global.qRy = 'Ⓠ'
global.uSr = '@Ⓤ'
global.oPs = 'Ⓞ'
global.APIs = { // API Prefix
//======= name: 'https://website' ========//
nrtm: 'https://nurutomo.herokuapp.com',
lolhum: 'https://api.lolhuman.xyz',
xteam: 'https://api.xteam.xyz',
violet: 'https://violetics.pw'
}
global.APIKeys = { // APIKey Here
//======= 'https://website': 'apikey' =======//
'https://api.lolhuman.xyz': 'Papah-Chan',
'https://api.xteam.xyz': 'benniismaelapikey',
'https://violetics.pw': '0b55-fada-712f'
}
//=========== Sticker WM =============//
const spack = fs.readFileSync("lib/exif.json")
const stickerpack = JSON.parse(spack)
if (stickerpack.spackname == '') {
var sticker_name = ''
var sticker_author = ' \n🔥 @alyatzy'
} 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')
})
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 = 'sikilinsut olang nylong tikell'
var colong_author = 'Ciss 📸\n\n\n\n\n\n\n\n\n\n\n\n@alyatzy'
} 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
//======== Fake Size ========//
global.fsx = 9999999999999 //fake size foto/video
global.fsdx = 9999999999999 //fake size document
global.pcdx = 9999999999999 // fake page count document
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)
})