mrmBot-Matrix/commands/pause.js

11 lines
No EOL
429 B
JavaScript

const soundPlayer = require("../utils/soundplayer.js");
exports.run = async (message) => {
if (process.env.NODE_ENV === "production") return "Music commands are coming soon, but they aren't ready yet. Stay tuned to @esmBot_ on Twitter for updates!";
return await soundPlayer.pause(message);
};
exports.aliases = ["resume"];
exports.category = 7;
exports.help = "Pauses/resumes the current song";
exports.requires = "sound";