forked from alphasecio/nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
52 lines (48 loc) · 1.22 KB
/
Copy pathconfig.js
File metadata and controls
52 lines (48 loc) · 1.22 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
const author = "AhmDev";
const m = {
reqKey: {
status: 400,
author,
result: "Parameter ApiKey harus diisi!, Tidak punya ApiKey? chat aja owner dibagian dashboard."
},
err: {
status: 500,
author,
result: "Mohon Maaf, Telah terjadi error pada server. silahkan laporkan error ke owner!"
},
limitm: {
status: 429,
author,
result: "Terlalu banyak permintaan. kamu sudah mencapai 10 limit. silahkan coba lagi dalam 1 menit"
},
limitk: {
status: 429,
author,
result: "Kamu telah mencapai limit. upgrade akun kamu untuk limit yang lebih banyak!"
},
notKey: (key) => ({
status: 401,
author,
result: `Apikey ${key} tidak ditemukan!, Mau ApiKey? chat aja owner dibagian dashboard.`
}),
reqParam: (param) => ({
status: 400,
author,
result: `Parameter ${param} harus diisi!`
}),
res: (result) => ({
status: 200,
author,
result
})
}
const rank = {
free: 100,
basic: 500,
premium: 1000,
vip: 5000,
unlimited: false
}
// PASSWORD UNTUK MENAMBAHKAN APIKEY
const password = "AhmDev";
module.exports = { m, rank, password }