Skip to content

Commit d644efa

Browse files
authored
Merge pull request #195 from BOTCAHX/testing
env untuk APIKEY
2 parents db5e003 + 6394c76 commit d644efa

4 files changed

Lines changed: 58 additions & 49 deletions

File tree

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
API_KEY_BTC=
2+
API_KEY_BTC_AKSESKEY=
3+
4+
#INI KHUSUS JIKA KAMU MENGGUNAKAN .ENV UNTUK KEY API
5+
#UBAH FILE INI KE .env

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
22
sessions
33
package-lock.json
4-
database.json
5-
config.js
4+
database.json

config.js

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,55 @@
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)
2223

2324
// 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
2528
// Daftar terlebih dahulu https://api.botcahx.eu.org
26-
29+
2730
// 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
2934
// Daftar terlebih dahulu https://api.botcahx.eu.org
3035

31-
3236
// 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+
};
3640

3741
//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+
};
4245

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);
4649
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+

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"@adiwajshing/baileys": "npm:baileys",
4343
"@adiwajshing/keyed-db": "^0.2.4",
4444
"@vitalets/google-translate-api": "^9.0.0",
45-
"javascript-obfuscator": "^4.0.2",
4645
"async": "^3.2.4",
4746
"awesome-phonenumber": "^2.64.0",
4847
"axios": "^0.27.2",
@@ -51,21 +50,23 @@
5150
"cheerio": "^1.0.0-rc.12",
5251
"colors": "1.4.0",
5352
"crypto": "^1.0.1",
54-
"express": "^4.18.2",
5553
"didyoumean": "^1.2.2",
54+
"dotenv": "^17.3.1",
55+
"express": "^4.18.2",
5656
"file-type": "^16.5.3",
5757
"form-data": "^4.0.0",
5858
"human-readable": "^0.2.1",
59-
"jsdom": "^20.0.0",
59+
"javascript-obfuscator": "^4.0.2",
6060
"jimp": "0.16.13",
61+
"jsdom": "^20.0.0",
62+
"link-preview-js": "^3.0.4",
6163
"lodash": "^4.17.21",
6264
"lowdb": "^2.1.0",
6365
"lru-cache": "^11.2.4",
64-
"link-preview-js": "^3.0.4",
6566
"moment-timezone": "^0.5.37",
6667
"mongoose": "^6.0.14",
67-
"node-fetch": "^2.6.9",
6868
"node-cache": "^5.1.2",
69+
"node-fetch": "^2.6.9",
6970
"node-gtts": "2.0.2",
7071
"node-os-utils": "^1.3.7",
7172
"node-webpmux": "^3.1.3",
@@ -76,12 +77,12 @@
7677
"qrcode": "^1.5.0",
7778
"qrcode-terminal": "^0.12.0",
7879
"readline": "^1.3.0",
79-
"similarity": "^1.2.1",
8080
"sharp": "^0.32.6",
81+
"similarity": "^1.2.1",
8182
"socket.io": "^4.5.1",
8283
"syntax-error": "^1.4.0",
83-
"tiktokdl": "^0.0.5",
8484
"terminal-image": "^2.0.0",
85+
"tiktokdl": "^0.0.5",
8586
"url": "^0.11.0",
8687
"url-regex": "^5.0.0",
8788
"url-regex-safe": "^2.1.0",

0 commit comments

Comments
 (0)