Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
26 changes: 0 additions & 26 deletions bot/package.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
MessageFlags,
} = require("discord.js");
const { GoogleGenAI } = require("@google/genai");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

// Initialize Gemini AI
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
Expand Down
2 changes: 1 addition & 1 deletion bot/commands/ai/faq.js β†’ commands/ai/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require("fs");
const path = require("path");
const { GoogleGenAI } = require("@google/genai");
const { SlashCommandBuilder, EmbedBuilder } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
2 changes: 1 addition & 1 deletion bot/commands/economy/bal.js β†’ commands/economy/bal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
2 changes: 1 addition & 1 deletion bot/commands/economy/buy.js β†’ commands/economy/buy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder ,MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, PermissionFlagsBits, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, PermissionFlagsBits, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, Collection, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

// Cooldown collection to prevent spam
const stealCooldowns = new Collection();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder, Collection, MessageFlags } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

// Cooldown collection specifically for this command
const workCooldowns = new Collection();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const {
ChannelType,
PermissionFlagsBits,
} = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");
const {
isModeratorOrOwner,
generateTicketId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
StringSelectMenuBuilder,
PermissionFlagsBits,
} = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");
const {
isModeratorOrOwner,
getPriorityColor,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

const defaultTruths = [
"What's the most embarrassing thing that's ever happened to you?",
Expand Down
2 changes: 1 addition & 1 deletion bot/commands/xp/daily.js β†’ commands/xp/daily.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
2 changes: 1 addition & 1 deletion bot/commands/xp/points.js β†’ commands/xp/points.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { SlashCommandBuilder, EmbedBuilder } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
2 changes: 1 addition & 1 deletion bot/commands/xp/profile.js β†’ commands/xp/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const {
EmbedBuilder,
AttachmentBuilder,
} = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
2 changes: 1 addition & 1 deletion bot/commands/xp/roles.js β†’ commands/xp/roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {
ButtonBuilder,
ButtonStyle,
} = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
2 changes: 1 addition & 1 deletion bot/commands/xp/xpconfig.js β†’ commands/xp/xpconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {
PermissionFlagsBits,
ChannelType,
} = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../../utils/database");

module.exports = {
data: new SlashCommandBuilder()
Expand Down
1 change: 0 additions & 1 deletion bot/deploy-commands.js β†’ deploy-commands.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const fs = require('fs');
const { REST, Routes } = require("discord.js");
const { readdirSync } = require("fs");
const path = require("path");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { Events, EmbedBuilder, AttachmentBuilder } = require("discord.js");
const Database = require("@adb/server/utils/database");
const Database = require("../utils/database");
const { checkRaidDetection } = require("../commands/antimodules/antiraid");

module.exports = {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const {
StringSelectMenuBuilder,
} = require("discord.js");

const { database: Database } = require("@adb/server");
const Database = require("../utils/database");

module.exports = {
name: Events.InteractionCreate,
Expand Down
4 changes: 2 additions & 2 deletions bot/events/messageCreate.js β†’ events/messageCreate.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { Events, EmbedBuilder, InteractionType } = require("discord.js");
const { GoogleGenAI } = require("@google/genai");
const { database: Database } = require("@adb/server");
const Database = require("../utils/database");
const {
sanitizeInput,
isQuestion,
parseChannelList,
} = require("@adb/server/utils/moderation");
} = require("../utils/moderation");

// πŸ€– Initialize Gemini AI
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
Expand Down
2 changes: 1 addition & 1 deletion bot/events/modalCreate.js β†’ events/modalCreate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { Events, EmbedBuilder } = require("discord.js");
const Database = require("@adb/server/utils/database");
const Database = require("../utils/database");

module.exports = {
name: Events.InteractionCreate,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { Events } = require("discord.js");
const { database: Database } = require("@adb/server");
const Database = require("../utils/database");

module.exports = {
name: Events.VoiceStateUpdate,
Expand Down
5 changes: 3 additions & 2 deletions bot/index.js β†’ index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ const {
} = require("discord.js");
const { readdirSync } = require("fs");
const path = require("path");
const { database: Database } = require("@adb/server/");
const { scheduler: TaskScheduler } = require("@adb/server");
const Database = require("./utils/database");

const TaskScheduler = require("./utils/scheduler");
require("dotenv").config();

// πŸš€ Create VAISH - Ultra Modern Discord Bot
Expand Down
File renamed without changes.
56 changes: 47 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,51 @@
{
"name": "discord-bot-monorepo",
"private": true,
"version": "1.0.0",
"workspaces": [
"name": "vaish-discord-bot",
"version": "2.0.0",
"description": "VAISH - Ultra-modern AI-powered Discord bot with advanced features and beautiful UI",
"main": "index.js",
"scripts": {
"start": "node index.js",
"dev": "nodemon index.js",
"deploy": "node deploy-commands.js",
"test": "node --test"
},
"keywords": [
"discord",
"bot",
"server"
"discord.js",
"ai",
"gemini",
"modern",
"VAISH",
"advanced",
"typescript-ready",
"mongodb",
"open-source"
],
"scripts": {
"start": "npm start --workspace=@adb/bot",
"deploy": "npm run deploy --workspace=@adb/bot"
"author": "VAISH Development Team",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/VAISH-bot/discord-bot"
},
"homepage": "https://VAISH-bot.com",
"bugs": {
"url": "https://github.com/VAISH-bot/discord-bot/issues"
},
"dependencies": {
"@google/genai": "^1.16.0",
"axios": "^1.6.2",
"discord.js": "^14.14.1",
"dotenv": "^16.3.1",
"express": "^5.1.0",
"mongoose": "^8.0.3",
"ms": "^2.1.3",
"node-cron": "^3.0.3"
},
"devDependencies": {
"nodemon": "^3.0.2"
},
"engines": {
"node": ">=16.0.0"
}
}
}
12 changes: 0 additions & 12 deletions server/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions server/package.json

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion server/utils/database.js β†’ utils/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Database {
this.ShopItem = ShopItem;
}

async getInstance() {
static async getInstance() {
if (!Database.instance) {
Database.instance = new Database();
await Database.instance.connect();
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion server/utils/scheduler.js β†’ utils/scheduler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const cron = require("node-cron");
const Database = require("../utils/database");
const Database = require("./database");

class TaskScheduler {
constructor(client) {
Expand Down
Loading