-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
110 lines (100 loc) · 3.27 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
// setting your list menu on here
const menu = {
main: ['help', 'owner', 'ping', 'quoted', 'nahidatelanjang'],
owner: ['eval', 'exec', 'public'],
convert: ['sticker', 'toimage'],
// group: [
// 'hidetag',
// 'add',
// 'welcome',
// 'leaving',
// 'setprofile',
// 'setname',
// 'linkgroup',
// ],
// download: [''],
// education: [''],
};
const limit = {
free: 15,
premium: 150,
VIP: 'Infinity',
download: {
free: 50000000, // use byte
premium: 350000000, // use byte
VIP: 1130000000, // use byte
},
};
export default {
limit,
menu,
// Set Prefix, Session Name, Database Name and other options here
options: {
public: false,
antiCall: true, // reject call
database: 'database.json', // End .json when using JSON database or use Mongo URI
owner: ['6289509424877'], // set owner number on here
sessionName: 'KioIsHere', // for name session
prefix: /^[°•π÷׶∆£¢€¥®™+✓_=|/~!?@#%^&.©^]/i,
pairingNumber: '', // Example Input : 62xxx
},
// Set pack name sticker on here
Exif: {
packId: 'https://airi.dev',
packName: `AkioPack`,
packPublish: 'KioIsHere',
packEmail: 'yoruakio@proton.me',
packWebsite: 'https://airi.dev',
androidApp:
'https://play.google.com/store/apps/details?id=com.bitsmedia.android.muslimpro',
iOSApp: 'https://apps.apple.com/id/app/muslim-pro-al-quran-adzan/id388389451?|=id',
emojis: [],
isAvatar: 0,
},
// message response awikwok there
msg: {
owner: 'Features can only be accessed owner!',
group: 'Features only accessible in group!',
private: 'Features only accessible private chat!',
admin: 'Features can only be accessed by group admin!',
botAdmin: "Bot is not admin, can't use the features!",
bot: 'Features only accessible by me',
media: 'Reply media...',
query: 'No Query?',
error: 'Seems to have encountered an unexpected error, please repeat your command for a while again',
quoted: 'Reply message...',
wait: 'Wait a minute...',
urlInvalid: 'Url Invalid',
notFound: 'Result Not Found!',
premium: 'Premium Only Features!',
vip: 'VIP Only Features!',
dlFree: `File over ${formatSize(
limit.download.free,
)} can only be accessed by premium users`,
dlPremium: `WhatsApp cannot send files larger than ${formatSize(
limit.download.premium,
)}`,
dlVIP: `WhatsApp cannot send files larger than ${formatSize(
limit.download.VIP,
)}`,
},
};
function formatSize(bytes, si = true, dp = 2) {
const thresh = si ? 1000 : 1024;
if (Math.abs(bytes) < thresh) {
return `${bytes} B`;
}
const units = si
? ['kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
: ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];
let u = -1;
const r = 10 ** dp;
do {
bytes /= thresh;
++u;
} while (
Math.round(Math.abs(bytes) * r) / r >= thresh &&
u < units.length - 1
);
return `${bytes.toFixed(dp)} ${units[u]}`;
}