-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
32 lines (32 loc) · 1.66 KB
/
config.ts
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
const config = {
source: {
anti_crash: process.env.anti_crash === "true" ? true : false || false, // Anticrash on or off
logger: process.env.logger === "true" ? true : false || false, // Webhook logger on or off
database: {
type: process.env.database_type || "", // Choose one type for save users and guilds data. Types: "mysql" | "sql" | "mongodb" | "json"
mongoURL: process.env.database_mongoURL || "", // If you choose "mongodb" type place your mongo url.
mysql: {
host: process.env.database_msql_host || "", // Place your Mysql server host name.
user: process.env.database_msql_user || "", // Place your Mysql server username.
password: process.env.database_msql_password || "", // Place your Mysql server password.
database: process.env.database_msql_database || "" // Place your Mysql server database name.
} // If you choose "mysql" type place your Mysql server information.
}
},
bot: {
token: process.env.token || "", // Bot token.
support: {
invite: process.env.support_url || "https://discord.gg/AfkuXgCKAQ", // Support server invite link.
owners: JSON.parse(process.env.owners || "[]") || [] // Source owners.
}
}
};
export default config;
/**
* @copyright
* Code by Sobhan-SRZA (mr.sinre) | https://github.com/Sobhan-SRZA
* Developed for Persian Caesar | https://github.com/Persian-Caesar | https://dsc.gg/persian-caesar
*
* If you encounter any issues or need assistance with this code,
* please make sure to credit "Persian Caesar" in your documentation or communications.
*/