-
Notifications
You must be signed in to change notification settings - Fork 58
/
config.js
65 lines (60 loc) · 4.09 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
const fs = require('fs-extra')
if (fs.existsSync('config.env')) require('dotenv').config({ path: __dirname+'/config.env' })
//═══════[Required Variables]════════\\
global.owner = process.env.OWNER_NUMBER || '2347080968564' // Make SURE its Not Be Empty, Else Bot Stoped And Errors,
global.mongodb = process.env.MONGODB_URI || "mongodb+srv://ahil1:[email protected]/?retrywrites=true&w=majority"
global.port= process.env.PORT || 5000
global.email = '[email protected]'
global.github = 'https://github.com/Anonphoenix007/MAKINO-MD'
global.location = 'Africa Lagos'
global.gurl = 'https://wa.me/2347080968564' // add your username
global.sudo = process.env.SUDO || "2347080968564"
global.devs = '2347080968564'
global.website = 'https://github.com/Anonphoenix007/MAKINO-MD' //wa.me/+91000000000000
global.THUMB_IMAGE = process.env.THUMB_IMAGE || 'https://telegra.ph/file/f1ffb3c5f386f9f8bccb5.jpg'
global.sessID = process.env.sessID || ""
global.presence = process.env.PRESENCE || "recording"
module.exports = {
// wapresence: process.env.WAPRESENCE || "recording",// recording,composing,available,unavailable
// sessionName: process.env.SESSION_ID || "", //Put Your Session Id Here
author: process.env.PACK_AUTHER || 'Tᴀɪʀᴀ Mᴀᴋɪɴo',
packname: process.env.PACK_NAME || 'MAKINO-MD ',
numversion: process.env.BOT_VERSION || '1.1',
botname: process.env.BOT_NAME === undefined ? "MAKINO-MD" : process.env.BOT_NAME,
ownername: process.env.OWNER_NAME === undefined ? 'Tᴀɪʀᴀ Mᴀᴋɪɴᴏ' : process.env.OWNER_NAME,
auto_read_status : process.env.AUTO_READ_STATUS === undefined ? false : process.env.AUTO_READ_STATUS,
autoreaction: process.env.AUTO_REACTION === undefined ? false : process.env.AUTO_REACTION ,
antibadword : process.env.ANTI_BAD_WORD === undefined ? 'nbwoed' : process.env.ANTI_BAD_WORD,
alwaysonline: process.env.ALWAYS_ONLINE === undefined ? true : process.env.ALWAYS_ONLINE,//Do not edit this line at all.
antifake : process.env.FAKE_COUNTRY_CODE === undefined ? '234' : process.env.FAKE_COUNTRY_CODE,
readmessage: process.env.READ_MESSAGE === undefined ? false : process.env.READ_MESSAGE,
auto_status_saver: process.env.AUTO_STATUS_SAVER === undefined ? false : process.env.AUTO_STATUS_SAVER,
HANDLERS: process.env.PREFIX === undefined ? ',' : process.env.PREFIX,
PMGREET: process.env.PM_GREET === undefined ? 'Hello 👋,this is 🐦Makino md ᴍᴜʟᴛɪ-ᴅᴇᴠɪᴄᴇ' : process.env.PM_GREET,
warncount : process.env.WARN_COUNT === undefined ? 3 : process.env.WARN_COUNT,
disablepm: process.env.DISABLE_PM === undefined ? false : process.env.DISABLE_PM,
levelupmessage: process.env.LEVEL_UP_MESSAGE === undefined ? false : process.env.LEVEL_UP_MESSAGE,
antilink: process.env.ANTILINK_VALUES === undefined ? 'chat.whatsapp.com' : process.env.ANTILINK_VALUES,
antilinkaction: process.env.ANTILINK_ACTION === undefined ? 'remove' : process.env.ANTILINK_ACTION,
BRANCH: 'main',
ALIVE_MESSAGE: process.env.ALIVE_MESSAGE === undefined ? '' : process.env.ALIVE_MESSAGE,
autobio: process.env.AUTO_BIO === undefined ? true : process.env.AUTO_BIO,
caption :process.env.CAPTION || "\t*•ᴘᴏᴡᴇʀᴇᴅ ʙʏ MAKINO-MD•* ", //『sᴜʙsᴄʀɪʙᴇ • ᴛᴇᴄʜ x』*\n https://whatsapp.com/channel/0029Va9wmuz8F2pGIURwmo0m"),
OPENAI_API_KEY: process.env.OPENAI_API_KEY === undefined ? false: process.env.OPENAI_API_KEY,
heroku: process.env.heroku === undefined ? false : process.env.heroku,
HEROKU: {
HEROKU: process.env.HEROKU ||false,
API_KEY: process.env.HEROKU_API_KEY === undefined ? '' : process.env.HEROKU_API_KEY,
APP_NAME: process.env.HEROKU_APP_NAME === undefined ? '' : process.env.HEROKU_APP_NAME
},
VERSION: process.env.VERSION === undefined ? '1.1' : process.env.VERSION,
LANG: process.env.THEME|| 'GOJO',
WORKTYPE: process.env.WORKTYPE === undefined ? 'private' : process.env.WORKTYPE
};
let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(`Update'${__filename}'`)
delete require.cache[file]
require(file)
})