-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
228 lines (217 loc) · 11.7 KB
/
Copy pathconfig.js
File metadata and controls
228 lines (217 loc) · 11.7 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
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
require("dotenv").config();
const config = {};
config.guildid = "1140404810735173702"; // Guild ID
// Default Bot Settings
config.bot = {
token: process.env.TOKEN, // Bot Token (Change this in the .env File)
user: {
enabled: false, // If enabled the Name and Avatar will be overwritten and are permanent
name: "Verify Bot",
avatar: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png",
},
color: "#2b2b2b", // Default Embed Color
activity_enabled: true, // If disabled Bot wont override Activity (if multiple Bots are running on same Token)
activitys: [
{
name: "through the matrix",
type: "Watching",
status: "idle",
},
{
name: "with your data",
type: "Playing",
status: "dnd",
},
{
name: "in your life",
type: "Competing",
status: "online",
},
],
intervall: 10 * 1000, // Intervall of Activity Change
};
config.server = {
// INFO: If Bot is running on a Server wich hasnt a public IP its recommended to use a Domain for Proxy.
ip: "192.168.10.50", // Domain or IP Adress of Server
port: 6001, // Port of Server wich is free and open
https: false, // If you use a Domain with SSL you can set this to true -> to install cert just run the command "npm run cert"
proxy: {
enabled: true, // If you use a Proxy or Jumphost to connect to the Server set this to true
ip: "verify.codebotz.net", // Domain or IP Adress of Proxy
https: true, // Important for Discord OAuth2 Requests
},
// Check https://discord.com/developers/applications/ for more information
oauth2: {
client_id: "1140741872084598826", // Client ID of Discord Application
client_secret: process.env.CLIENT_SECRET, // Client Secret of Discord Application (Change this in the .env File)
default_route: "/auth", // Default Route for OAuth2 Callback
scopes: ["identify", "guilds.join", "guilds", "email"], // Scopes for OAuth2
},
};
// Just dont touch this if you dont know what your are doing
if (config.server.proxy.enabled) {
config.server.oauth2.redirect_url = config.server.proxy.https
? "https://" + config.server.proxy.ip + config.server.oauth2.default_route
: "http://" + config.server.proxy.ip + config.server.oauth2.default_route;
} else {
config.server.oauth2.redirect_url = config.server.https
? "https://" +
config.server.ip +
":" +
config.server.port +
config.server.oauth2.default_route
: "http://" +
config.server.ip +
":" +
config.server.port +
config.server.oauth2.default_route;
}
config.server.discordurl = `https://discord.com/api/oauth2/authorize?client_id=${config.server.oauth2.client_id}&redirect_uri=${config.server.oauth2.redirect_url}&response_type=code&scope=${config.server.oauth2.scopes.join('%20')}`;
config.verify = {
// If you dont want the image for example just remove the line
embed: {
title: "Verify", // Title of Embed
description: "Please click on Verify on this message to verify yourself and have access to the channels.", // Description of Embed
color: "#2d1f54", // Color of Embed
image: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Image of Embed
// banner: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Banner of Embed
author: {
name: "Verify Bot", // Name of Author
iconURL: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Icon of Author
url: "https://discord.gg/CODEBOTZ", // URL of Author
},
footer: {
text: "Verify Bot by CODEBOTZ", // Text of Footer
iconURL: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Icon of Footer
},
timestamp: true, // If true the Embed will have a Timestamp
},
buttons: [
{
label: "Verify", // Label of Button
style: 5, // Style of Button (https://discord.com/developers/docs/interactions/message-components#button-object-button-styles)
emoji: "✅", // Emoji of Button
url: config.server.discordurl
},
{
label: "FAQ", // Label of Button
style: 2, // Style of Button (https://discord.com/developers/docs/interactions/message-components#button-object-button-styles)
emoji: "❓", // Emoji of Button
custom_id: "faq", // Custom ID of Button
}
],
faq: {
id: "faq", // Custom ID of Button
title: "Verify", // Title of Embed
description: "Here you find the most asked questions.", // Description of Embed
color: "#2d1f54", // Color of Embed
image: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Image of Embed
// banner: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Banner of Embed
fields: [
{
name: "Why do I have to go through a verification process to join your Discord server?",
value: "We ask members to verify themselves on our Discord server to create a safe and enjoyable community. This process helps us keep out fake or harmful accounts, ensuring a better experience for everyone."
},
{
name: "What information do you collect during the verification process?",
value: "When you verify yourself, we collect the following information:\n\n- User Guilds: This helps us spot and prevent fake accounts from entering the server.\n- Email: We gather your email for future use in our web panel system, which will provide extra features and benefits.\n- IP Address (hashed): We collect hashed IP addresses to identify and manage multiple accounts from the same IP, helping to maintain server security.\n- City, Region, and Country (based on IP): This data is used for analytics, giving us insights into the geographical distribution of our community members."
},
{
name: "What does 'joins server for you' mean during the verification process?",
value: "'Joins server for you' is a safety net. In case Discord ever takes down our server, this function ensures you won't lose access to our service and we dont loose the connection to you. It's our way of ensuring that you can continue to be part of the community, even in unexpected situations."
},
{
name: "Will my data be shared with third parties?",
value: "Absolutely not. We are committed to safeguarding your privacy. Your data will never be sold, shared in a Discord channel, or exposed to external parties."
},
{
name: "How is my data stored and protected?",
value: "Your data is stored securely. We hash your IP address to keep it anonymous, and we follow industry standards to protect your personal information from unauthorized access or disclosure."
},
{
name: "Can I choose not to provide certain information during verification?",
value: "Due to the fact that you don't have to provide information by yourself because it's all done by Discord or your browser, there's no way to avoid giving certain data away. However, please rest assured that we don't collect unnecessary data, and we prioritize your privacy. You can trust that your information is handled with care."
},
{
name: "Can I request the removal of my data from your records?",
value: "Yes, you can request the removal of your data. However, please be aware that doing so comes with a risk – you may lose access to your purchased products, and you won't be able to buy new ones. Removing your data means severing ties with your account's history on our server."
},
{
name: "Is my personal information safe with you?",
value: "Yes, your personal information is safe with us. We take data security and privacy seriously and have implemented measures to protect your information from unauthorized access or disclosure."
}
],
author: {
name: "Verify Bot", // Name of Author
iconURL: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Icon of Author
url: "https://discord.gg/CODEBOTZ", // URL of Author
},
footer: {
text: "Verify Bot by CODEBOTZ", // Text of Footer
iconURL: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Icon of Footer
},
timestamp: true, // If true the Embed will have a Timestamp
},
roles: {
remove: [], // Roles wich will be removed after Verification
add: ["1140405831658110996"], // Roles wich will be added after Verification
},
}
config.security = {
account: {
enabled: true, // If enabled the Account Age will be checked
age: 7 * 24 * 60 * 60 * 1000, // Minimum Account Age in ms (7 Days)
action: "ban" // ban, kick, none
},
guilds: {
enabled: true, // If enabled the Guilds from User will be checked
blacklist: ["613425648685547542"], // Guilds wich the User is not allowed to be in
action: "ban"
},
ip: {
enabled: true, // If enabled the IP will be checked
anti_proxy: true,
anti_tor: true,
anti_vpn: true,
anti_relay: true,
anti_isp: {
// Block certain Internet Service Providers (Telecom for example)
enabled: true,
blacklist: ["telecom"]
},
action: "none" // If action is none the User just dont get verified
},
geolocation: {
enabled: true, // If enabled the Geolocation will be checked
blacklist: ["US", "CA", "GB", "AU", "NZ"], // Blacklisted Countries
action: "ban"
},
discord: {
enabled: true, // If enabled Discord Settings will be checked
verified: true, // If enabled the User must be verified on Discord
mfa_enabled: false, // If enabled the User must have MFA enabled (not recommended)
action: "ban"
}
}
config.log = {
enabled: true, // If enabled the Bot will log to Discord
channel: "1140461791479070720", // Channel ID of Log Channel
embed: {
title: "Verify Logs", // Title of Embed
description: "{member} was {action} because {reason}", // Description of Embed
color: "#2d1f54", // Color of Embed
image: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Image of Embed
// banner: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Banner of Embed
author: {
name: "Verify Bot", // Name of Author
iconURL: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Icon of Author
url: "https://discord.gg/CODEBOTZ", // URL of Author
},
footer: {
text: "Verify Bot by CODEBOTZ", // Text of Footer
iconURL: "https://media.discordapp.net/attachments/1061453021902544978/1140418112940945418/cdbz2.png", // Icon of Footer
},
timestamp: true, // If true the Embed will have a Timestamp
}
}
module.exports = config;