-
Notifications
You must be signed in to change notification settings - Fork 245
/
Copy pathsettings.js
163 lines (107 loc) Β· 5.24 KB
/
settings.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
//-------------------[ BOT SETTINGS ]------------------//
// @project_name : CypherX
// @author : TYLOR
// @youtube : https://www.youtube.com/@heyits_tylor
// @instagram : heyits_tylor
// @telegram : t.me/heyits_tylor
// @github : Dark-Xploit
// @tiktok : heyits_tylor
// @whatsapp : +254754783972
//----------------------[ CYPHER-X ]----------------------//
const fs = require('fs')
const { color } = require('./lib/color')
if (fs.existsSync('.env')) require('dotenv').config({ path: __dirname+'/.env' })
//--------------------[ SESSION ID ]----------------------//
global.SESSION_ID = process.env.SESSION_ID || ''
//Enter your Xploader session id here; must start with XPLOADER-BOT:~
//--------------------[ BOT NAME ]----------------------//
global.botname = process.env.BOT_NAME || 'CypherX'
//-----------------[ OWNER NUMBER ]------------------//
global.ownernumber = process.env.OWNER_NUMBER || '254754783972'
//--------------------[ SUDO ]--------------------------//
global.sudo = process.env.SUDO ? process.env.SUDO.split(',') : ['254796180105', '254712345678'];
// 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 || 'Tylor'
//------------[ STICKER PACKNAME ]-----------------//
global.packname = process.env.STICKER_PACK_NAME || "Cypher"
//--------------[ STICKER AUTHOR NAME ]------------//
global.author = process.env.STICKER_AUTHOR_NAME || "X"
//-------------------[ BOT'S PREFIX ]--------------------//
global.prefixz = process.env.BOT_PREFIX || '.'
//-----------------[ BOT'S MODE ]-----------------------//
global.mode = process.env.MODE || 'public';
// Set 'private' to enable private mode
// Set 'public' to enable public mode
// Set 'group' to enable only group
// Set 'pm' to enable only private chats
//----------[ STATUS REACTION EMOJI ]--------------//
global.statusemoji = process.env.STATUS_EMOJI || 'π§‘'
//---------------[ AUTO VIEW STATUS ]---------------//
global.autoviewstatus = process.env.AUTO_STATUS_VIEW || 'true'
// set true to enable and false to disable auto status view
//--------------[ AUTO REACT STATUS ]--------------//
global.autoreactstatus = process.env.AUTO_STATUS_REACT || 'false'
// set true to enable and false to disable auto status react
//---------------[ ALWAYS ONLINE ]------------------//
global.alwaysonline = process.env.ALWAYS_ONLINE || 'true'
//Set true to make the bot online 24/7 or set false to disable always online
//--------------------[ CHATBOT ]-----------------------//
global.chatbot = process.env.CHATBOT || 'false'
// set true to enable and false to disable auto ai chatbot
//-------------------[ ANTI DELETE ]--------------------//
global.antidelete = process.env.ANTIDELETE || 'private'
// options:- 'private', 'chat' or 'off'
// private = Sends to message yourself
// chat = sends to the current chat
// off = Disables detection of deleted messages
//---------------------[ ANTI EDIT ]----------------------//
global.antiedit = process.env.ANTI_EDIT || 'private'
// options:- 'private', 'chat' or 'off'
// private = Sends to message yourself
// chat = sends to the current chat
// off = Disables detection of edited messages
//---------------------[ ANTI CALL ]----------------------//
global.anticall = process.env.ANTI_CALL || 'false'
// set true to enable and false to disable auto blocking of callers
//---------------[ WELCOME MESSAGE ]----------------//
global.welcome = process.env.WELCOME_MSG || 'false'
// set true to enable and false to disable welcoming and left messages to groups upon joining or leaving groups
//----------------------[ TIMEZONE ]--------------------//
global.timezones = process.env.TIMEZONE || "Africa/Nairobi"
//Don't edit this if you don't know!
//--------------------[ AUTO READ ]--------------------//
global.autoread = process.env.AUTO_READ || 'false';
// Set to 'true' to enable automatic reading of messages
//-------------------[ MENU STYLE ]--------------------//
global.menustyle = process.env.MENU_STYLE || '2'
// options 1, 2, 3, 4, 5 or 6
// 1 = Document menu(Android only)
// 2 = Text only menu(Android & iOS)
//3 = Image menu with context(Android & iOS)
//4 = Image menu(Android & iOS)
//5 = Footer/faded menu
//6 = Payment menu
//-----------------[ CONTEXT LINK ]--------------------//
global.plink = process.env.PLINK || "https://www.instagram.com/heyits_tylor?igsh=YzljYTk1ODg3Zg---"
//------------------[ WATERMARK ]--------------------//
global.wm = process.env.GL_WM || "Β©CypherX"
//---------------------[ REPLIES ]-----------------------//
global.mess = {
done: '*Done*',
success: 'Β©CypherX',
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)
})
//----------------------[ CYPHER-X ]----------------------//