forked from Dark-Xploit/CypherX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
143 lines (116 loc) · 5.38 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
//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
//*
//*
//=================================================//
const fs = require('fs')
const { color } = require('./lib/color')
if (fs.existsSync('.env')) require('dotenv').config({ path: __dirname+'/.env' })
//=================================================//
global.SESSION_ID = process.env.SESSION_ID || 'XPLOADER-BOT:~LvoA1QiR#itpUd-1VGPZ5cMHgy1R6jeNp6otkkJ4wwn1YU7PIFRA'
//Enter your Xploader session id here; must start with XPLOADER-BOT:~
//=================================================//
global.botname = process.env.BOT_NAME || 'CypherX'
//Your desired bot name
//=================================================//
global.ownernumber = process.env.OWNER_NUMBER || '23274448130'
//Type your main number here
//=================================================//
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.
//=================================================//
global.ownername = process.env.OWNER_NAME || 'Mr Take Tee'
//Type your name here
//=================================================//
global.plink = process.env.PLINK || "https://www.instagram.com/heyits_tylor?igsh=YzljYTk1ODg3Zg=="
//=================================================//
global.wm = process.env.GL_WM || "©CypherX"
//=================================================//
global.packname = process.env.STICKER_PACK_NAME || "Cypher"
//The sticker pack name
//=================================================//
global.author = process.env.STICKER_AUTHOR_NAME || "X"
//The sticker author name
//=================================================//
global.prefixz = process.env.BOT_PREFIX || '+'
//Set your desired prefix
//=================================================//
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
//=================================================//
global.statusemoji = process.env.STATUS_EMOJI || '💰'
//Enter the emoji that you wish to be reacted to statuses
//=================================================//
global.autoviewstatus = process.env.AUTO_STATUS_VIEW || 'true'
// set true to enable and false to disable auto status view
//=================================================//
global.autoreactstatus = process.env.AUTO_STATUS_REACT || 'false'
// set true to enable and false to disable auto status react
//=================================================//
global.alwaysonline = process.env.ALWAYS_ONLINE || 'true'
//Set true to make the bot online 24/7 or set false to disable always online
//=================================================//
global.chatbot = process.env.CHATBOT || 'false'
// set true to enable and false to disable auto ai chatbot
//=================================================//
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
//=================================================//
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
//=================================================//
global.anticall = process.env.ANTI_CALL || 'false'
// set true to enable and false to disable auto blocking of callers
//=================================================//
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
//=================================================//
global.timezones = process.env.TIMEZONE || "Africa/Nairobi"
//Don't edit this if you don't know!
//=================================================//
global.autoread = process.env.AUTO_READ || 'false';
// Set to 'true' to enable automatic reading of messages
//=================================================//
global.menustyle = process.env.MENU_STYLE || '3'
// options 1, 2, 3, 4 or 5
// 1 = Document menu(Android only)
// 2 = Text only menu(Android & iOS)
//3 = Image menu with context(Android & iOS)
//4 = Image menu(Android & iOS)
//5 = Payment menu
//=================================================//
//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!*'
}
//=================================================//
//=================================================//
let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(color(`Updated '${__filename}'`, 'red'))
delete require.cache[file]
require(file)
})
//=================================================//