2020-06-27 22:17:57 +00:00
|
|
|
const soundPlayer = require("../utils/soundplayer.js");
|
2019-09-13 20:02:41 +00:00
|
|
|
|
2020-06-27 22:17:57 +00:00
|
|
|
exports.run = async (message, args) => {
|
|
|
|
if (message.author.id !== process.env.OWNER) return `${message.author.mention}, this command is for testing and is restricted to owners.`;
|
|
|
|
return soundPlayer.play(encodeURIComponent(args.join(" ")), message);
|
2019-09-13 20:02:41 +00:00
|
|
|
};
|
2019-12-02 20:47:22 +00:00
|
|
|
|
|
|
|
exports.category = 7;
|
2020-06-27 22:17:57 +00:00
|
|
|
exports.help = "Plays an audio file";
|
|
|
|
exports.requires = "sound";
|