Starting to work on this

This commit is contained in:
carol 2020-02-13 09:50:35 -05:00 committed by GitHub
parent 70d642b7fd
commit 96566b89f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

27
commands/Music/play.js Normal file
View File

@ -0,0 +1,27 @@
const ytdl = require("ytdl-core");
var servers = {};
exports.run = async (client, message, args, level) => {
if(!args[1] || args[1].startsWith("https://")) return (await message.reply("you need to provide a valid URL!")).delete(5000).catch(() => { });
if(!message.member.voiceChannel) (await return message.reply("you need to be in a voice channel to use this command.")).delete(5000).catch(() => { });
if(!servers[message.guild.id]) servers[message.guild.id] = {
queue: []
}
var server = servers[message.guild.id];
};
exports.conf = {
enabled: true,
guildOnly: true,
aliases: ["yt"],
permLevel: "Moderator"
};
exports.help = {
name: "play",
category: "Music",
description: "Play a song/playlist, or queue it if something's already playing.",
usage: "play [url]"
};