mrmBot-Matrix/commands/loop.js

11 lines
No EOL
426 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.loop(message);
};
exports.aliases = ["toggleloop", "repeat"];
exports.category = 7;
exports.help = "Loops the music";
exports.requires = "sound";