This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
legacy-musicbot/commands/play.js
2020-11-15 20:42:22 +01:00

12 lines
374 B
JavaScript

const emotes = require("../config/emojis.json");
exports.run = async (client, message, args) => {
if (!message.member.voice.channel) return message.channel.send(`You're not in a voice channel ${emotes.error}`);
if (!args[0]) return message.channel.send(`Please indicate the title of a song ${emotes.error}`);
client.player.play(message, args.join(" "));
};