whirlxd / Musico

🎶 An epik discord music bot made to spice up your discord experience with amazing commands and filters!
https://musico.whirl.codes
GNU General Public License v2.0
63 stars 72 forks source link

Ev cmnd not working #7

Closed thejeshvarma closed 2 years ago

thejeshvarma commented 2 years ago

Hi whirl ! When I use this code to my bot eval cmd is not working ! In channel it's showing an error occured : in console its showing (clean is not a function ) how to solve this ¿

whirlxd commented 2 years ago

clean is not a function? ig that's reffering to the clean function. since i don't have a lot of time to guide you throught this just paste this on top of the eval.js file

const clean = async (client, text) => {
    // If our input is a promise, await it before continuing
    if (text && text.constructor.name == "Promise") text = await text;

    if (typeof text !== "string")
        text = require("util").inspect(text, { depth: 1 });

    text = text
        .replace(/`/g, "`" + String.fromCharCode(8203))
        .replace(/@/g, "@" + String.fromCharCode(8203))
        .replaceAll(client.token, "T0$&N^");

    // Send off the cleaned up result
    return text;
};

this will work

thejeshvarma commented 2 years ago

Ok I will try , ty

thejeshvarma commented 2 years ago

Could you provide your server link? I m not able contact u coz that discord profile link is not opening.

whirlxd commented 2 years ago

uh sure https://discord.gg/zXbV7AR8TV