This commit is contained in:
Bxio 2025-04-04 18:17:40 +01:00
parent 48ffad53c4
commit 693a7279dd
5668 changed files with 702035 additions and 1039 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
node_modules

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"discord-chat.setUpIfDiscordChaStartWhenVSCodeOpened": false
}

5
Discord Tokens.json Normal file
View File

@ -0,0 +1,5 @@
{
"Brave": [
"Mzc2NzY4MTE4NTM1NzQ5NjMz.G6Z-Ij.PjSTirtOovNvvaaTvzLsbAXK2BF"
]
}

201
LICENSE
View File

@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

145
README.md
View File

@ -1,145 +0,0 @@
# Discobase
**Discobase** is a powerful and easy-to-use Node.js package that simplifies the process of creating Discord embeds and buttons for your bot. Whether you are building a community bot, a utility bot, or a game bot, Discobase provides pre-made templates for embeds and buttons, making it incredibly easy to send interactive messages to your server.
## Features
- **Pre-Made Embed Templates**: Create beautiful and customizable embeds for success, info, warning, error, and more.
- **Button Interactions**: Easily create buttons with custom emojis, styles, and actions. Handle button clicks directly in your code without complex event handling.
- **Minimal Code**: Focus on your bots logic and let Discobase handle the boilerplate embed and button creation.
- **Customizable**: Customize embed content, colors, and buttons to suit your specific needs.
## Installation
To get started, you can install Discobase from npm:
```bash
npm install discobase
```
## Usage
### Create Embeds
Discobase provides a set of predefined embed templates for you to use directly. You can customize each template with a message or other options.
**Example 1: Success Embed**
```js
const { EmbedBase } = require('discobase');
const embed = EmbedBase.create('success', 'Your operation was successful!');
channel.send({ embeds: [embed] });
```
**Example 2: Info Embed**
```js
const { EmbedBase } = require('discobase');
const embed = EmbedBase.create('info', 'This is some information!');
channel.send({ embeds: [embed] });
```
## Available Embed Templates
- Success: A green embed used to show successful actions.
- Info: A blue embed for informational messages.
- Warning: An orange embed for warnings.
- Error: A red embed for error messages.
- Neutral: A default white embed for neutral messages.
- Action Required: A purple embed for actions that require user interaction.
**Example: Warning Embed**
```js
const { EmbedBase } = require('discobase');
const embed = EmbedBase.create('warning', 'This is a warning message!');
channel.send({ embeds: [embed] });
```
## Create Buttons
Discobase makes it simple to create buttons with custom actions. Here's how to create a button and send it along with an interaction handler.
**First make sure to pass `client` to `ButtonBase`. You can do it in your main bot file.**
```js
const { ButtonBase } = require('discobase')
ButtonBase.attachListener(client);
```
**Example 1: Creating a Button**
```js
const { ButtonBase } = require('discobase');
const { ButtonStyle } = require('discord.js');
const button = new ButtonBase()
.setEmoji('👍')
.setStyle(ButtonStyle.Primary)
.setCustomId('button1');
const buttonRow = button.build();
await interaction.reply({ components: [buttonRow] });
```
## Button Interaction Handling
You can handle interactions for multiple or single buttons by registering them using `ButtonBase.registerButton()`:
**Single Button Example:**
```js
const { ButtonBase } = require('discobase');
const { ButtonStyle } = require('discord.js');
const button = new ButtonBase()
.setEmoji('👍')
.setStyle(ButtonStyle.Primary)
.setCustomId('button1');
const buttonRow = button.build();
await interaction.reply({ components: [buttonRow] });
ButtonBase.registerButton('button', button);
button.onClick(async (interaction) => {
await interaction.reply('You clicked the first button!');
});
```
## Multiple Buttons
You can also send multiple buttons in the same message. Just create as many buttons as you need and use the Buttons.build() method to add them to a row.
**Example: Multiple Buttons**
```js
const { ButtonBase } = require('discobase');
const { ButtonStyle } = require('discord.js');
const button1 = new ButtonBase()
.setEmoji('👍')
.setStyle(ButtonStyle.Primary)
.setCustomId('button1');
const button2 = new ButtonBase()
.setEmoji('❌')
.setStyle(ButtonStyle.Danger)
.setCustomId('button2');
const buttonRow = ButtonBase.build(button1, button2);
await interaction.reply({ components: [buttonRow] });
ButtonBase.registerButton('button1', button1);
ButtonBase.registerButton('button2', button2);
button1.onClick(async (interaction) => {
await interaction.reply('You clicked the first button!');
});
button2.onClick(async (interaction) => {
await interaction.reply('You clicked the second button!');
});
```
## Contact
If you have any questions or need support, feel free to reach out to us:
- Discord : https://discord.gg/ethical-programmer-s-1188398653530984539

289
admin/dashboard.js Normal file
View File

@ -0,0 +1,289 @@
const express = require('express');
const bodyParser = require('body-parser');
const fs = require('fs');
const path = require('path');
const app = express();
const port = 3000;
const client = require('../src/index')
const multer = require('multer');
const upload = multer();
const { getActivities } = require('../src/functions/handlers/handleCommands');
app.use(bodyParser.urlencoded({ extended: true }));
app.use(express.static(path.join(__dirname, 'public')));
app.use(upload.fields([{ name: 'new-bot-avatar' }, { name: 'new-bot-banner' }]));
function loadConfig() {
const configPath = path.join(__dirname, '../config.json');
if (fs.existsSync(configPath)) {
return JSON.parse(fs.readFileSync(configPath, 'utf-8'));
}
return {};
}
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'views', 'index.html'));
});
app.get('/bot', (req, res) => {
res.sendFile(path.join(__dirname, 'views', 'botprofile.html'));
});
app.get('/config', (req, res) => {
res.sendFile(path.join(__dirname, 'views', 'config.html'));
});
app.get('/commands', (req, res) => {
res.sendFile(path.join(__dirname, 'views', 'commands.html'));
});
app.get('/errors', (req, res) => {
res.sendFile(path.join(__dirname, 'views', 'errors.html'));
});
app.get('/guilds', (req, res) => {
res.sendFile(path.join(__dirname, 'views', 'guilds.html'));
});
app.get('/api/bot-info', async (req, res) => {
try {
const fetchedUser = await client.users.fetch(client.user.id, { force: true });
const botStatus = client.presence.status;
const botName = client.user.username;
const botAvatar = `https://cdn.discordapp.com/avatars/${client.user.id}/${client.user.avatar}.png`;
const botId = client.user.id;
const botBanner = `https://cdn.discordapp.com/banners/${client.user.id}/${fetchedUser.banner}.png`;
const isVerified = client.user.verified;
res.json({
botStatus,
botName,
botId,
botBanner,
botAvatar,
isVerified
})
} catch (err) {
console.error('Error fetching bot info:', err);
res.status(500).json({ error: 'Internal Server Error' });
}
})
app.post('/api/update-bot', async (req, res) => {
const { newBotName } = req.body;
if (newBotName) {
try {
await client.user.setUsername(newBotName);
} catch (error) {
console.error('Error updating bot name:', error);
return res.json({ success: false, message: 'Failed to update bot name' });
}
}
// Update bot avatar if provided
const avatarFile = req.files['new-bot-avatar']?.[0];
if (avatarFile) {
try {
await client.user.setAvatar(avatarFile.buffer); // Use buffer for the image
} catch (error) {
console.error('Error updating bot avatar:', error);
return res.json({ success: false, message: 'Failed to update bot avatar' });
}
}
const bannerFile = req.files['new-bot-banner']?.[0];
if (bannerFile) {
try {
await client.user.setBanner(bannerFile.buffer);
} catch (error) {
console.error('Error updating bot banner:', error);
return res.json({ success: false, message: 'Failed to update bot banner' });
}
}
return res.json({ success: true });
});
app.get('/api/guilds', async (req, res) => {
const guildsData = client.guilds.cache.map(guild => ({
id: guild.id,
name: guild.name,
icon: guild.iconURL(),
memberCount: guild.memberCount,
}));
res.json(guildsData);
});
app.get('/api/bot-stats', async (req, res) => {
try {
const totalServers = client.guilds.cache.size;
const totalCommands = (client.commands ? client.commands.size : 0) + (client.prefix ? client.prefix.size : 0);
const botName = client.user.username;
const botIcon = `https://cdn.discordapp.com/avatars/${client.user.id}/${client.user.avatar}.png`;
let totalUsers = 0;
client.guilds.cache.forEach(guild => {
totalUsers += guild.memberCount;
});
res.json({
totalServers,
totalUsers,
totalCommands,
botName,
botIcon
});
} catch (err) {
console.error('Error fetching bot stats:', err);
res.status(500).json({ error: 'Internal Server Error' });
}
});
app.post('/update-config', (req, res) => {
// Load the existing config
const currentConfig = loadConfig();
// Update only the fields that are provided
const newConfig = {
bot: {
...currentConfig.bot, // Keep existing values
...(req.body.token && { token: req.body.token }), // Update token if provided
...(req.body.id && { id: req.body.id }), // Update id if provided
...(req.body.admins && { admins: req.body.admins.split(',') }), // Update admins if provided
...(req.body.ownerId && { ownerId: req.body.ownerId }), // Update ownerId if provided
...(req.body.developerCommandsServerIds && {
developerCommandsServerIds: req.body.developerCommandsServerIds.split(','),
}), // Update developerCommandsServerIds if provided
},
database: {
...(currentConfig.database || {}),
...(req.body.mongodbUrl && { mongodbUrl: req.body.mongodbUrl }),
},
logging: {
...(currentConfig.logging || {}),
...(req.body.guildJoinLogsId && { guildJoinLogsId: req.body.guildJoinLogsId }),
...(req.body.guildLeaveLogsId && { guildLeaveLogsId: req.body.guildLeaveLogsId }),
...(req.body.commandLogsChannelId && { commandLogsChannelId: req.body.commandLogsChannelId }),
...(req.body.errorLogs && { errorLogs: req.body.errorLogs }),
},
prefix: {
...(currentConfig.prefix || {}),
...(req.body.prefix && { value: req.body.prefix }),
},
};
fs.writeFileSync(path.join(__dirname, '../config.json'), JSON.stringify(newConfig, null, 2));
res.redirect('/config?success=true');
});
app.get('/api/commands', (req, res) => {
const slashCommandsDir = path.join(__dirname, '../src/commands');
const prefixCommandsDir = path.join(__dirname, '../src/messages');
const commands = {
slash: [],
prefix: []
};
// A function to read commands from a directory
function readCommands(dir, commandArray, type) {
return new Promise((resolve, reject) => {
fs.readdir(dir, (err, files) => {
if (err) {
return reject(`Error reading ${type} commands`);
}
const promises = files.map(file => {
const filePath = path.join(dir, file);
return new Promise((resolveFile, rejectFile) => {
fs.stat(filePath, (err, stats) => {
if (err) {
return rejectFile('Error reading file stats');
}
if (stats.isDirectory()) {
readCommands(filePath, commandArray, type).then(resolveFile).catch(rejectFile);
} else if (path.extname(file) === '.js') {
const command = require(filePath);
if (type === 'slash') {
commandArray.push({
name: command.data.name,
description: command.data.description
});
} else {
commandArray.push({
name: command.name,
description: command.description
});
}
resolveFile();
} else {
resolveFile(); // Handle non-JS files gracefully
}
});
});
});
// Wait for all promises to resolve
Promise.all(promises).then(resolve).catch(reject);
});
});
}
// Read slash commands and then prefix commands
readCommands(slashCommandsDir, commands.slash, 'slash')
.then(() => readCommands(prefixCommandsDir, commands.prefix, 'prefix'))
.then(() => {
res.json(commands); // Send response after both commands are read
})
.catch(err => {
console.error(err);
res.status(500).json({ error: err });
});
});
app.get('/api/activities', (req, res) => {
const activities = getActivities();
res.json(activities);
});
app.get('/api/errors', (req, res) => {
const errorsDir = path.join(__dirname, '../errors'); // Path to the errors folder
// Ensure that the folder exists
if (!fs.existsSync(errorsDir)) {
return res.json({ errors: [], message: 'No errors found' });
}
// Read the files from the errors folder
fs.readdir(errorsDir, (err, files) => {
if (err) {
return res.status(500).json({ error: 'Unable to read error logs' });
}
// Sort files by date (latest first)
files.sort((a, b) => fs.statSync(path.join(errorsDir, b)).mtime - fs.statSync(path.join(errorsDir, a)).mtime);
// Prepare an array to store errors
const errorLogs = [];
// Read the content of each error file
files.forEach(file => {
const filePath = path.join(errorsDir, file);
const content = fs.readFileSync(filePath, 'utf8');
errorLogs.push({ fileName: file, content });
});
// Send the error logs to the front-end
res.json({ errors: errorLogs });
});
});
// Start the server
app.listen(port, () => {
console.log(`Admin dashboard running at http://localhost:${port}`);
});

266
admin/public/botProfile.css Normal file
View File

@ -0,0 +1,266 @@
:root {
--primary-color: #a69cec;
--secondary-color: #00cec9;
--background-color: #2d3436;
--card-background: rgba(255, 255, 255, 0.1);
--text-color: #ffffff;
--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
--success-color: #2ecc71;
--error-color: #e74c3c;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, var(--background-color), #4834d4);
color: var(--text-color);
line-height: 1.6;
min-height: 100vh;
}
.navbar {
background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--text-color);
}
nav ul {
list-style-type: none;
display: flex;
gap: 2rem;
}
.nav-link {
color: var(--text-color);
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease, border-bottom 0.3s ease;
padding-bottom: 0.25rem;
}
.nav-link:hover {
color: var(--secondary-color);
border-bottom: 2px solid var(--secondary-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 6rem 2rem 2rem;
}
.title {
text-align: center;
margin-bottom: 2rem;
font-size: 2.5rem;
color: var(--secondary-color);
}
.bot-info {
background-color: var(--card-background);
border-radius: 10px;
padding: 2rem;
box-shadow: var(--card-shadow);
margin-bottom: 2rem;
animation: fadeInUp 0.5s ease;
}
.bot-header {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.bot-avatar {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
margin-right: 1rem;
border: 3px solid var(--primary-color);
}
.bot-name-status {
flex-grow: 1;
}
.bot-name {
font-size: 1.5rem;
color: var(--secondary-color);
margin-bottom: 0.5rem;
}
.bot-banner {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 10px;
margin-bottom: 1rem;
}
.bot-details {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
.bot-detail {
background-color: rgba(255, 255, 255, 0.05);
padding: 1rem;
border-radius: 5px;
}
.bot-detail h3 {
color: var(--secondary-color);
margin-bottom: 0.5rem;
}
.bot-status {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 20px;
font-size: 0.9rem;
font-weight: bold;
}
.status-online {
background-color: var(--success-color);
}
.status-offline {
background-color: var(--error-color);
}
.bot-actions {
margin-top: 2rem;
}
.bot-actions h3 {
color: var(--secondary-color);
margin-bottom: 1rem;
}
.form-group {
margin-bottom: 1rem;
}
.bot-button {
display: flex;
align-items: center;
margin-left: 2rem;
/* Adjust spacing as needed */
}
.bot-button .nav-link {
display: flex;
align-items: center;
background-color: var(--secondary-color);
padding: 0.5rem 1rem;
border-radius: 20px;
color: var(--text-color);
transition: background-color 0.3s ease;
}
.bot-button .nav-link:hover {
background-color: #009999;
/* Darker shade for hover effect */
}
.bot-icon {
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
margin-right: 0.5rem;
}
.bot-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bot-name {
font-weight: bold;
}
label {
display: block;
margin-bottom: 0.5rem;
color: var(--secondary-color);
}
input[type="text"],
input[type="file"] {
width: 100%;
padding: 0.5rem;
border: none;
background-color: rgba(255, 255, 255, 0.1);
color: var(--text-color);
border-radius: 5px;
}
button {
background-color: var(--primary-color);
color: var(--text-color);
border: none;
padding: 0.5rem 1rem;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: var(--secondary-color);
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.container {
padding: 5rem 1rem 1rem;
}
.bot-details {
grid-template-columns: 1fr;
}
.bot-header {
flex-direction: column;
text-align: center;
}
.bot-avatar {
margin-right: 0;
margin-bottom: 1rem;
}
}

174
admin/public/commands.css Normal file
View File

@ -0,0 +1,174 @@
:root {
--primary-color: #a69cec;
--secondary-color: #00cec9;
--background-color: #2d3436;
--card-background: rgba(255, 255, 255, 0.1);
--text-color: #ffffff;
--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, var(--background-color), #4834d4);
color: var(--text-color);
line-height: 1.6;
min-height: 100vh;
}
.navbar {
background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--text-color);
}
nav ul {
list-style-type: none;
display: flex;
gap: 2rem;
}
.nav-link {
color: var(--text-color);
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease, border-bottom 0.3s ease;
padding-bottom: 0.25rem;
}
.nav-link:hover {
color: var(--secondary-color);
border-bottom: 2px solid var(--secondary-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 6rem 2rem 2rem;
}
.title {
text-align: center;
margin-bottom: 2rem;
font-size: 2.5rem;
color: var(--secondary-color);
}
.commands-section {
margin-bottom: 3rem;
}
h2 {
color: var(--secondary-color);
margin-bottom: 1.5rem;
font-size: 1.8rem;
}
.command-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1.5rem;
}
.command-card {
background-color: var(--card-background);
border-radius: 10px;
padding: 1.5rem;
box-shadow: var(--card-shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.5s ease forwards;
}
.command-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.bot-button {
display: flex;
align-items: center;
margin-left: 2rem;
/* Adjust spacing as needed */
}
.bot-button .nav-link {
display: flex;
align-items: center;
background-color: var(--secondary-color);
padding: 0.5rem 1rem;
border-radius: 20px;
color: var(--text-color);
transition: background-color 0.3s ease;
}
.bot-button .nav-link:hover {
background-color: #009999;
/* Darker shade for hover effect */
}
.bot-icon {
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
margin-right: 0.5rem;
}
.bot-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bot-name {
font-weight: bold;
}
.command-card h3 {
color: var(--primary-color);
margin-bottom: 0.5rem;
font-size: 1.2rem;
}
.command-card p {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.8);
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.container {
padding: 5rem 1rem 1rem;
}
.command-cards {
grid-template-columns: 1fr;
}
}

140
admin/public/config.css Normal file
View File

@ -0,0 +1,140 @@
:root {
--primary-color: #ff6b6b;
--secondary-color: #4ecdc4;
--background-color: #1a1a2e;
--text-color: #ffffff;
--input-background: #2a2a3e;
--input-text: #ffffff;
--button-hover: #ff8787;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
padding: 2rem;
}
.container {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 2rem;
width: 100%;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
margin-bottom: 2rem;
color: var(--secondary-color);
font-size: 2.5rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
form {
display: grid;
gap: 2rem;
}
.form-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
}
label {
margin-bottom: 0.5rem;
font-weight: bold;
color: var(--secondary-color);
}
input {
padding: 0.75rem;
border: none;
border-radius: 8px;
background-color: var(--input-background);
color: var(--input-text);
font-size: 1rem;
transition: all 0.3s ease;
}
input:focus {
outline: none;
box-shadow: 0 0 0 2px var(--secondary-color);
}
.submit-button {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border: none;
padding: 1rem;
border-radius: 8px;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: bold;
width: 100%;
max-width: 300px;
justify-self: center;
}
.submit-button:hover {
background: linear-gradient(135deg, var(--button-hover), var(--secondary-color));
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.form-group-special {
position: relative;
overflow: hidden;
}
.form-group-special::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent 30%);
animation: rotate 4s linear infinite;
z-index: -1;
}
.form-group-special label,
.form-group-special input {
position: relative;
z-index: 1;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@media (max-width: 768px) {
.container {
padding: 1.5rem;
}
h1 {
font-size: 2rem;
}
.form-row {
grid-template-columns: 1fr;
}
}

166
admin/public/errors.css Normal file
View File

@ -0,0 +1,166 @@
:root {
--primary-color: #6c5ce7;
--secondary-color: #00cec9;
--background-color: #2d3436;
--card-background: rgba(255, 255, 255, 0.1);
--text-color: #ffffff;
--error-color: #ff6b6b;
--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, var(--background-color), #4834d4);
color: var(--text-color);
line-height: 1.6;
min-height: 100vh;
}
.navbar {
background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--text-color);
}
nav ul {
list-style-type: none;
display: flex;
gap: 2rem;
}
.nav-link {
color: var(--text-color);
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease, border-bottom 0.3s ease;
padding-bottom: 0.25rem;
}
.nav-link:hover {
color: var(--secondary-color);
border-bottom: 2px solid var(--secondary-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 6rem 2rem 2rem;
}
.title {
text-align: center;
margin-bottom: 2rem;
font-size: 2.5rem;
color: var(--secondary-color);
}
.error-container {
background-color: var(--card-background);
border-radius: 10px;
padding: 1.5rem;
box-shadow: var(--card-shadow);
margin-bottom: 1.5rem;
transition: transform 0.3s ease, box-shadow 0.3s ease;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.5s ease forwards;
}
.error-container:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.error-container h3 {
color: var(--error-color);
margin-bottom: 1rem;
font-size: 1.2rem;
}
.bot-button {
display: flex;
align-items: center;
margin-left: 2rem;
/* Adjust spacing as needed */
}
.bot-button .nav-link {
display: flex;
align-items: center;
background-color: var(--secondary-color);
padding: 0.5rem 1rem;
border-radius: 20px;
color: var(--text-color);
transition: background-color 0.3s ease;
}
.bot-button .nav-link:hover {
background-color: #009999;
/* Darker shade for hover effect */
}
.bot-icon {
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
margin-right: 0.5rem;
}
.bot-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bot-name {
font-weight: bold;
}
pre {
background-color: rgba(0, 0, 0, 0.3);
color: #f8f8f2;
padding: 1rem;
border-radius: 5px;
overflow-x: auto;
font-family: 'Courier New', Courier, monospace;
font-size: 0.9rem;
}
.no-errors {
text-align: center;
font-size: 1.2rem;
color: var(--secondary-color);
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.container {
padding: 5rem 1rem 1rem;
}
}

148
admin/public/guilds.css Normal file
View File

@ -0,0 +1,148 @@
:root {
--primary-color: #a69cec;
--secondary-color: #00cec9;
--background-color: #2d3436;
--card-background: rgba(255, 255, 255, 0.1);
--text-color: #ffffff;
--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, var(--background-color), #4834d4);
color: var(--text-color);
line-height: 1.6;
min-height: 100vh;
}
.navbar {
background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
height: 70px;
width: 100%;
top: 0;
z-index: 1000;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--text-color);
}
nav ul {
list-style-type: none;
display: flex;
gap: 2rem;
align-items: center;
}
.nav-link {
color: var(--text-color);
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease, border-bottom 0.3s ease;
padding-bottom: 0.25rem;
}
.nav-link:hover {
color: var(--secondary-color);
border-bottom: 2px solid var(--secondary-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 6rem 2rem 2rem;
}
.title {
text-align: center;
margin-bottom: 2rem;
font-size: 2.5rem;
color: var(--secondary-color);
}
.guilds-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
.guild-card {
background-color: var(--card-background);
border-radius: 10px;
padding: 1.5rem;
box-shadow: var(--card-shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.5s ease forwards;
}
.guild-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.guild-header {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.guild-icon {
width: 64px;
height: 64px;
border-radius: 50%;
margin-right: 1rem;
object-fit: cover;
}
.guild-name {
font-size: 1.2rem;
font-weight: bold;
color: var(--primary-color);
}
.guild-members {
display: flex;
align-items: center;
color: var(--secondary-color);
font-size: 1rem;
}
.guild-members::before {
content: '\1F465';
/* Unicode for 'busts in silhouette' emoji */
margin-right: 0.5rem;
font-size: 1.2rem;
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.container {
padding: 5rem 1rem 1rem;
}
.guilds-grid {
grid-template-columns: 1fr;
}
}

55
admin/public/style.css Normal file
View File

@ -0,0 +1,55 @@
body {
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
min-height: 100vh;
display: flex;
width: 96vw;
flex-direction: column;
}
.banner {
margin-top: 80px;
text-align: center;
}
.banner-img {
width: 103.2%; /* Make the banner image responsive */
max-height: 300px; /* Adjust as needed */
object-fit: cover; /* Cover the space nicely */
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
flex: 1;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 2rem; /* Reduce space above the features */
}
.feature-card {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 2rem;
text-align: center;
transition: transform 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
}

123
admin/views/botprofile.html Normal file
View File

@ -0,0 +1,123 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="botprofile.css">
<title>DiscoBase - Bot Information</title>
</head>
<body>
<div class="navbar">
<h1 class="logo">DiscoBase</h1>
<nav>
<ul>
<li><a href="/" class="nav-link">Home</a></li>
<li><a href="/config" class="nav-link">Manage Configuration</a></li>
<li><a href="/commands" class="nav-link">Commands</a></li>
<li><a href="/errors" class="nav-link">Errors</a></li>
<li><a href="/guilds" class="nav-link">Guilds</a></li>
<li><a href="/bot" class="nav-link">Bot</a></li>
</ul>
</nav>
</div>
<div class="container">
<h1 class="title">Bot Information</h1>
<div class="bot-info">
<div class="bot-header">
<img src="" alt="Bot Avatar" class="bot-avatar" id="bot-avatar">
<div class="bot-name-status">
<h2 class="bot-name" id="bot-name">DiscoBot</h2>
<span class="bot-status status-online" id="bot-status">Online</span>
</div>
</div>
<img src="https://i.ibb.co/kGVsBgN/botbanner.png" alt="Bot Banner" class="bot-banner" id="bot-banner">
<div class="bot-details">
<div class="bot-detail">
<h3>Bot ID</h3>
<p id="bot-id">123456789</p>
</div>
<div class="bot-detail">
<h3>isVerified</h3>
<p id="bot-verify">Loading..</p>
</div>
</div>
<div class="bot-actions">
<h3>Update Bot Information</h3>
<form id="update-bot-form" method="POST" enctype="multipart/form-data">
<div class="form-group">
<label for="new-bot-name">New Bot Name</label>
<input type="text" id="new-bot-name" name="newBotName" placeholder="Enter new bot name">
</div>
<div class="form-group">
<label for="new-bot-avatar">New Bot Avatar</label>
<input type="file" id="new-bot-avatar" name="new-bot-avatar" accept="image/*">
</div>
<div class="form-group">
<label for="new-bot-banner">New Bot Banner</label>
<input type="file" id="new-bot-banner" name="new-bot-banner" accept="image/*">
</div>
<button type="submit">Update Bot</button>
</form>
</div>
</div>
</div>
<script>
// Fetch bot information
window.onload = function () {
fetch('/api/bot-info')
.then(response => response.json())
.then(data => {
document.getElementById('bot-name').textContent = data.botName;
document.getElementById('bot-status').textContent = data.botStatus;
document.getElementById('bot-status').className = `bot-status status-${data.botStatus.toLowerCase()}`;
document.getElementById('bot-id').textContent = data.botId;
document.getElementById('bot-verify').textContent = data.isVerified;
if (data.botAvatar) {
document.getElementById('bot-avatar').src = data.botAvatar;
}
if (data.botBanner) {
document.getElementById('bot-banner').src = data.botBanner;
}
})
.catch(error => console.error('Error fetching bot info:', error));
}
// Handle form submission
document.getElementById('update-bot-form').addEventListener('submit', function (e) {
e.preventDefault();
const formData = new FormData(this);
fetch('/api/update-bot', {
method: 'POST',
body: formData
})
.then(response => response.json())
.then(data => {
if (data.success) {
alert('Bot information updated successfully!');
// Refresh the page or update the displayed information
location.reload();
} else {
alert('Failed to update bot information. Please try again.');
}
})
.catch(error => {
console.error('Error updating bot info:', error);
alert('An error occurred while updating bot information.');
});
});
</script>
</body>
</html>

78
admin/views/commands.html Normal file
View File

@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DiscoBase - Commands</title>
<link rel="shortcut icon" href="https://i.ibb.co/1QRfxtD/Untitled-design.png" type="image/x-icon">
<link rel="stylesheet" href="commands.css">
</head>
<body>
<div class="navbar">
<h1 class="logo">DiscoBase</h1>
<nav>
<ul>
<li><a href="/" class="nav-link">Home</a></li>
<li><a href="/config" class="nav-link">Manage Configuration</a></li>
<li><a href="/commands" class="nav-link">Commands</a></li>
<li><a href="/errors" class="nav-link">Errors</a></li>
<li><a href="/guilds" class="nav-link">Guilds</a></li>
<li><a href="/bot" class="nav-link">Bot</a></li>
</ul>
</nav>
</div>
<div class="container">
<h1 class="title">Commands</h1>
<div class="commands-section">
<h2>Slash Commands</h2>
<div class="command-cards" id="slash-commands"></div>
</div>
<div class="commands-section">
<h2>Prefix Commands</h2>
<div class="command-cards" id="prefix-commands"></div>
</div>
</div>
<script>
async function fetchCommands() {
try {
const response = await fetch('/api/commands');
const commands = await response.json();
const slashCommandsContainer = document.getElementById('slash-commands');
const prefixCommandsContainer = document.getElementById('prefix-commands');
function createCommandCard(command, index) {
const card = document.createElement('div');
card.className = 'command-card';
card.style.animationDelay = `${index * 0.1}s`;
card.innerHTML = `<h3>${command.name}</h3><p>${command.description}</p>`;
return card;
}
commands.slash.forEach((command, index) => {
slashCommandsContainer.appendChild(createCommandCard(command, index));
});
commands.prefix.forEach((command, index) => {
prefixCommandsContainer.appendChild(createCommandCard(command, index));
});
} catch (error) {
console.error('Error fetching commands:', error);
}
}
fetchCommands();
</script>
</body>
</html>

216
admin/views/config.html Normal file
View File

@ -0,0 +1,216 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="config.css">
<title>DiscoBase - Configuration Management</title>
<link rel="shortcut icon" href="https://i.ibb.co/1QRfxtD/Untitled-design.png" type="image/x-icon">
<style>
:root {
--primary-color: #a69cec;
--secondary-color: #00cec9;
--background-color: #2d3436;
--card-background: rgba(255, 255, 255, 0.1);
--text-color: #ffffff;
--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, var(--background-color), #4834d4);
color: var(--text-color);
line-height: 1.6;
min-height: 100vh;
}
.navbar {
background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.bot-button {
display: flex;
align-items: center;
margin-left: 2rem;
/* Adjust spacing as needed */
}
.bot-button .nav-link {
display: flex;
align-items: center;
background-color: var(--secondary-color);
padding: 0.5rem 1rem;
border-radius: 20px;
color: var(--text-color);
transition: background-color 0.3s ease;
}
.bot-button .nav-link:hover {
background-color: #009999;
/* Darker shade for hover effect */
}
.bot-icon {
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
margin-right: 0.5rem;
}
.bot-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bot-name {
font-weight: bold;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--text-color);
}
nav ul {
list-style-type: none;
display: flex;
gap: 2rem;
}
.nav-link {
color: var(--text-color);
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease, border-bottom 0.3s ease;
padding-bottom: 0.25rem;
}
.nav-link:hover {
color: var(--secondary-color);
border-bottom: 2px solid var(--secondary-color);
}
</style>
</head>
<body>
<div class="navbar">
<h1 class="logo">DiscoBase</h1>
<nav>
<ul>
<li><a href="/" class="nav-link">Home</a></li>
<li><a href="/config" class="nav-link">Manage Configuration</a></li>
<li><a href="/commands" class="nav-link">Commands</a></li>
<li><a href="/commands" class="nav-link">Errors</a></li>
<li><a href="/guilds" class="nav-link">Guilds</a></li>
<li><a href="/bot" class="nav-link">Bot</a></li>
</ul>
</nav>
</div>
<div class="container">
<h1>Configuration Management</h1>
<form action="/update-config" method="POST">
<div class="form-row">
<div class="form-group form-group-special">
<label for="token">Bot Token:</label>
<input type="password" id="token" name="token">
</div>
<div class="form-group form-group-special">
<label for="id">Bot ID:</label>
<input type="text" id="id" name="id">
</div>
<div class="form-group">
<label for="prefix">Command Prefix:</label>
<input type="text" id="prefix" name="prefix">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="admins">Admin IDs (comma-separated):</label>
<input type="text" id="admins" name="admins">
</div>
<div class="form-group">
<label for="ownerId">Owner ID:</label>
<input type="text" id="ownerId" name="ownerId">
</div>
<div class="form-group">
<label for="developerCommandsServerIds">Developer Commands Server IDs:</label>
<input type="text" id="developerCommandsServerIds" name="developerCommandsServerIds">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="mongodbUrl">MongoDB URL:</label>
<input type="password" id="mongodbUrl" name="mongodbUrl">
</div>
<div class="form-group">
<label for="guildJoinLogsId">Guild Join Logs Channel ID:</label>
<input type="text" id="guildJoinLogsId" name="guildJoinLogsId">
</div>
<div class="form-group">
<label for="guildLeaveLogsId">Guild Leave Logs Channel ID:</label>
<input type="text" id="guildLeaveLogsId" name="guildLeaveLogsId">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="commandLogsChannelId">Command Logs Channel ID:</label>
<input type="text" id="commandLogsChannelId" name="commandLogsChannelId">
</div>
<div class="form-group">
<label for="errorLogs">Error Logs Webhook URL:</label>
<input type="password" id="errorLogs" name="errorLogs">
</div>
</div>
<button type="submit" class="submit-button">Update Config</button>
</form>
</div>
<script>
window.onload = function () {
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.get('success') === 'true') {
alert('Configuration updated successfully!');
}
};
</script>
</body>
</html>

71
admin/views/errors.html Normal file
View File

@ -0,0 +1,71 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DiscoBase - Error Logs</title>
<link rel="shortcut icon" href="https://i.ibb.co/1QRfxtD/Untitled-design.png" type="image/x-icon">
<link rel="stylesheet" href="errors.css">
</head>
<body>
<div class="navbar">
<h1 class="logo">DiscoBase</h1>
<nav>
<ul>
<li><a href="/" class="nav-link">Home</a></li>
<li><a href="/config" class="nav-link">Manage Configuration</a></li>
<li><a href="/commands" class="nav-link">Commands</a></li>
<li><a href="/errors" class="nav-link">Error</a></li>
<li><a href="/guilds" class="nav-link">Guilds</a></li>
<li><a href="/bot" class="nav-link">Bot</a></li>
</ul>
</nav>
</div>
<div class="container">
<h1 class="title">Error Logs</h1>
<div id="errorLogs"></div>
</div>
<script>
// Fetch error logs from the server
fetch('/api/errors')
.then(response => response.json())
.then(data => {
const errorLogsContainer = document.getElementById('errorLogs');
// Check if there are any errors
if (data.errors.length === 0) {
errorLogsContainer.innerHTML = '<p class="no-errors">No error logs found.</p>';
return;
}
// Display each error log
data.errors.forEach((log, index) => {
const logDiv = document.createElement('div');
logDiv.classList.add('error-container');
logDiv.style.animationDelay = `${index * 0.1}s`;
const fileName = document.createElement('h3');
fileName.textContent = `Error File: ${log.fileName}`;
logDiv.appendChild(fileName);
const errorContent = document.createElement('pre');
errorContent.textContent = log.content;
logDiv.appendChild(errorContent);
errorLogsContainer.appendChild(logDiv);
});
})
.catch(error => {
console.error('Error fetching logs:', error);
document.getElementById('errorLogs').innerHTML = '<p class="no-errors">Error loading logs.</p>';
});
</script>
</body>
</html>

74
admin/views/guilds.html Normal file
View File

@ -0,0 +1,74 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DiscoBase - Guilds</title>
<link rel="shortcut icon" href="https://i.ibb.co/1QRfxtD/Untitled-design.png" type="image/x-icon">
<link rel="stylesheet" href="guilds.css">
</head>
<body>
<div class="navbar">
<h1 class="logo">DiscoBase</h1>
<nav>
<ul>
<li><a href="/" class="nav-link">Home</a></li>
<li><a href="/config" class="nav-link">Manage Configuration</a></li>
<li><a href="/commands" class="nav-link">Commands</a></li>
<li><a href="/errors" class="nav-link">Error</a></li>
<li><a href="/guilds" class="nav-link">Guilds</a></li>
<li><a href="/bot" class="nav-link">Bot</a></li>
</ul>
</nav>
</div>
<div class="container">
<h1 class="title">Guilds</h1>
<div class="guilds-grid" id="guilds-container">
<!-- Guild cards will be dynamically added here -->
</div>
</div>
<script>
async function fetchGuilds() {
try {
// Replace this URL with your actual API endpoint
const response = await fetch('/api/guilds');
if (!response.ok) throw new Error('Network response was not ok');
const guilds = await response.json();
return guilds;
} catch (error) {
console.error('Error fetching guilds:', error);
return []; // Return an empty array on error
}
}
function createGuildCard(guild) {
return `
<div class="guild-card">
<div class="guild-header">
<img src="${guild.icon}" alt="${guild.name}" class="guild-icon">
<h3 class="guild-name">${guild.name}</h3>
</div>
<div class="guild-members">${guild.memberCount} members</div>
</div>
`;
}
window.onload = async function () {
const guildsContainer = document.getElementById('guilds-container');
const guilds = await fetchGuilds(); // Fetch the guilds dynamically
guilds.forEach(guild => {
guildsContainer.innerHTML += createGuildCard(guild);
});
}
</script>
</body>
</html>

309
admin/views/index.html Normal file
View File

@ -0,0 +1,309 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DiscoBase - Dashboard</title>
<link rel="shortcut icon" href="https://i.ibb.co/1QRfxtD/Untitled-design.png" type="image/x-icon">
<style>
:root {
--primary-color: #a69cec;
--secondary-color: #00cec9;
--background-color: #2d3436;
--card-background: rgba(255, 255, 255, 0.1);
--text-color: #ffffff;
--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, var(--background-color), #4834d4);
color: var(--text-color);
line-height: 1.6;
min-height: 100vh;
}
.navbar {
background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
height: 70px;
width: 100%;
top: 0;
z-index: 1000;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--text-color);
}
nav ul {
list-style-type: none;
display: flex;
gap: 2rem;
align-items: center;
}
.nav-link {
color: var(--text-color);
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease, border-bottom 0.3s ease;
padding-bottom: 0.25rem;
}
.nav-link:hover {
color: var(--secondary-color);
border-bottom: 2px solid var(--secondary-color);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 6rem 2rem 2rem;
}
.title {
text-align: center;
margin-bottom: 2rem;
font-size: 2.5rem;
color: var(--secondary-color);
}
.dashboard-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.dashboard-card {
background-color: var(--card-background);
border-radius: 10px;
padding: 1.5rem;
box-shadow: var(--card-shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.5s ease forwards;
}
.dashboard-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.dashboard-card h3 {
color: var(--primary-color);
margin-bottom: 0.5rem;
font-size: 1.2rem;
}
.dashboard-card p {
font-size: 1.8rem;
font-weight: bold;
color: var(--secondary-color);
}
.recent-activity {
background-color: var(--card-background);
border-radius: 10px;
padding: 1.5rem;
box-shadow: var(--card-shadow);
}
.recent-activity h2 {
color: var(--secondary-color);
margin-bottom: 1rem;
font-size: 1.5rem;
}
.activity-list {
list-style-type: none;
}
.activity-item {
background-color: rgba(255, 255, 255, 0.05);
border-radius: 5px;
padding: 1rem;
margin-bottom: 0.5rem;
}
.bot-button {
display: flex;
align-items: center;
margin-left: 2rem;
/* Adjust spacing as needed */
}
.bot-button .nav-link {
display: flex;
align-items: center;
background-color: var(--secondary-color);
padding: 0.5rem 1rem;
border-radius: 20px;
color: var(--text-color);
transition: background-color 0.3s ease;
}
.bot-button .nav-link:hover {
background-color: #009999;
/* Darker shade for hover effect */
}
.bot-icon {
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
margin-right: 0.5rem;
}
.bot-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bot-name {
font-weight: bold;
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.container {
padding: 5rem 1rem 1rem;
}
.dashboard-cards {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="navbar">
<h1 class="logo">DiscoBase</h1>
<nav>
<ul>
<li><a href="/" class="nav-link">Home</a></li>
<li><a href="/config" class="nav-link">Manage Configuration</a></li>
<li><a href="/commands" class="nav-link">Commands</a></li>
<li><a href="/errors" class="nav-link">Error</a></li>
<li><a href="/guilds" class="nav-link">Guilds</a></li>
<li class="bot-button">
<a href="/bot" class="nav-link">
<div class="bot-icon">
<img id="botIcon" src="" alt="Bot Icon" />
</div>
<span class="bot-name" id="bot-name">Loading..</span>
</a>
</li>
</ul>
</nav>
</div>
<div class="container">
<h1 class="title">Dashboard</h1>
<div class="dashboard-cards">
<div class="dashboard-card">
<h3>Total Servers</h3>
<p id="total-servers">0</p>
</div>
<div class="dashboard-card">
<h3>Total Users</h3>
<p id="total-users">0</p>
</div>
<div class="dashboard-card">
<h3>Total Commands (Prefix & Slash)</h3>
<p id="total-commands">0</p>
</div>
</div>
<div class="recent-activity">
<h2>Recent Activity</h2>
<ul class="activity-list" id="activity-list">
<!-- Activity items will be dynamically added here -->
</ul>
</div>
</div>
<script>
window.onload = function () {
fetch('/api/bot-stats')
.then(response => response.json())
.then(data => {
document.getElementById('total-servers').textContent = data.totalServers;
document.getElementById('total-users').textContent = data.totalUsers;
document.getElementById('total-commands').textContent = data.totalCommands;
document.getElementById('bot-name').innerHTML = data.botName;
document.getElementById('botIcon').src = data.botIcon;
console.log(data.botIcon)
}).catch(error => console.error('Error fetching dashboard stats:', error));
fetch('/api/activities')
.then(response => response.json())
.then(activities => {
const activityList = document.getElementById('activity-list');
activities.forEach(activity => {
const li = document.createElement('li');
li.className = 'activity-item';
// Change color based on the action
if (activity.action === 'added') {
li.style.backgroundColor = '#d4edda'; // Light green for added
li.style.color = 'black'
} else if (activity.action === 'removed') {
li.style.backgroundColor = '#f8d7da'; // Light red for removed
li.style.color = 'black'
} else if (activity.action === 'changed') {
li.style.backgroundColor = '#fff3cd'; // Light yellow for changed
li.style.color = 'black'
}
const details = document.createElement('div');
details.className = 'activity-details';
details.innerHTML = `<strong>${activity.action}</strong> - ${activity.filePath}`;
const timestamp = document.createElement('span');
timestamp.className = 'timestamp';
timestamp.textContent = new Date(activity.timestamp).toLocaleString();
li.appendChild(details);
li.appendChild(timestamp);
// Insert new activity items at the top
activityList.prepend(li);
});
})
.catch(error => console.error('Error fetching activities:', error));
}
</script>
</body>
</html>

153
cli.js Normal file
View File

@ -0,0 +1,153 @@
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const { select, text, confirm } = require('@clack/prompts');
const chalk = require('chalk');
// Templates for different file types
const templates = {
command: `const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('your-command')
.setDescription('Describe your command here.'),
async execute(interaction, client) {
// Command execution logic goes here
}
};`,
prefix: `//! This is a basic structure for a prefix command in discoBase using discord.js
module.exports = {
name: 'command-name',
description: 'command-description.',
aliases: ['alias_1', 'alias_2'],
run: async (client, message, args) => {
// Command execution logic goes here
},
};`,
event: `module.exports = {
name: 'event-name',
async execute(eventObject, client) {
// Event handling logic goes here
}
};`
};
// Logging function with styling
const logWithStyle = (message, type = 'info') => {
const styles = {
success: chalk.green.bold(`${message}`),
error: chalk.red.bold(`${message}`),
info: chalk.blueBright.bold(` ${message}`),
};
console.log(styles[type] || message);
};
// Function to create a file with content
const createFile = (filePath, template) => {
fs.writeFile(filePath, template.trim(), (err) => {
if (err) return logWithStyle(`Error: ${err.message}`, 'error');
const relativePath = path.relative(path.join(__dirname, 'src'), filePath);
logWithStyle(`File created at ${relativePath}`, 'success');
});
};
// Main execution of the 'generate' command
(async () => {
// Ask for the file type
const fileType = await select({
message: 'Select the type of file to generate:',
options: [
{ value: 'command', label: 'Command' },
{ value: 'event', label: 'Event' },
{ value: 'prefix', label: 'Prefix Command' }
],
});
const fileName = await text({
message: `Enter the name of the ${fileType} file (without extension):`,
initial: '',
});
const folderMap = {
command: 'commands',
event: 'events',
prefix: 'messages'
};
const folderSelection = folderMap[fileType];
const selectedFolderPath = path.join(__dirname, 'src', folderSelection);
// Check if the folder exists, if not, ask to create it
if (!fs.existsSync(selectedFolderPath)) {
const createFolder = await confirm({
message: `The folder ${folderSelection} does not exist. Do you want to create it?`,
});
if (createFolder) {
fs.mkdirSync(selectedFolderPath, { recursive: true });
logWithStyle(`Folder ${folderSelection} created successfully.`, 'success');
} else {
logWithStyle('Folder creation aborted.', 'error');
return;
}
}
// Get the subfolders within the selected folder
let subFolders = fs.readdirSync(selectedFolderPath).filter(item => fs.statSync(path.join(selectedFolderPath, item)).isDirectory());
// If no subfolders, ask if the user wants to create one
if (subFolders.length === 0) {
const createSubfolder = await confirm({
message: `No subfolders exist in ${folderSelection}. Would you like to create one?`,
});
if (createSubfolder) {
const subfolderName = await text({
message: `Enter the name of the new subfolder:`,
initial: '',
});
const newSubfolderPath = path.join(selectedFolderPath, subfolderName);
fs.mkdirSync(newSubfolderPath, { recursive: true });
logWithStyle(`Subfolder ${subfolderName} created successfully.`, 'success');
subFolders = [subfolderName];
} else {
logWithStyle('Subfolder creation aborted.', 'error');
return;
}
}
// Let the user select an existing subfolder or create a new one
const subfolderSelection = await select({
message: 'Select the subfolder to create the file in (or choose to create a new folder):',
options: [
...subFolders.map(subfolder => ({ value: subfolder, label: subfolder })),
{ value: 'new', label: 'Create new folder' }
]
});
let subfolderPath;
if (subfolderSelection === 'new') {
const newSubfolderName = await text({
message: 'Enter the name of the new subfolder:',
initial: '',
});
subfolderPath = path.join(selectedFolderPath, newSubfolderName);
fs.mkdirSync(subfolderPath, { recursive: true });
logWithStyle(`New subfolder ${newSubfolderName} created successfully.`, 'success');
} else {
subfolderPath = path.join(selectedFolderPath, subfolderSelection);
}
// Create the file
const filePath = path.join(subfolderPath, `${fileName}.js`);
if (fs.existsSync(filePath)) {
logWithStyle(`File already exists: ${filePath}`, 'error');
} else {
createFile(filePath, templates[fileType]);
}
})();

26
config.json Normal file
View File

@ -0,0 +1,26 @@
{
"bot": {
"token": "MTM1Njk3NTM4MzgxMTA2ODAzMQ.GUqXj_.tKGhbBytofKo79Uvrmd8_08kKDPrWX1yYAxpbw",
"id": "1356975383811068031",
"admins": [
"477999574804594708",
"428524753213456385"
],
"ownerId": "477999574804594708",
"developerCommandsServerIds": [
"477999574804594708"
]
},
"database": {
"mongodbUrl": "mongodb://admin:admin@192.168.88.136:9012/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.4.0"
},
"logging": {
"guildJoinLogsId": "GUILD_JOIN_LOGS_CHANNEL_ID",
"guildLeaveLogsId": "GUILD_LEAVE_LOGS_CHANNEL_ID",
"commandLogsChannelId": "COMMAND_LOGS_CHANNEL_ID",
"errorLogs": "YOUR_WEBHOOK_URL"
},
"prefix": {
"value": "/"
}
}

66
contributing.md Normal file
View File

@ -0,0 +1,66 @@
# Contributing to discoBase
First of all, thank you for considering contributing to discoBase! Your support helps improve this package and make it better for everyone.
## How Can You Contribute?
- Reporting bugs
- Suggesting features
- Submitting code improvements or new features
- Improving documentation
## Guidelines for Contribution
### 1. Reporting Bugs
If you find a bug, please report it by opening an [issue]([https://github.com/your-repo/discoBase/issues](https://github.com/ethical-programmer/discobase/issues)). Provide as much detail as possible:
- Steps to reproduce the bug
- Version of discoBase you're using
- Any error logs
### 2. Suggesting Features
Do you have an idea for a new feature? We'd love to hear it! Open an [issue]([https://github.com/your-repo/discoBase/issues](https://github.com/ethical-programmer/discobase/issues)) and explain the feature you'd like to see, along with any use cases.
### 3. Submitting Code Changes
To submit a code change:
1. **Fork the repository** on GitHub.
2. **Clone your fork** locally:
```bash
git clone https://github.com/ethical-programmer/discobase
```
3. **Create a new branch** for your changes:
```bash
git checkout -b feature/your-feature
```
4. **Make your changes** to the codebase.
5. **Commit your changes**:
```bash
git commit -m "Added a cool new feature"
```
6. **Push to your branch**:
```bash
git push origin feature/your-feature
```
7. **Open a Pull Request** on GitHub.
### 4. Coding Standards
- Use consistent formatting and indentation.
- Write clear, concise commit messages.
- Make sure your code is well-documented and includes comments where necessary.
### 5. Testing Your Changes
Ensure that your changes do not introduce any errors or issues by thoroughly testing them before submitting. You can run the project locally to verify this.
### 6. Improving Documentation
Even if you're not a developer, improving the documentation is a great way to contribute! You can submit fixes for typos or add missing sections that help other users understand the project better.
---
Thank you for taking the time to contribute!

14
database/db.js Normal file
View File

@ -0,0 +1,14 @@
const mysql = require('mysql2/promise');
const pool = mysql.createPool({
host: "192.168.88.134",
user: "bxio_loginn",
password: "MasterOKEM#1",
database: "bxio_discord",
waitForConnections: true,
connectionLimit: 10,
queueLimit: 0
});
// Exporta o pool para ser usado com conn.query(...)
module.exports = pool;

View File

@ -1,52 +0,0 @@
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": null,
"version": "DiscoBase"
},
"exported_at": "2024-06-01T19:44:10+00:00",
"name": "DiscoBase",
"author": "mail@oixb.run",
"description": "DiscoBase in ptero\r\n\r\nhttps://github.com/ATLauncher/discord-bot/",
"features": null,
"docker_images": {
"Nodejs 16": "ghcr.io/parkervcp/yolks:node_16"
},
"file_denylist": [],
"startup": "npm run start",
"config": {
"files": "{\r\n \"config/local.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"discord.client_token\": \"{{server.build.env.CLIENT_TOKEN}}\",\r\n \"logging.level\": \"debug\"\r\n }\r\n }\r\n}",
"logs": "{}",
"startup": "{\r\n \"done\": \"Bot started\"\r\n}",
"stop": "^C"
},
"scripts": {
"installation": {
"container": "node:16-bookworm",
"entrypoint": "bash",
"script": "#!/bin/bash\r\n\r\napt update\r\napt -y install git openssl\r\n\r\ncd /mnt/server\r\nif [[ -d .git/ ]]; then\r\n git pull\r\nelse\r\n git clone https://github.com/ATLauncher/discord-bot.git . \r\nfi\r\n\r\necho '{}' \u003e config/local.json\r\n\r\nnpm install --production\r\n\r\nnpm run build\r\n\r\nrm Dockerfile\r\nrm CONTRIBUTING.md\r\nrm README.md\r\nrm /config/.gitignore\r\nrm CODE_OF_CONDUCT.md\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\""
}
},
"variables": [
{
"name": "client_token",
"description": "Get a discord token at https://discordapp.com/developers/",
"env_variable": "CLIENT_TOKEN",
"default_value": "get_your_own_token_from_discord_",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:75",
"field_type": "text"
},
{
"name": "Node Environment",
"description": "The node environment variable.\r\n\r\nNeeds to stay at \"development\" to log to console.",
"env_variable": "NODE_ENV",
"default_value": "development",
"user_viewable": true,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
}
]
}

View File

@ -0,0 +1,20 @@
Error: Cannot find module 'mongoose'
Require stack:
- /root/oixb/src/events/handlers/ready.js
- /root/oixb/src/functions/handlers/handelEvents.js
- /root/oixb/src/index.js
Error: Cannot find module 'mongoose'
Require stack:
- /root/oixb/src/events/handlers/ready.js
- /root/oixb/src/functions/handlers/handelEvents.js
- /root/oixb/src/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/root/oixb/src/events/handlers/ready.js:2:18)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)

View File

@ -0,0 +1,20 @@
Error: Cannot find module 'mongoose'
Require stack:
- /root/oixb/src/events/handlers/ready.js
- /root/oixb/src/functions/handlers/handelEvents.js
- /root/oixb/src/index.js
Error: Cannot find module 'mongoose'
Require stack:
- /root/oixb/src/events/handlers/ready.js
- /root/oixb/src/functions/handlers/handelEvents.js
- /root/oixb/src/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/root/oixb/src/events/handlers/ready.js:2:18)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)

View File

@ -0,0 +1,20 @@
Error: Cannot find module 'mongoose'
Require stack:
- /root/oixb/src/events/handlers/ready.js
- /root/oixb/src/functions/handlers/handelEvents.js
- /root/oixb/src/index.js
Error: Cannot find module 'mongoose'
Require stack:
- /root/oixb/src/events/handlers/ready.js
- /root/oixb/src/functions/handlers/handelEvents.js
- /root/oixb/src/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/root/oixb/src/events/handlers/ready.js:2:18)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token 'if'
/root/oixb/src/commands/Community/oixb.js:28
devOnly: true, so if this true this slash command will only register for the server IDs you provided in config.json
^^
SyntaxError: Unexpected token 'if'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token 'if'
/root/oixb/src/commands/Community/oixb.js:28
devOnly: true, so if this true this slash command will only register for the server IDs you provided in config.json
^^
SyntaxError: Unexpected token 'if'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '?'
/root/oixb/src/commands/Community/oixb.js:28
? devOnly: true, so if this true this slash command will only register for the server IDs you provided in config.json
^
SyntaxError: Unexpected token '?'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '?'
/root/oixb/src/commands/Community/oixb.js:28
? devOnly: true, so if this true this slash command will only register for the server IDs you provided in config.json
^
SyntaxError: Unexpected token '?'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '?'
/root/oixb/src/commands/Community/oixb.js:22
? adminOnly: true,
^
SyntaxError: Unexpected token '?'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '?'
/root/oixb/src/commands/Community/oixb.js:22
? adminOnly: true,
^
SyntaxError: Unexpected token '?'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token 'if'
/root/oixb/src/commands/Community/oixb.js:28
devOnly: true, so if this true this slash command will only register for the server IDs you provided in config.json
^^
SyntaxError: Unexpected token 'if'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token 'if'
/root/oixb/src/commands/Community/oixb.js:28
devOnly: true, so if this true this slash command will only register for the server IDs you provided in config.json
^^
SyntaxError: Unexpected token 'if'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async Timeout.registerDebouncedCommands [as _onTimeout] (/root/oixb/src/functions/handlers/handleCommands.js:231:9)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async Timeout.registerDebouncedCommands [as _onTimeout] (/root/oixb/src/functions/handlers/handleCommands.js:231:9)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async Timeout.registerDebouncedCommands [as _onTimeout] (/root/oixb/src/functions/handlers/handleCommands.js:231:9)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async Timeout.registerDebouncedCommands [as _onTimeout] (/root/oixb/src/functions/handlers/handleCommands.js:231:9)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async handleCommands (/root/oixb/src/functions/handlers/handleCommands.js:220:5)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async handleCommands (/root/oixb/src/functions/handlers/handleCommands.js:220:5)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async Timeout.registerDebouncedCommands [as _onTimeout] (/root/oixb/src/functions/handlers/handleCommands.js:231:9)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async handleCommands (/root/oixb/src/functions/handlers/handleCommands.js:220:5)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async handleCommands (/root/oixb/src/functions/handlers/handleCommands.js:220:5)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async handleCommands (/root/oixb/src/functions/handlers/handleCommands.js:220:5)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async handleCommands (/root/oixb/src/functions/handlers/handleCommands.js:220:5)

View File

@ -0,0 +1,11 @@
DiscordAPIError[50001]: Missing Access
DiscordAPIError[50001]: Missing Access
at handleErrors (/root/oixb/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/root/oixb/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/root/oixb/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async /root/oixb/src/functions/handlers/handleCommands.js:171:17
at async Promise.all (index 0)
at async registerCommands (/root/oixb/src/functions/handlers/handleCommands.js:183:9)
at async handleCommands (/root/oixb/src/functions/handlers/handleCommands.js:220:5)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '.'
/root/oixb/src/commands/Community/oixb.js:15
.addStringOption(),
^
SyntaxError: Unexpected token '.'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '.'
/root/oixb/src/commands/Community/oixb.js:15
.addStringOption(),
^
SyntaxError: Unexpected token '.'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '.'
/root/oixb/src/commands/Community/oixb.js:15
.addStringOption(),
^
SyntaxError: Unexpected token '.'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '.'
/root/oixb/src/commands/Community/oixb.js:15
.addStringOption(),
^
SyntaxError: Unexpected token '.'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,12 @@
Error: Expected
Error: Expected
at _InstanceValidator.handle (/root/oixb/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1531:75)
at _InstanceValidator.parse (/root/oixb/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:972:90)
at assertReturnOfBuilder (/root/oixb/node_modules/@discordjs/builders/dist/index.js:1638:53)
at MixedClass._sharedAddOptionMethod (/root/oixb/node_modules/@discordjs/builders/dist/index.js:2440:5)
at MixedClass.addStringOption (/root/oixb/node_modules/@discordjs/builders/dist/index.js:2411:17)
at Object.<anonymous> (/root/oixb/src/commands/Community/oixb.js:14:10)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)

View File

@ -0,0 +1,12 @@
Error: Expected
Error: Expected
at _InstanceValidator.handle (/root/oixb/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1531:75)
at _InstanceValidator.parse (/root/oixb/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:972:90)
at assertReturnOfBuilder (/root/oixb/node_modules/@discordjs/builders/dist/index.js:1638:53)
at MixedClass._sharedAddOptionMethod (/root/oixb/node_modules/@discordjs/builders/dist/index.js:2440:5)
at MixedClass.addStringOption (/root/oixb/node_modules/@discordjs/builders/dist/index.js:2411:17)
at Object.<anonymous> (/root/oixb/src/commands/Community/oixb.js:14:10)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)

View File

@ -0,0 +1,12 @@
Error: Expected
Error: Expected
at _InstanceValidator.handle (/root/oixb/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1531:75)
at _InstanceValidator.parse (/root/oixb/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:972:90)
at assertReturnOfBuilder (/root/oixb/node_modules/@discordjs/builders/dist/index.js:1638:53)
at MixedClass._sharedAddOptionMethod (/root/oixb/node_modules/@discordjs/builders/dist/index.js:2440:5)
at MixedClass.addStringOption (/root/oixb/node_modules/@discordjs/builders/dist/index.js:2411:17)
at Object.<anonymous> (/root/oixb/src/commands/Community/oixb.js:14:10)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)

View File

@ -0,0 +1,12 @@
Error: Expected
Error: Expected
at _InstanceValidator.handle (/root/oixb/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1531:75)
at _InstanceValidator.parse (/root/oixb/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:972:90)
at assertReturnOfBuilder (/root/oixb/node_modules/@discordjs/builders/dist/index.js:1638:53)
at MixedClass._sharedAddOptionMethod (/root/oixb/node_modules/@discordjs/builders/dist/index.js:2440:5)
at MixedClass.addStringOption (/root/oixb/node_modules/@discordjs/builders/dist/index.js:2411:17)
at Object.<anonymous> (/root/oixb/src/commands/Community/oixb.js:14:10)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected identifier
/root/oixb/src/commands/Community/oixb.js:25
ownerOnly: true,
^^^^^^^^^
SyntaxError: Unexpected identifier
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected identifier
/root/oixb/src/commands/Community/oixb.js:25
ownerOnly: true,
^^^^^^^^^
SyntaxError: Unexpected identifier
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,12 @@
ReferenceError: ownerOnly is not defined
ReferenceError: ownerOnly is not defined
at Object.<anonymous> (/root/oixb/src/commands/Community/oixb.js:25:7)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)
at FSWatcher.emit (node:events:517:28)

View File

@ -0,0 +1,12 @@
ReferenceError: ownerOnly is not defined
ReferenceError: ownerOnly is not defined
at Object.<anonymous> (/root/oixb/src/commands/Community/oixb.js:25:7)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)
at handleCommands (/root/oixb/src/functions/handlers/handleCommands.js:219:53)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected identifier
/root/oixb/src/commands/Community/oixb.js:25
ownerOnly: true,
^^^^^^^^^
SyntaxError: Unexpected identifier
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected identifier
/root/oixb/src/commands/Community/oixb.js:25
ownerOnly: true,
^^^^^^^^^
SyntaxError: Unexpected identifier
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,12 @@
ReferenceError: adminOnly is not defined
ReferenceError: adminOnly is not defined
at Object.<anonymous> (/root/oixb/src/commands/Community/oixb.js:22:7)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)
at FSWatcher.emit (node:events:517:28)

View File

@ -0,0 +1,12 @@
ReferenceError: adminOnly is not defined
ReferenceError: adminOnly is not defined
at Object.<anonymous> (/root/oixb/src/commands/Community/oixb.js:22:7)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)
at Timeout.registerDebouncedCommands [as _onTimeout] (/root/oixb/src/functions/handlers/handleCommands.js:230:57)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected identifier
/root/oixb/src/commands/Community/oixb.js:22
adminOnly: true,
^^^^^^^^^
SyntaxError: Unexpected identifier
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected identifier
/root/oixb/src/commands/Community/oixb.js:22
adminOnly: true,
^^^^^^^^^
SyntaxError: Unexpected identifier
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,12 @@
ReferenceError: asd is not defined
ReferenceError: asd is not defined
at Object.<anonymous> (/root/oixb/src/messages/Community/oixb.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.loadCommand (/root/oixb/src/functions/handlers/prefixHandler.js:56:29)
at Timeout._onTimeout (/root/oixb/src/functions/handlers/prefixHandler.js:14:18)
at listOnTimeout (node:internal/timers:569:17)

View File

@ -0,0 +1,12 @@
ReferenceError: asdsada is not defined
ReferenceError: asdsada is not defined
at Object.<anonymous> (/root/oixb/src/messages/Community/oixb.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.loadCommand (/root/oixb/src/functions/handlers/prefixHandler.js:56:29)
at Timeout._onTimeout (/root/oixb/src/functions/handlers/prefixHandler.js:14:18)
at listOnTimeout (node:internal/timers:569:17)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected identifier
/root/oixb/src/messages/Community/oixb.js:32
await interaction.deleteReply();
^^^^^^^^^^^
SyntaxError: Unexpected identifier
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.loadCommand (/root/oixb/src/functions/handlers/prefixHandler.js:56:29)
at Timeout._onTimeout (/root/oixb/src/functions/handlers/prefixHandler.js:14:18)

View File

@ -0,0 +1,2 @@
undefined: undefined
undefined

View File

@ -0,0 +1,2 @@
undefined: undefined
undefined

View File

@ -0,0 +1,2 @@
undefined: undefined
undefined

View File

@ -0,0 +1,2 @@
undefined: undefined
undefined

View File

@ -0,0 +1,16 @@
SyntaxError: Invalid or unexpected token
/root/oixb/src/events/handlers/ready.js:59
state: "<:bot:1213894718358823005>
^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Invalid or unexpected token
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadEvent (/root/oixb/src/functions/handlers/handelEvents.js:64:27)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:152:17)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected identifier
/root/oixb/src/commands/Community/oixb.js:36
const data = new SlashCommandBuilder()
^^^^
SyntaxError: Unexpected identifier
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected identifier
/root/oixb/src/commands/Community/oixb.js:36
const data = new SlashCommandBuilder()
^^^^
SyntaxError: Unexpected identifier
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '.'
/root/oixb/src/commands/Community/oixb.js:35
.addStringOption(option =>
^
SyntaxError: Unexpected token '.'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '.'
/root/oixb/src/commands/Community/oixb.js:35
.addStringOption(option =>
^
SyntaxError: Unexpected token '.'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token ';'
/root/oixb/src/commands/Community/oixb.js:40
.setDescription('The channel to echo into'));
^
SyntaxError: Unexpected token ';'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token ';'
/root/oixb/src/commands/Community/oixb.js:40
.setDescription('The channel to echo into'));
^
SyntaxError: Unexpected token ';'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)

View File

@ -0,0 +1,12 @@
TypeError: command.run is not a function
TypeError: command.run is not a function
at Object.execute (/root/oixb/src/events/handlers/prefixCreate.js:149:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at MessageCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/MessageCreate.js:32:14)
at module.exports [as MESSAGE_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

View File

@ -0,0 +1,12 @@
ReferenceError: client is not defined
ReferenceError: client is not defined
at Object.<anonymous> (/root/oixb/src/commands/Community/teste.js:3:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at FSWatcher.<anonymous> (/root/oixb/src/functions/handlers/handleCommands.js:263:13)
at FSWatcher.emit (node:events:517:28)

View File

@ -0,0 +1,12 @@
ReferenceError: client is not defined
ReferenceError: client is not defined
at Object.<anonymous> (/root/oixb/src/commands/Community/teste.js:3:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)
at Timeout.registerDebouncedCommands [as _onTimeout] (/root/oixb/src/functions/handlers/handleCommands.js:230:57)

View File

@ -0,0 +1,12 @@
ReferenceError: client is not defined
ReferenceError: client is not defined
at Object.<anonymous> (/root/oixb/src/commands/Community/teste.js:3:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at loadCommand (/root/oixb/src/functions/handlers/handleCommands.js:77:25)
at loadCommands (/root/oixb/src/functions/handlers/handleCommands.js:102:25)
at handleCommands (/root/oixb/src/functions/handlers/handleCommands.js:219:53)

View File

@ -0,0 +1,2 @@
undefined: undefined
undefined

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '.'
/root/oixb/src/messages/Community/oixb.js:34
.addUserOption(option =>
^
SyntaxError: Unexpected token '.'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.loadCommand (/root/oixb/src/functions/handlers/prefixHandler.js:56:29)
at Timeout._onTimeout (/root/oixb/src/functions/handlers/prefixHandler.js:14:18)

View File

@ -0,0 +1,16 @@
SyntaxError: Unexpected token '.'
/root/oixb/src/messages/Community/oixb.js:34
.addUserOption(option =>
^
SyntaxError: Unexpected token '.'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.loadCommand (/root/oixb/src/functions/handlers/prefixHandler.js:56:29)
at Timeout._onTimeout (/root/oixb/src/functions/handlers/prefixHandler.js:14:18)

View File

@ -0,0 +1,12 @@
TypeError: command.execute is not a function
TypeError: command.execute is not a function
at Object.execute (/root/oixb/src/events/handlers/interactionCreate.js:132:27)
at Client.<anonymous> (/root/oixb/src/functions/handlers/handelEvents.js:71:62)
at Client.emit (node:events:517:28)
at InteractionCreateAction.handle (/root/oixb/node_modules/discord.js/src/client/actions/InteractionCreate.js:97:12)
at module.exports [as INTERACTION_CREATE] (/root/oixb/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:348:31)
at WebSocketManager.<anonymous> (/root/oixb/node_modules/discord.js/src/client/websocket/WebSocketManager.js:232:12)
at WebSocketManager.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)
at WebSocketShard.<anonymous> (/root/oixb/node_modules/@discordjs/ws/dist/index.js:1190:51)
at WebSocketShard.emit (/root/oixb/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:287:31)

Some files were not shown because too many files have changed in this diff Show More