Added something
This commit is contained in:
1 parent
216fc31e64
commit
773872a043
3 files changed
+4
-5911
No files matched your search
@@ -1,55 +0,0 @@
|
||||
module.exports = {
|
||||
maintenance: false,
|
||||
mongodb: "mongodb+srv://root:RzIhDff90LKkOOjw@cluster0.jo9hd.mongodb.net/?retryWrites=true&w=majority",
|
||||
bot: {
|
||||
id: "934087523649609768",
|
||||
token: "OTM0MDg3NTIzNjQ5NjA5NzY4.GV-g1-.Eggw57JNtsrLPbakg-_yr8fn8oBAbh0nKfK-lk",
|
||||
channels: {
|
||||
login: "868065455628234780",
|
||||
vote: "937643610541793300",
|
||||
error: "1003947531543269507",
|
||||
info: "1005178285124239510",
|
||||
},
|
||||
bsl: {
|
||||
id: "870001234583621713",
|
||||
token: "ODcwMDAxMjM0NTgzNjIxNzEz.GfMe5Y.USVO8IBvKkPIX0PFbYFRgfpctT-wW8sBVmFLQc",
|
||||
channels: {
|
||||
vote: "937643610541793300",
|
||||
error: "1003947531543269507",
|
||||
},
|
||||
invite: "https://discord.com/api/oauth2/authorize?client_id=870001234583621713&permissions=314433&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fcallback&response_type=code&scope=applications.commands%20bot"
|
||||
}
|
||||
},
|
||||
discord: {
|
||||
id: "868065454940385291",
|
||||
invite: "",
|
||||
roles: {
|
||||
admin: "868065454940385291",
|
||||
mod: "868065454940385291",
|
||||
user: "868065454940385293",
|
||||
bot: "1006120950045098034"
|
||||
}
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
host: "http://localhost:3000",
|
||||
tags: [
|
||||
"development",
|
||||
"fun",
|
||||
"media",
|
||||
"company",
|
||||
"game",
|
||||
"emoji",
|
||||
"turkish",
|
||||
"support",
|
||||
"sound",
|
||||
"chatting",
|
||||
"nsfw",
|
||||
"challange"
|
||||
]
|
||||
},
|
||||
users: {
|
||||
owner: ["755297485328482356"],
|
||||
verificator: ["755297485328482356"],
|
||||
}
|
||||
}
|
||||
Generated
-5856
File diff suppressed because it is too large.
Load diff
@@ -30,6 +30,7 @@ const limiter = rateLimit({
|
||||
})
|
||||
app.use("/api", limiter)
|
||||
app.use('/api', api);
|
||||
app.set('trust proxy', 1)
|
||||
if(global.config.maintenance) {
|
||||
console.log(colors.red("[MAINTENANCE]") + " Bot is in maintenance mode.");
|
||||
app.get('/', (req, res) => {
|
||||
@@ -181,6 +182,9 @@ app.get("/sitemap.xml", async function (req, res) {
|
||||
app.get('/invite', function (req, res) {
|
||||
res.redirect(client.config.bot.bsl.invite);
|
||||
});
|
||||
app.use((req, res, next) => {
|
||||
res.status(404).send("Sorry can't find that!")
|
||||
})
|
||||
app.use((err, req, res, next) => {
|
||||
console.error(err.stack)
|
||||
res.status(500).send('Something broke!')
|
||||
|
||||
Reference in new issue
Block a user