mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-04-02 20:20:46 +05:00
This commit is contained in:
parent
2492a215e6
commit
274672a405
8 changed files with 20 additions and 31 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -22,7 +22,6 @@
|
||||||
# Node
|
# Node
|
||||||
package-lock.json
|
package-lock.json
|
||||||
node_modules
|
node_modules
|
||||||
yarn.lock
|
|
||||||
|
|
||||||
# Backups
|
# SQlite
|
||||||
/.backup
|
/json.sqlite
|
||||||
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
||||||
[submodule "dashboard/dashboard-core"]
|
|
||||||
path = dashboard/dashboard-core
|
|
||||||
url = https://github.com/JonnyBro/dashboard-core
|
|
|
@ -28,15 +28,14 @@ JaBa имеет множество функций, вот **8 основных
|
||||||
* 👑 **Команды владельца**: `eval`, `getinvite`, `servers-list` и ещё **2** команды!
|
* 👑 **Команды владельца**: `eval`, `getinvite`, `servers-list` и ещё **2** команды!
|
||||||
|
|
||||||
[Список изменений](/dashboard/docs/updates.md)<br>
|
[Список изменений](/dashboard/docs/updates.md)<br>
|
||||||
[Полный список команд](http://jababot.duckdns.org:8080/docs)
|
[Полный список команд](http://jababot.duckdns.org:8080/commands)
|
||||||
|
|
||||||
### *Относительно* мощная панель управления
|
### *Относительно* мощная панель управления
|
||||||
У JaBa есть своя панель управления с доступом к настройке параметров сервера и просмотру таблицы лидеров! Панель работает на Express и EJS!
|
У JaBa есть своя панель управления с доступом к настройке параметров сервера!
|
||||||
<!-- <img align="left" style="float: centrer; margin: 0 10px 0 0;" src="https://zupimages.net/up/19/31/c3ya.png" height="200" width="350"/>
|
<!-- <img align="left" style="float: centrer; margin: 0 10px 0 0;" src="https://zupimages.net/up/19/31/c3ya.png" height="200" width="350"/>
|
||||||
<img align="center" style="float: left; margin: 0 10px 0 0;" src="https://zupimages.net/up/19/31/vnq5.png" height="200" width="350"/>
|
<img align="center" style="float: left; margin: 0 10px 0 0;" src="https://zupimages.net/up/19/31/vnq5.png" height="200" width="350"/>
|
||||||
<img align="center" style="float: centrer; margin: 0 10px 0 0;" src="https://zupimages.net/up/19/31/htga.png" height="200" width="350"/> -->
|
<img align="center" style="float: centrer; margin: 0 10px 0 0;" src="https://zupimages.net/up/19/31/htga.png" height="200" width="350"/> -->
|
||||||
|
|
||||||
Вы можете **настраивать параметры** каждого сервера где есть JaBa (вы должны иметь права администратора), **просматривать таблицу лидеров**, **управлять своим профилем**!
|
|
||||||
> Код панели находится в папке dashboard!
|
> Код панели находится в папке dashboard!
|
||||||
|
|
||||||
## Установка
|
## Установка
|
||||||
|
|
|
@ -70,7 +70,8 @@ class Play extends BaseCommand {
|
||||||
leaveOnEnd: false,
|
leaveOnEnd: false,
|
||||||
leaveOnStop: true,
|
leaveOnStop: true,
|
||||||
skipOnNoStream: true,
|
skipOnNoStream: true,
|
||||||
bufferingTimeout: 1000,
|
maxSize: 500,
|
||||||
|
maxHistorySize: 100,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const { SlashCommandBuilder } = require("discord.js");
|
const { SlashCommandBuilder } = require("discord.js");
|
||||||
const BaseCommand = require("../../base/BaseCommand"),
|
const BaseCommand = require("../../base/BaseCommand"),
|
||||||
i18next = require("i18next"),
|
i18next = require("i18next");
|
||||||
autoUpdateDocs = require("../../helpers/autoUpdateDocs");
|
// autoUpdateDocs = require("../../helpers/autoUpdateDocs");
|
||||||
|
|
||||||
class Reload extends BaseCommand {
|
class Reload extends BaseCommand {
|
||||||
/**
|
/**
|
||||||
|
@ -53,7 +53,7 @@ class Reload extends BaseCommand {
|
||||||
await client.loadCommand(`../commands/${cmd.category}`, cmd.command.name);
|
await client.loadCommand(`../commands/${cmd.category}`, cmd.command.name);
|
||||||
|
|
||||||
i18next.reloadResources(["ru-RU", "uk-UA", "en-US"]);
|
i18next.reloadResources(["ru-RU", "uk-UA", "en-US"]);
|
||||||
autoUpdateDocs.update(client);
|
// autoUpdateDocs.update(client);
|
||||||
|
|
||||||
interaction.success("owner/reload:SUCCESS", {
|
interaction.success("owner/reload:SUCCESS", {
|
||||||
command: cmd.command.name,
|
command: cmd.command.name,
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 1722b9f763855c8ed5af526ee860f0192410209f
|
|
|
@ -1,7 +1,6 @@
|
||||||
const SoftUI = require("dbd-soft-ui"),
|
const SoftUI = require("dbd-soft-ui"),
|
||||||
DBD = require("discord-dashboard"),
|
DBD = require("discord-dashboard"),
|
||||||
os = require("os"),
|
os = require("os");
|
||||||
fs = require("fs").promises;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -28,7 +27,7 @@ module.exports.load = async client => {
|
||||||
return {
|
return {
|
||||||
category: c,
|
category: c,
|
||||||
categoryId: c.toLowerCase(),
|
categoryId: c.toLowerCase(),
|
||||||
subTitle: "bottom text",
|
subTitle: "",
|
||||||
hideAlias: true,
|
hideAlias: true,
|
||||||
hideDescription: false,
|
hideDescription: false,
|
||||||
hideSidebarItem: c === "Owner" || c === "IAT" || c === "SunCountry" ? true : false,
|
hideSidebarItem: c === "Owner" || c === "IAT" || c === "SunCountry" ? true : false,
|
||||||
|
@ -40,7 +39,7 @@ module.exports.load = async client => {
|
||||||
DBD.Dashboard = DBD.UpdatedClass();
|
DBD.Dashboard = DBD.UpdatedClass();
|
||||||
|
|
||||||
const Dashboard = new DBD.Dashboard({
|
const Dashboard = new DBD.Dashboard({
|
||||||
port: 80,
|
port: client.config.dashboard.port,
|
||||||
client: {
|
client: {
|
||||||
id: client.config.user,
|
id: client.config.user,
|
||||||
secret: client.config.dashboard.secret,
|
secret: client.config.dashboard.secret,
|
||||||
|
@ -56,6 +55,7 @@ module.exports.load = async client => {
|
||||||
clientId: client.config.user,
|
clientId: client.config.user,
|
||||||
scopes: ["bot", "applications.commands"],
|
scopes: ["bot", "applications.commands"],
|
||||||
permissions: "8",
|
permissions: "8",
|
||||||
|
redirectUri: client.config.dashboard.domain,
|
||||||
},
|
},
|
||||||
supportServer: {
|
supportServer: {
|
||||||
slash: "/support",
|
slash: "/support",
|
||||||
|
@ -84,6 +84,7 @@ module.exports.load = async client => {
|
||||||
},
|
},
|
||||||
useTheme404: true,
|
useTheme404: true,
|
||||||
useThemeMaintenance: true,
|
useThemeMaintenance: true,
|
||||||
|
useUnderMaintenance: false,
|
||||||
underMaintenanceAccessKey: client.config.dashboard.maintanceKey,
|
underMaintenanceAccessKey: client.config.dashboard.maintanceKey,
|
||||||
underMaintenanceAccessPage: "/get-access",
|
underMaintenanceAccessPage: "/get-access",
|
||||||
underMaintenance: {
|
underMaintenance: {
|
||||||
|
@ -195,9 +196,9 @@ module.exports.load = async client => {
|
||||||
},
|
},
|
||||||
commands: categories,
|
commands: categories,
|
||||||
locales: {
|
locales: {
|
||||||
enUS: JSON.parse(await fs.readFile("languages/en-US/dashboard.json", { encoding: "utf-8" })),
|
enUS: require("../languages/en-US/dashboard.json"),
|
||||||
ruRU: JSON.parse(await fs.readFile("languages/ru-RU/dashboard.json", { encoding: "utf-8" })),
|
ruRU: require("../languages/ru-RU/dashboard.json"),
|
||||||
ukUA: JSON.parse(await fs.readFile("languages/uk-UA/dashboard.json", { encoding: "utf-8" })),
|
ukUA: require("../languages/uk-UA/dashboard.json"),
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
settings: [{
|
settings: [{
|
||||||
|
|
13
package.json
13
package.json
|
@ -12,32 +12,25 @@
|
||||||
"author": "Jonny_Bro#4226",
|
"author": "Jonny_Bro#4226",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discord-player/extractor": "^4.2.2",
|
"@discord-player/extractor": "^4.3.1",
|
||||||
"@discordjs/opus": "^0.9.0",
|
"@discordjs/opus": "^0.9.0",
|
||||||
"@discordjs/voice": "^0.16.0",
|
"@discordjs/voice": "^0.16.0",
|
||||||
"btoa": "^1.2.1",
|
|
||||||
"canvacord": "^5.1.0",
|
|
||||||
"canvas": "^2.10.2",
|
"canvas": "^2.10.2",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"cors": "^2.8.5",
|
|
||||||
"cron": "^2.1.0",
|
"cron": "^2.1.0",
|
||||||
"dbd-soft-ui": "^1.6.48-beta.1",
|
"dbd-soft-ui": "^1.6.48-beta.1",
|
||||||
"discord-dashboard": "^2.3.61",
|
"discord-dashboard": "^2.3.61",
|
||||||
"discord-giveaways": "^6.0.1",
|
"discord-giveaways": "^6.0.1",
|
||||||
"discord-player": "^6.2.1",
|
"discord-player": "^6.5.0",
|
||||||
"discord.js": "^14.11.0",
|
"discord.js": "^14.11.0",
|
||||||
"ejs": "^3.1.3",
|
|
||||||
"express": "^4.17.1",
|
|
||||||
"express-session": "^1.17.0",
|
|
||||||
"gamedig": "^4.0.2",
|
"gamedig": "^4.0.2",
|
||||||
"i18next": "^21.9.1",
|
"i18next": "^21.9.1",
|
||||||
"i18next-fs-backend": "^1.1.5",
|
"i18next-fs-backend": "^1.1.5",
|
||||||
"markdown-table": "^2.0.0",
|
|
||||||
"md5": "^2.2.1",
|
"md5": "^2.2.1",
|
||||||
"moment": "^2.26.0",
|
"moment": "^2.26.0",
|
||||||
"mongoose": "^5.13.15",
|
"mongoose": "^5.13.15",
|
||||||
"ms": "^2.1.3",
|
"ms": "^2.1.3",
|
||||||
"ytdl-core": "npm:@distube/ytdl-core@^4.11.10"
|
"play-dl": "^1.9.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.23.0"
|
"eslint": "^8.23.0"
|
||||||
|
|
Loading…
Add table
Reference in a new issue