{"size": 439, "ext": "js", "max_stars_repo_path": "src/bot/commands/music/end.js", "max_stars_repo_name": "BlobTheFob/tube", "max_stars_repo_stars_event_min_datetime": "2016-10-29T01:30:54.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-11T13:52:00.000Z", "max_issues_repo_path": "src/bot/commands/music/end.js", "max_issues_repo_name": "BlobTheFob/tube", "max_issues_repo_issues_event_min_datetime": "2016-10-26T04:21:49.000Z", "max_issues_repo_issues_event_max_datetime": "2018-06-03T19:05:25.000Z", "max_forks_repo_path": "src/bot/commands/music/end.js", "max_forks_repo_name": "BlobTheFob/tube", "max_forks_repo_forks_event_min_datetime": "2017-01-17T13:24:56.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-21T16:12:30.000Z"}
{"max_stars_count": 159, "max_issues_count": 25, "max_forks_count": 44, "avg_line_length": 25.8235294118, "max_line_length": 57, "alphanum_fraction": 0.6697038724}
module.exports = {
	process: async message => {
		let player = bot.players.get(message.channel.guild.id);
		if(!player) {
			return __("phrases.noMusic", message);
		} else if(!player.voiceCheck(message.member)) {
			return __("phrases.notListening", message);
		} else {
			player.destroy();
			return __("commands.music.end.success", message);
		}
	},
	guildOnly: true,
	aliases: ["music"],
	description: "Stop music in your channel"
};
