Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Oct 22, 2023
1 parent 55e6b85 commit 7c1e92c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"lint": "eslint . --cache --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint . --fix --cache --ext .js,.jsx,.ts,.tsx",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"dev": "nodemon --watch src --exec \"ts-node src/LavaClient.ts\""
"format:fix": "prettier --write ."
},
"repository": {
"type": "git",
Expand Down
2 changes: 0 additions & 2 deletions src/events/client/MessageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export default class MessageCreate extends Event {
}
public async run(message: Message): Promise<any> {
if (message.author.bot) return;
console.log(message.member.voice.channel);

const setup = await this.client.prisma.setup.findUnique({
where: {
guildId: message.guildId,
Expand Down
2 changes: 2 additions & 0 deletions src/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

import { Lavamusic } from '../structures/index.js';

const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default function loadPlugins(client: Lavamusic): void {
const pluginsFolder = path.join(__dirname, './plugins');
const pluginFiles = fs.readdirSync(pluginsFolder).filter(file => file.endsWith('.js'));
Expand Down
2 changes: 2 additions & 0 deletions src/structures/Lavamusic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ import {
} from 'discord.js';
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

import { Queue, ShoukakuClient } from './index.js';
import Logger from './Logger.js';
import config from '../config.js';
import loadPlugins from '../plugin/index.js';
import { Utils } from '../utils/Utils.js';

const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default class Lavamusic extends Client {
public commands: Collection<string, any> = new Collection();
public aliases: Collection<string, any> = new Collection();
Expand Down

0 comments on commit 7c1e92c

Please sign in to comment.