-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
config.js
107 lines (98 loc) · 2.8 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
let fs = require('fs')
let chalk = require('chalk')
owner = [
['62895330379186'],
['62895330379186'],
['62895330379186', 'Owner', true]
// [number, dia creator/owner?, dia developer?]
] // Put your number here
mods = [] // Want some help?
prems = [] // Premium user has unlimited limit
APIs = { // API Prefix
// name: 'https://website'
nrtm: 'https://nurutomo.herokuapp.com',
xteam: 'https://api.xteam.xyz',
zahir: 'https://zahirr-web.herokuapp.com',
bcil: 'https://75.119.137.248:21587',
neoxr: 'https://api.neoxr.eu.org/',
zeks: 'https://api.zeks.me',
gimez: 'https://masgimenz.my.id/',
melcanz: 'https://melcanz.com',
pencarikode: 'https://pencarikode.xyz',
LeysCoder: 'https://leyscoders-api.herokuapp.com',
restapi: 'https://x-restapi.herokuapp.com'
}
APIKeys = { // APIKey Here
// 'https://website': 'apikey'
'https://api.xteam.xyz': 'apikeyaine',
'https://zahirr-web.herokuapp.com': 'zahirgans',
'https://api.neoxr.eu.org/': 'jVEMyB2ITJ',
'https://api.zeks.me': 'apikeyaine',
'https://pencarikode.xyz': 'pais',
'https://melcanz.com': 'ZZBk7EBb',
'https://leyscoders-api.herokuapp.com': 'dappakntlll',
'https://x-restapi.herokuapp.com': 'BETA'
}
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0
const spack = fs.readFileSync("lib/exif.json")
const stickerpack = JSON.parse(spack)
if (stickerpack.spackname == '') {
var sticker_name = '@ainee_bot'
var sticker_author = 'Aine'
} 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')
})
// Sticker WM
packname = sticker_name
author = sticker_author
wm = '© Aine'
Intervalmsg = 1800 //detik
multiplier = 1000 // The higher, The harder levelup
rpg = {
emoticon(string) {
string = string.toLowerCase()
let emot = {
exp: '✉️',
money: '💵',
potion: '🥤',
diamond: '💎',
common: '📦',
uncommon: '🎁',
mythic: '🗳️',
legendary: '🗃️',
pet: '🎁',
trash: '🗑',
armor: '🥼',
sword: '⚔️',
wood: '🪵',
rock: '🪨',
string: '🕸️',
horse: '🐎',
cat: '🐈' ,
dog: '🐕',
fox: '🦊',
petFood: '🍖',
iron: '⛓️',
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)
})