automod-bot icon indicating copy to clipboard operation
automod-bot copied to clipboard

8D filter

Open alidexter001 opened this issue 3 years ago • 2 comments
trafficstars

can someone make me this code match with the bot packages and stuffs i tryed myself but i still have issues with it

module.exports = {
    help: {
        name: "8d",
        aliases: []
    },
    run: async (client, message, args) => {
        if (!message.member.voice.channel) return message.channel.send("❌ | You are not in a voice channel!");
        if (message.guild.me.voice.channel && message.member.voice.channel.id !== message.guild.me.voice.channel.id) return message.channel.send("❌ | You are not in my voice channel!");
        if (!client.player.isPlaying(message.guild.id)) {
            return message.channel.send("❌ | I'm not playing anything?");
        }
        const edEnabled = await client.player.getQueue(message.guild.id).filters["8D"];
        client.player.setFilters(message.guild.id, {
            "8D": !edEnabled
        });
        return message.channel.send(`✅ | 8D ${!edEnabled ? "Enabled" : "Disabled"}!`)
    }
};

tnx

alidexter001 avatar Oct 17 '22 16:10 alidexter001

Just put a link to an 8D song, it's difficult to match code like this, it will also mess up your audio quality if you just make it a mode. Plus that command won't even work, as I said just play an 8D song.

monkxy avatar Oct 18 '22 04:10 monkxy

@Jude-Gideon Ah ok ty man

alidexter001 avatar Oct 18 '22 22:10 alidexter001