mirror of
https://github.com/hazemKrimi/discord-bot.git
synced 2026-05-01 18:30:25 +00:00
added queue system
This commit is contained in:
@@ -1,10 +1,29 @@
|
||||
require('dotenv').config();
|
||||
|
||||
const { CommandoClient } = require('discord.js-commando');
|
||||
const { Structures } = require('discord.js');
|
||||
const path = require('path');
|
||||
|
||||
Structures.extend('Guild', Guild => {
|
||||
class MusicGuild extends Guild {
|
||||
constructor(client, data) {
|
||||
super(client, data);
|
||||
this.music = {
|
||||
queue: [],
|
||||
isPlaying: false,
|
||||
nowPlaying: null,
|
||||
volume: 1,
|
||||
dispatcher: null
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return MusicGuild;
|
||||
});
|
||||
|
||||
const client = new CommandoClient({
|
||||
commandPrefix: 'b.'
|
||||
commandPrefix: 'b.',
|
||||
owner: '321673699436527617'
|
||||
});
|
||||
|
||||
client.registry
|
||||
|
||||
Reference in New Issue
Block a user