|
1 | | -global.owner = ['62895331520602'] // wajib di isi tidak boleh kosong |
2 | | -global.mods = ['62895331520602'] // wajib di isi tidak boleh kosong |
3 | | -global.prems = ['62895331520602'] // wajib di isi tidak boleh kosong |
4 | | -global.nameowner = 'Tio' // wajib di isi tidak boleh kosong |
5 | | -global.numberowner = '62895331520602' // wajib di isi tidak boleh kosong |
6 | | -global.mail = 'support@tioprm.eu.org' // wajib di isi tidak boleh kosong |
7 | | -global.gc = 'https://chat.whatsapp.com/I5RpePh2b5u37OyFjzCNTr' // wajib di isi tidak boleh kosong |
8 | | -global.instagram = 'https://instagram.com/prm2.0' // wajib di isi tidak boleh kosong |
9 | | -global.wm = '© BOTCAHX' // isi nama bot atau nama kalian |
10 | | -global.wait = '_*Tunggu sedang di proses...*_' // ini pesan simulasi loading |
11 | | -global.eror = '_*Server Error*_' // ini pesan saat terjadi kesalahan |
12 | | -global.stiker_wait = '*⫹⫺ Stiker sedang dibuat...*' // ini pesan simulasi saat loading pembuatan sticker |
13 | | -global.packname = 'Made With' // watermark stikcker packname |
14 | | -global.author = 'Bot WhatsApp' // watermark stikcker author |
15 | | -global.maxwarn = '5' // Peringatan maksimum Warn |
16 | | - |
17 | | -global.autobio = false // Set true/false untuk mengaktifkan atau mematikan autobio (default: false) |
18 | | -global.antiporn = false // Set true/false untuk Auto delete pesan porno (bot harus admin) (default: false) |
19 | | -global.spam = false // Set true/false untuk anti spam (default: false) |
20 | | -global.gcspam = false // Set true/false untuk menutup grup ketika spam (default: false) |
21 | | - |
| 1 | +require("dotenv").config(); |
| 2 | + |
| 3 | +global.owner = ["62895331520602"]; // wajib di isi tidak boleh kosong |
| 4 | +global.mods = ["62895331520602"]; // wajib di isi tidak boleh kosong |
| 5 | +global.prems = ["62895331520602"]; // wajib di isi tidak boleh kosong |
| 6 | +global.nameowner = "Tio"; // wajib di isi tidak boleh kosong |
| 7 | +global.numberowner = "62895331520602"; // wajib di isi tidak boleh kosong |
| 8 | +global.mail = "support@tioprm.eu.org"; // wajib di isi tidak boleh kosong |
| 9 | +global.gc = "https://chat.whatsapp.com/I5RpePh2b5u37OyFjzCNTr"; // wajib di isi tidak boleh kosong |
| 10 | +global.instagram = "https://instagram.com/prm2.0"; // wajib di isi tidak boleh kosong |
| 11 | +global.wm = "© BOTCAHX"; // isi nama bot atau nama kalian |
| 12 | +global.wait = "_*Tunggu sedang di proses...*_"; // ini pesan simulasi loading |
| 13 | +global.eror = "_*Server Error*_"; // ini pesan saat terjadi kesalahan |
| 14 | +global.stiker_wait = "*⫹⫺ Stiker sedang dibuat...*"; // ini pesan simulasi saat loading pembuatan sticker |
| 15 | +global.packname = "Made With"; // watermark stikcker packname |
| 16 | +global.author = "Bot WhatsApp"; // watermark stikcker author |
| 17 | +global.maxwarn = "5"; // Peringatan maksimum Warn |
| 18 | + |
| 19 | +global.autobio = false; // Set true/false untuk mengaktifkan atau mematikan autobio (default: false) |
| 20 | +global.antiporn = false; // Set true/false untuk Auto delete pesan porno (bot harus admin) (default: false) |
| 21 | +global.spam = false; // Set true/false untuk anti spam (default: false) |
| 22 | +global.gcspam = false; // Set true/false untuk menutup grup ketika spam (default: false) |
22 | 23 |
|
23 | 24 | // APIKEY INI WAJIB DI ISI! // |
24 | | -global.btc = 'YOUR_APIKEY_HERE' |
| 25 | +global.btc = "YOUR_APIKEY_HERE"; |
| 26 | +// global.btc = process.env.API_KEY_BTC; |
| 27 | +// aktifkan akses .env di atas jika kamu ingin menaruh key api di .env |
25 | 28 | // Daftar terlebih dahulu https://api.botcahx.eu.org |
26 | | - |
| 29 | + |
27 | 30 | // AKSESKEY INI DI ISI JIKA DIPERLUKAN (e.g suno ai (ai music ) & fitur prem lainnya// |
28 | | -global.aksesKey = 'YOUR_AKSESKEY_HERE' |
| 31 | +global.aksesKey = "YOUR_AKSESKEY_HERE"; |
| 32 | +// global.aksesKey = process.env.API_KEY_BTC_AKSESKEY; |
| 33 | +// aktifkan akses .env di atas jika kamu ingin menaruh key api di .env |
29 | 34 | // Daftar terlebih dahulu https://api.botcahx.eu.org |
30 | 35 |
|
31 | | - |
32 | 36 | // Tidak boleh diganti atau di ubah |
33 | | -global.APIs = { |
34 | | - btc: 'https://api.botcahx.eu.org' |
35 | | -} |
| 37 | +global.APIs = { |
| 38 | + btc: "https://api.botcahx.eu.org", |
| 39 | +}; |
36 | 40 |
|
37 | 41 | //Tidak boleh diganti atau di ubah |
38 | | -global.APIKeys = { |
39 | | - 'https://api.botcahx.eu.org': global.btc |
40 | | -} |
41 | | - |
| 42 | +global.APIKeys = { |
| 43 | + "https://api.botcahx.eu.org": global.btc, |
| 44 | +}; |
42 | 45 |
|
43 | | -let fs = require('fs') |
44 | | -let chalk = require('chalk') |
45 | | -let file = require.resolve(__filename) |
| 46 | +let fs = require("fs"); |
| 47 | +let chalk = require("chalk"); |
| 48 | +let file = require.resolve(__filename); |
46 | 49 | fs.watchFile(file, () => { |
47 | | - fs.unwatchFile(file) |
48 | | - console.log(chalk.redBright("Update 'config.js'")) |
49 | | - delete require.cache[file] |
50 | | - require(file) |
51 | | -}) |
| 50 | + fs.unwatchFile(file); |
| 51 | + console.log(chalk.redBright("Update 'config.js'")); |
| 52 | + delete require.cache[file]; |
| 53 | + require(file); |
| 54 | +}); |
| 55 | + |
0 commit comments