-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
57 lines (48 loc) · 1.72 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
let fs = require('fs')
let chalk = require('chalk')
global.owner = JSON.parse(fs.readFileSync('./src/owner.json')) // Put your number here
global.mods = [] // Want some help?
global.prems = JSON.parse(fs.readFileSync('./src/premium.json')) // Premium user has unlimited limit
global.wait = '```Fuyukai desu....```'
global.APIs = { // API Prefix
// name: 'https://website'
bx: 'https://bx-hunter.herokuapp.com',
hardianto: 'https://hardianto-chan.herokuapp.com',
jonaz: 'https://jonaz-api-v2.herokuapp.com',
neoxr: 'https://neoxr-api.herokuapp.com',
nrtm: 'https://nurutomo.herokuapp.com',
pencarikode: 'https://pencarikode.xyz',
xteam: 'https://api.xteam.xyz',
zahir: 'https://zahirr-web.herokuapp.com',
zekais: 'http://zekais-api.herokuapp.com',
zeks: 'https://api.zeks.xyz',
LeysCoder: 'https://leyscoders-api.herokuapp.com'
}
global.APIKeys = JSON.parse(fs.readFileSync('./src/apikey.json'))
// Sticker WM
const spack = fs.readFileSync("lib/exif.json")
const stickerpack = JSON.parse(spack)
if (stickerpack.spackname == '') {
var sticker_name = '栗山未来'
var sticker_author = 'Kokoronationz × UNX'
} 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
global.multiplier = 69 // The higher, The harder levelup
let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(chalk.redBright("Update 'config.js'"))
delete require.cache[file]
require(file)
})