forked from EliteProTech/ELITE-PRO-V1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.js
More file actions
69 lines (59 loc) · 2.68 KB
/
Config.js
File metadata and controls
69 lines (59 loc) · 2.68 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
require('dotenv').config();
const fs = require('fs');
const chalk = require('chalk');
// Contact details
global.ownernomer = process.env.OWNER_NOMER || "233277815774";
global.ytname = process.env.YT_NAME || "YT: @EliteProTech";
global.socialm = process.env.SOCIAL_M || "GitHub: EliteProTech";
global.location = process.env.LOCATION || "Nigeria, Port Harcourt";
// Creator details
global.ownernumber = process.env.OWNER_NUMBER || '233277815774';
global.ownername = process.env.OWNER_NAME || 'ElitePro';
global.botname = process.env.BOT_NAME || 'ELITE-PRO-V1';
// Default settings
global.prefa = process.env.PREFIX ? process.env.PREFIX.split(',') : ['', '!', '.', '#', '&'];
// Settings: true=enable false=disable
global.autoRecording = process.env.AUTO_RECORDING === 'true';
global.autoTyping = process.env.AUTO_TYPING === 'true';
global.autorecordtype = process.env.AUTO_RECORD_TYPE === 'true';
global.autoread = process.env.AUTO_READ === 'true';
global.autobio = process.env.AUTO_BIO !== 'false'; // default true
global.anti92 = process.env.ANTI_92 === 'true';
global.autoswview = process.env.AUTO_SW_VIEW !== 'true'; // default true
global.welcome = process.env.WELCOME !== 'false'; // default true
global.autoreact = process.env.AUTO_REACT === 'true';
// Thumbnail profile picture
global.elitepropp = process.env.ELITE_PRO_PP || 'https://i.ibb.co/jk0ynvbn/7a8c4b5b617fa11a1e9a61190f427546.jpg';
// Default emoji
global.themeemoji = process.env.THEME_EMOJI || '👨💻';
// Sticker details
global.packname = process.env.PACKNAME || 'Sticker By';
global.author = process.env.AUTHOR || 'ELITEPRO\n\nContact: +2348109263390';
// Default settings 2
global.typemenu = process.env.TYPE_MENU || 'v2';
global.wm = process.env.WM || "Youtube @EliteProTech";
global.link = process.env.LINK || 'https://whatsapp.com/channel/0029VaXaqHII1rcmdDBBsd3g';
// Text bug
global.xbugtex = {
xtxt: '👨💻ELITE-PRO👨💻',
};
// Reply messages
global.mess = {
done: '*⿻ DONE: Task completed ✔️*',
prem: '*⦿ This command is made for premium users.⁉️*',
admin: '*⦿ This command is made for group admins.‼️*',
botAdmin: '*⦿ Make bot admin to access commands⿻*',
owner: '*⦿This commands is made for bot owner.*',
group: '*⦿ This command is made for group chat❕*',
private: '*⦿ This command is made for private chat ⭕*',
wait: '*_⚙️PROCESSING DATA......_*',
error: '*‼️AN ERROR OCCUR‼️*',
};
global.thumb = fs.readFileSync('./EliteProMedia/thumb.jpg');
let file = require.resolve(__filename);
fs.watchFile(file, () => {
fs.unwatchFile(file);
console.log(chalk.redBright(`Update'${__filename}'`));
delete require.cache[file];
require(file);
});