Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KilluazinFDC authored Dec 4, 2023
1 parent d344689 commit 8284bc3
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"token": "MTE4MDg5MDQzMzk5MjI3Mzk1MA.GVAhyd.Ek82Ht-QHH_oDEbJzHZsyFEEmFvdLfWWdKYNjQ",
"discord": {
"token": "MTE4MDg5MDQzMzk5MjI3Mzk1MA.GVAhyd.Ek82Ht-QHH_oDEbJzHZsyFEEmFvdLfWWdKYNjQ",
"client": {
"id": "1180890433992273950",
"secret": "JstAUvJWzV_W6EiTkOLUEs-O8VfzH3mO"
}
},
"dbd": {
"port": 80,
"domain": "https://39df-179-208-77-254.ngrok-free.app",
"redirectUri": "/discord/callback",
"license": "f1d3d9b5-aab2-4797-a451-115e58cf84cb",
"ownerIDs": ["574603126300999691", "764176094249091093"]
}
}
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "bot",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@discordjs/voice": "github:discordjs/voice",
"axios": "^1.6.2",
"dbd-soft-ui": "^1.7.18-beta.1",
"discord-dashboard": "^2.3.62",
"discord.js": "^14.11.0",
"figlet": "^1.7.0",
"fs": "^0.0.1-security",
"glob": "^7.2.0",
"moment": "^2.29.4",
"util": "^0.12.4",
"weather-js": "^2.0.0"
}
}
90 changes: 90 additions & 0 deletions site.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
// Define Packages
const { Client, GatewayIntentBits } = require('discord.js');
const SoftUI = require('dbd-soft-ui');
const config = require('./config.json');
let DBD = require('discord-dashboard');

const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.login(config.discord.token);

const Handler = new DBD.Handler(
/*
Keyv storage instance
Example: { store: new KeyvMongo('mongodb://user:pass@localhost:27017/dbname') }
Can be left empty to use the default storage (Keyv with SQLite)
*/
);

(async ()=>{
await DBD.useLicense(config.dbd.license);
DBD.Dashboard = DBD.UpdatedClass();

const Dashboard = new DBD.Dashboard({
port: config.dbd.port,
client: config.discord.client,
redirectUri: `${config.dbd.domain}${config.dbd.redirectUri}`,
domain: config.dbd.domain,
ownerIDs: config.dbd.ownerIDs,
useThemeMaintenance: true,
useTheme404: true,
bot: client,
theme: SoftUI({
storage: Handler,
customThemeOptions: {
index: async ({ req, res, config }) => {
return {
values: [],
graph: {},
cards: [],
}
},
},
websiteName: "KillBot Dashboard",
colorScheme: "green",
supporteMail: "support@support.com",
icons: {
favicon: 'https://assistantscenter.com/wp-content/uploads/2021/11/cropped-cropped-logov6.png',
noGuildIcon: "https://pnggrid.com/wp-content/uploads/2021/05/Discord-Logo-Circle-1024x1024.png",
sidebar: {
darkUrl: 'https://assistantscenter.com/img/logo.png',
lightUrl: 'https://assistanscenter.com/img/logo.png',
hideName: true,
borderRadius: false,
alignCenter: true
},
},
index: {
graph: {
enabled: true,
lineGraph: false,
title: 'Memory Usage',
tag: 'Memory (MB)',
max: 1024
},
},
sweetalert: {
errors: {},
success: {
login: "Successfully logged in.",
}
},
preloader: {
image: "/img/soft-ui.webp",
spinner: false,
text: "Page is loading",
},
admin: {
pterodactyl: {
enabled: false,
apiKey: "apiKey",
panelLink: "https://panel.website.com",
serverUUIDs: []
}
},
commands: [],
}),
settings: []
});
Dashboard.init();
})();

0 comments on commit 8284bc3

Please sign in to comment.