forked from OfficialKango/KANGO-XMD-LITE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.js
More file actions
88 lines (53 loc) · 2.61 KB
/
settings.js
File metadata and controls
88 lines (53 loc) · 2.61 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//-------------------[ BOT SETTINGS ]------------------//
// @project_name : KANGO-XMD
// @author : Hector
// @telegram : http://t.me/official_kango
// @github : OfficialKango
// @whatsapp : +233509977126
//----------------------[ KANGO-XMD ]----------------------//
const fs = require('fs')
const { color } = require('./kango/color')
if (fs.existsSync('.env')) require('dotenv').config({ path: __dirname+'/.env' })
//--------------------[ SESSION ID ]----------------------//
global.SESSION_ID = process.env.SESSION_ID || ''
//Enter your KANGO-XMD session id here; must start with KANGO~
//--------------------[ BOT NAME ]----------------------//
global.botname = process.env.BOT_NAME || 'KANGO-XMD'
//-----------------[ OWNER NUMBER ]------------------//
global.ownernumber = process.env.OWNER_NUMBER || '233509977126'
//--------------------[ SUDO ]--------------------------//
global.sudo = process.env.SUDO ? process.env.SUDO.split(',') : ['233509977126', '233577860202'];
// Type additional allowed users here
//NB: They'll be able to use every functions of the bot without restrictions.
//-----------------[ OWNER NAME ]------------------//
global.ownername = process.env.OWNER_NAME || 'Hector Manuel'
//------------[ STICKER PACKNAME ]-----------------//
global.packname = process.env.STICKER_PACK_NAME || "KANGO-XMD"
//--------------[ COUNTRY TIMEZONE ]------------//
global.timezones = 'Africa/Accra'; // Set this to you timezone
//--------------[ STICKER AUTHOR NAME ]------------//
global.author = process.env.STICKER_AUTHOR_NAME || "Hector"
//----------------[ GITHUB DATABASE ]-----------------//
global.dbToken = process.env.GITHUB_TOKEN || "";
//-----------------[ CONTEXT LINK ]--------------------//
global.plink = process.env.PLINK || "https://youtube.com/@official_manuel"
//------------------[ WATERMARK ]--------------------//
global.wm = process.env.GL_WM || "> ©KANGO-XMD"
//---------------------[ REPLIES ]-----------------------//
global.mess = {
done: '*Done*',
success: '©kango-xmd',
owner: `*You don't have permission to use this command!*`,
group: '*This feature becomes available when you use it in a group!*',
admin: '*You’ll unlock this feature with me as an admin!*',
notadmin: '*This feature will work once you become an admin. A way of ensuring order!*'
}
//--------------------[ WATCHER ]-----------------------//
let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(color(`Updated '${__filename}'`, 'red'))
delete require.cache[file]
require(file)
})
//----------------------[ KANGO-XMD ]----------------------//