-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.js
50 lines (49 loc) · 2.1 KB
/
config.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
const { Sequelize } = require("sequelize");
const fs = require("fs");
if (fs.existsSync("config.env"))
require("dotenv").config({ path: "./config.env" });
const toBool = (x) => x == "true";
//==================================================================================================================================================
DATABASE_URL = process.env.DATABASE_URL || "./lib/database.db";
let HANDLER = "false";
module.exports = {
ANTILINK: toBool(process.env.ANTI_LINK) || false,
LOGS: toBool(process.env.LOGS) || false,
ANTILINK_ACTION: process.env.ANTI_LINK || "kick",
SESSION_ID:process.env.SESSION_ID || "Nikka-XJ2gB0L5B#3EIckMQg73EIjh7Xb_sO24PUPDtwZyucWzFqSpt4S9M",
LANG: process.env.LANG || "EN",
HANDLERS: process.env.PREFIX || '^[!]',
PRESCENCE: process.env.PRESCENCE || "typing",
GREETINGS: process.env.GREETINGS || false,
BRANCH: "main",
WARN_COUNT: 3,
STICKER_DATA: process.env.STICKER_DATA || "king;haki",
BOT_INFO: process.env.BOT_INFO || "ɴɪᴋᴋᴀ ᴍᴅ;ʜᴀᴋɪ;https://files.catbox.moe/mnp025.jpg",
AUDIO_DATA: process.env.AUDIO_DATA || "ʜᴀᴋɪ;shaka;https://files.catbox.moe/mnp025.jpg",
ALWAYS_ONLINE: process.env.ALWAYS_ONLINE || "false",
PORT: process.env.PORT || 3000,
CAPTION: process.env.CAPTION || "shaka",
WORK_TYPE: process.env.WORK_TYPE || "private",
DATABASE_URL: DATABASE_URL,
DATABASE:
DATABASE_URL === "./lib/database.db"
? new Sequelize({
dialect: "sqlite",
storage: DATABASE_URL,
logging: false,
})
: new Sequelize(DATABASE_URL, {
dialect: "postgres",
ssl: true,
protocol: "postgres",
dialectOptions: {
native: true,
ssl: { require: true, rejectUnauthorized: false },
},
logging: false,
}),
HEROKU_APP_NAME: process.env.HEROKU_APP_NAME || " ",
HEROKU_API_KEY: process.env.HEROKU_API_KEY || " ",
SUDO: process.env.SUDO || "2349112171078,94703981512", // replace ur number
IMGBB_KEY: ["76a050f031972d9f27e329d767dd988f", "deb80cd12ababea1c9b9a8ad6ce3fab2", "78c84c62b32a88e86daf87dd509a657a"],
};