-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathconfig.js
More file actions
101 lines (96 loc) · 4.54 KB
/
config.js
File metadata and controls
101 lines (96 loc) · 4.54 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
import Func from './lib/function.js'
import {
fileURLToPath
} from 'url'
/** write down your menu here */
const menu = {
admin: ['hidetag', 'add', 'welcome', 'leaving', 'setpp', 'setname', 'tagall', 'kick', 'promote', 'demote'],
converter: ['sticker', 'toimg', 'togif', 'qc', 'ttp', 'attp', 'emojimix'],
downloader: ['tiktok', 'tikwm', 'tikmp3', 'facebook', 'instagram', 'igstory', 'twitter', 'threads', 'play', 'ytmp3', 'ytmp4', 'capcut', 'capcutwm', 'cocofun', 'douyin', 'douyinwm', 'douyinmp3', 'likee', 'likeewm', 'pindl'],
effect: ['paretro', 'retrolga', 'plumy', 'hdr', 'sepia', 'duotone', 'blackwhite', 'sketch', 'sketchrill', 'oils', 'esragan', 'watercolor', 'galaxy', 'freplace', 'rainbow', 'solarize', 'pinkbir'],
fun: ['apakah', 'siapakah', 'kapankah', 'rate', 'benarkah', 'bisakah'],
group: ['afk', 'linkgroup', 'delete', 'ava', 'quoted', 'rvo'],
internet: ['ytsearch', 'ai', 'aiimg', 'aiarticle', 'bard', 'bing', 'bingimg', 'blackbox', 'aicode', 'gemini', 'waifudiff', 'brainly', 'pinterest', 'google', 'gimage', 'kbbg'],
miscs: ['speed', 'owner', 'sc', 'ping', 'checkapi'],
owner: ['eval', 'exec', 'mute', 'public', 'setpp', 'setname', 'unblock', 'block', 'setcover', 'autoread', 'setlink'],
'text maker': ['comicbox', 'gradientshadow', 'lava', 'thunder', 'neondevil', 'sumertimes', 'matrix', 'firework', 'neonlight', 'greenneon', 'pokemon', 'dragonball', 'naruto', 'blackpink', 'onglass', 'greenbrush', 'amongus', 'naruto2', 'flaming', 'woodblock'],
tools: ['remini', 'recolor', 'ocr', 'calc', 'cekresi', 'ss', 'ssweb', 'shortlink', 'translate', 'tts', 'text2img', 'transcibe', 'nulis', 'removebg', 'toanime', 'tozombie', 'turnme', 'gta5style'],
'voice changer': ['bass', 'blown', 'deep', 'earrape', 'fast', 'fat', 'nightcore', 'reverse', 'robot', 'slow', 'smooth', 'tupai']
}
const limit = {
free: 15,
premium: 150,
VIP: 'Infinity',
download: {
free: 50000000, // use byte
premium: 350000000, // use byte
VIP: 1130000000, // use byte
}
}
export default {
menu,
limit,
/** change config here */
options: {
database: 'database.json', /** End .json when using JSON database or use Mongo URI */
owner: ['6285179886349'],
evaluate_chars: ['=>', '>', '$', '~>', '!', '+', '/', '#', '.'],
sessionName: 'session',
prefix: /^[./!#+,]/i,
wm: '© moon-bot',
footer: 'ᴍᴏᴏɴ ʙᴏᴛ ᴡʜᴀᴛꜱᴀᴘᴘ ꜱᴍᴀʀᴛ ᴀꜱꜱɪꜱᴛᴀɴᴛ ツ'
},
/** Pairing code */
pairing: {
state: false,
number: 0
},
/** Set pack name sticker on here */
Exif: {
packId: 'https://api.alyachan.dev',
packName: `This Sticker is Made by :`,
packPublish: '@naando.io',
packEmail: 'contact@moonx.my.id',
packWebsite: 'https://api.alyachan.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]}`
}
Func.reloadFile(fileURLToPath(import.meta.url))