Dateien nach "commands/music" hochladen
This commit is contained in:
parent
10814db576
commit
e083345324
|
@ -0,0 +1,23 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'loop', // Optional
|
||||
aliases: [], // Optional
|
||||
category: 'Music',
|
||||
description: 'Schleife die Warteschlange',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
// Enable repeat mode
|
||||
let status = client.player.setQueueRepeatMode(message, true);
|
||||
const loop = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription(`Warteschlange wird auf unbestimmte Zeit wiederholt!`)
|
||||
if(status === null)
|
||||
return;
|
||||
message.channel.send(loop);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'clear', // Optional
|
||||
aliases: ['clearqueue', 'clear-queue'], // Optional
|
||||
category: 'Music',
|
||||
description: 'Löscht die Warteschlange',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
const embed1 = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription('Warteschlange wurde gelöscht!')
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
let isDone = client.player.clearQueue(message);
|
||||
if(isDone)
|
||||
message.channel.send(embed1);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'disable-loop', // Optional
|
||||
aliases: [], // Optional
|
||||
category: 'Music',
|
||||
description: 'Stoppen Sie die Schleife der Warteschlange',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
// Disable repeat mode
|
||||
let status = client.player.setQueueRepeatMode(message, false);
|
||||
|
||||
const disloop = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription(`Warteschlange wird nicht mehr endlos wiederholt!`)
|
||||
if(status === null)
|
||||
return;
|
||||
message.channel.send(disloop);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'join', // Optional
|
||||
aliases: [], // Optional
|
||||
category: 'Music',
|
||||
description: 'Tritt dem Sprachkanal bei!',
|
||||
run: async (client, message, args) => {
|
||||
const voiceChannel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if(!voiceChannel) return message.channel.send(embed)
|
||||
voiceChannel.join()
|
||||
message.react('🎼')
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'leave', // Optional
|
||||
aliases: [], // Optional
|
||||
category: 'Music',
|
||||
description: 'Verlässt den Sprachkanal!',
|
||||
|
||||
run: async (client, message, args) => {
|
||||
const voiceChannel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if(!voiceChannel) return message.channel.send(embed)
|
||||
voiceChannel.leave()
|
||||
message.react('🪐')
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -0,0 +1,37 @@
|
|||
const { MessageEmbed } = require('discord.js')
|
||||
|
||||
module.exports = {
|
||||
name: 'nowplaying', // Optional
|
||||
aliases: ['np'], // Optional
|
||||
category: 'Music',
|
||||
description: 'Gibt Informationen über das Lied, das es spielt, und den Fortschritt davon',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
let progressBar = client.player.createProgressBar(message, {
|
||||
size: 20,
|
||||
block: '▬',
|
||||
arrow: '🔘'
|
||||
|
||||
|
||||
|
||||
});
|
||||
let song = await client.player.nowPlaying(message)
|
||||
const bar = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setTitle(`${song.name}`)
|
||||
.setURL('https://www.youtube.com/watch?v=AFfuDgGama0')
|
||||
.setDescription(`⋆ Angefordert von ${message.author}
|
||||
\`${progressBar}\``)
|
||||
|
||||
if(progressBar)
|
||||
|
||||
|
||||
|
||||
|
||||
message.channel.send(bar);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
const ytsr = require('ytsr');
|
||||
module.exports = {
|
||||
name: 'play',
|
||||
aliases: ['p'], // Optional
|
||||
category: 'Music',
|
||||
description: 'Spielen Sie ein Lied in der vc',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
|
||||
if(client.player.isPlaying(message)) {
|
||||
let song = await client.player.addToQueue(message, args.join(' '));
|
||||
|
||||
const added = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription(`**${song.name}** zur Warteschlange hinzugefügt`)
|
||||
|
||||
|
||||
// If there were no errors the Player#songAdd event will fire and the song will not be null.
|
||||
if(song)
|
||||
message.channel.send(added);
|
||||
return;
|
||||
} else {
|
||||
let song = await client.player.play(message, args.join(' '));
|
||||
|
||||
const started = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription(`Habe angefangen **${song.name}** zu spielen`)
|
||||
|
||||
// If there were no errors the Player#songAdd event will fire and the song will not be null.
|
||||
if(song)
|
||||
message.channel.send(started);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'playlist',
|
||||
aliases: ['plist'], // Optional
|
||||
category: 'Music',
|
||||
description: 'Spielen Sie eine Wiedergabeliste im vc',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
// If maxSongs is -1, will be infinite.
|
||||
await client.player.playlist(message, {
|
||||
search: args.join(' '),
|
||||
maxSongs: -1
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'pause', // Optional
|
||||
aliases: ['paus'], // Optional
|
||||
category: 'Music',
|
||||
description: 'Halten Sie die Warteschlange an',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
let song = client.player.pause(message);
|
||||
const pause = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription(`**${song.name}** wurde pausiert!`)
|
||||
if(song)
|
||||
|
||||
message.channel.send(pause);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'queue', // Optional
|
||||
aliases: ['q'], // Optional
|
||||
category: 'Music',
|
||||
description: 'Gibt Ihnen Informationen über die Serverwarteschlange',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
let queue = client.player.getQueue(message);
|
||||
if(queue)
|
||||
message.channel.send('Warteschlange:\n'+(queue.songs.map((song, i) => {
|
||||
return `${i === 0 ? 'etzt läuft' : `#${i+1}`} - ${song.name} | ${song.author}`
|
||||
}).join('\n')));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'resume', // Optional
|
||||
aliases: ['resume'], // Optional
|
||||
category: 'Music',
|
||||
description: 'Setzen Sie den angehaltenen Song fort',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
let song = client.player.resume(message);
|
||||
const resume = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription(`**${song.name}** wurde fortgesetzt!`)
|
||||
if(song)
|
||||
message.channel.send(resume);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'shuffle', // Optional
|
||||
aliases: ['sh'], // Optional
|
||||
category: 'Music',
|
||||
description: 'Mischen Sie die Warteschlange',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
let songs = client.player.shuffle(message);
|
||||
const shuffle = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription('Die Serverwarteschlange wurde gemischt.')
|
||||
if(songs)
|
||||
message.channel.send(shuffle);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'skip', // Optional
|
||||
aliases: ['sk'], // Optional
|
||||
category: 'Music',
|
||||
description: 'Überspringen Sie das Lied, das es spielt.',
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if(!client.player.isPlaying(message)) {
|
||||
message.channel.send('Das Radio muss laufen, um den Titel zu überspringen');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
await client.player.skip(message);
|
||||
|
||||
message.channel.send('Skipped');
|
||||
},
|
||||
};
|
|
@ -0,0 +1,21 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'stop', // Optional
|
||||
category: 'Music',
|
||||
description: 'Löscht die Warteschlange und verlässt den vc',
|
||||
aliases: ['st'], // Optional
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
let isDone = client.player.stop(message);
|
||||
const stop = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription('Die Musik wurde gestoppt und die Warteschlange wurde gelöscht!')
|
||||
if(isDone)
|
||||
message.channel.send(stop);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'volume', // Optional
|
||||
category: 'Music',
|
||||
description: 'Stellen Sie die Lautstärke des Bots in der vc',
|
||||
aliases: ['setvolume'], // Optional
|
||||
run: async (client, message, args) => {
|
||||
const voice_channel = message.member.voice.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('#FF5757')
|
||||
.setDescription(`Sie müssen sich in einem vc befinden, um diesen Befehl auszuführen!`)
|
||||
if (!voice_channel) return message.channel.send(embed);
|
||||
let isDone = client.player.setVolume(message, parseInt(args[0]));
|
||||
const volume = new MessageEmbed()
|
||||
.setColor('#85b0d2')
|
||||
.setDescription(`Lautstärke auf ${args[0]}% eingestellt!`)
|
||||
if(isDone)
|
||||
message.channel.send(volume);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue