forked from DarkWinzo/Queen-AI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
43 lines (33 loc) · 2.11 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
/***
╭━━━┳╮ ╭┳━━━┳━━━┳━╮ ╭╮ ╭━━━┳━━╮
┃╭━╮┃┃ ┃┃╭━━┫╭━━┫┃╰╮┃┃ ┃╭━╮┣┫┣╯
┃┃ ┃┃┃ ┃┃╰━━┫╰━━┫╭╮╰╯┃ ┃┃ ┃┃┃┃
┃┃ ┃┃┃ ┃┃╭━━┫╭━━┫┃╰╮┃┃╭━━╮┃╰━╯┃┃┃
┃╰━╯┃╰━╯┃╰━━┫╰━━┫┃ ┃┃┃╰━━╯┃╭━╮┣┫┣╮
╰━━╮┣━━━┻━━━┻━━━┻╯ ╰━╯ ╰╯ ╰┻━━╯
╰╯
## Project Name => Queen-AI
## Project Version => 1.0.0
## Project Author => DarkWinzo
## Project license => MIT
## Project Team => DarkSide Team
## Module Name => config.js
## Coded By DarkWinzo
***/
const fs = require('fs');
const chalk = require('chalk');
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
global.session = process.env.SESSION_ID || "PUT HERE"; //enter your session id here
global.openaikey = process.env.OPEN_AI_KEY || "ENTER_API-KEY_HERE"; //Put Your Open AI Api key
global.ownername = process.env.OWNER_NAME || "DarkWinzo"; //Queen-AI Owner Name here
global.ownernumber = process.env.OWNER_NUMBER || "94775200935"; //Owner whatsapp number here
global.language = process.env.LANGUAGE || "EN"; //Enter bot working language EN = English / SI = Sinhala /ML = Malayalam /HI =Hindi /UR = Urdu
global.prefix = ['.'] //Don't Change
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(chalk.redBright("Update config.js"))
delete require.cache[file]
require(file)
});