Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Aug 27, 2023
1 parent 901465f commit 13e0ba4
Show file tree
Hide file tree
Showing 44 changed files with 1,701 additions and 11,582 deletions.
12,277 changes: 1,398 additions & 10,879 deletions package-lock.json

Large diffs are not rendered by default.

25 changes: 6 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,43 +32,30 @@
},
"homepage": "https://github.com/brblacky/lavamusic#readme",
"devDependencies": {
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@types/connect-mongodb-session": "^2.4.4",
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@types/express-session": "^1.17.7",
"@types/jest": "^29.5.2",
"@types/node": "^20.5.6",
"@types/passport": "^1.0.12",
"@types/passport-discord": "^0.1.6",
"@types/signale": "^1.4.4",
"prisma": "^5.2.0",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"dependencies": {
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/passport": "^10.0.1",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/platform-socket.io": "^10.2.1",
"@nestjs/websockets": "^10.2.1",
"@prisma/client": "^5.2.0",
"@quixo3/prisma-session-store": "^3.1.13",
"axios": "^1.5.0",
"connect-mongodb-session": "^3.1.1",
"connect-mongo": "^5.0.0",
"discord.js": "^14.13.0",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-session": "^1.17.3",
"passport": "^0.6.0",
"passport-discord": "^0.1.4",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1",
"shoukaku": "^3.4.0",
"signale": "^1.4.0",
"socket.io": "^4.7.2"
"socket.io": "^4.7.2",
"undici": "^5.23.0"
},
"signale": {
"displayScope": true,
Expand Down
5 changes: 3 additions & 2 deletions src/LavaClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Lavamusic from './structures/Lavamusic';
import { ClientOptions, GatewayIntentBits } from 'discord.js';
import config from './config';
import { bootstrap } from './api/main';
import { DiscordDashboard } from './api/index';
const { GuildMembers, MessageContent, GuildVoiceStates, GuildMessages, Guilds, GuildMessageTyping } = GatewayIntentBits;
const clientOptions: ClientOptions = {
intents: [Guilds, GuildMessages, MessageContent, GuildVoiceStates, GuildMembers, GuildMessageTyping],
Expand All @@ -16,7 +16,8 @@ const client = new Lavamusic(clientOptions);
client.start(config.token);

if (config.dashboard.enable) {
bootstrap();
const dashboard = new DiscordDashboard();
dashboard.start();
}

/**
Expand Down
18 changes: 0 additions & 18 deletions src/api/app.module.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/api/auth/auth.module.ts

This file was deleted.

32 changes: 0 additions & 32 deletions src/api/auth/controllers/auth.controller.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/api/auth/interfaces/auth.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/api/auth/services/auth.service.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/api/auth/tests/auth.controller.spec.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/api/auth/tests/auth.service.spec.ts

This file was deleted.

31 changes: 0 additions & 31 deletions src/api/auth/utils/DiscordStrategy.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/api/auth/utils/Guards.ts

This file was deleted.

26 changes: 0 additions & 26 deletions src/api/auth/utils/SessionSerializer.ts

This file was deleted.

15 changes: 15 additions & 0 deletions src/api/controllers/guilds/GuildControllers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Request, Response } from "express";
import { getBotGuildsService, getUserGuildsService } from "../../services/guilds/GuildServices";


export async function getGuildController(req: Request, res: Response) {
try {
const user = req.user as any;
const data = await getBotGuildsService();
const userGuilds = getUserGuildsService(user.id);
res.send({ data, userGuilds });
} catch (error) {
console.log(error);
res.sendStatus(400).send({ error: "Bad Request" });
}
}
29 changes: 0 additions & 29 deletions src/api/discord/controllers/discord.controller.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/api/discord/discord.module.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/api/discord/interfaces/discord-http.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/api/discord/interfaces/discord.ts

This file was deleted.

Loading

0 comments on commit 13e0ba4

Please sign in to comment.