Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ev cmnd not working #7

Closed
AGILITY-ff opened this issue Mar 13, 2022 · 4 comments
Closed

Ev cmnd not working #7

AGILITY-ff opened this issue Mar 13, 2022 · 4 comments

Comments

@AGILITY-ff
Copy link

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
Copy link
Owner

whirlxd commented Mar 15, 2022

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

@AGILITY-ff
Copy link
Author

Ok I will try , ty

@AGILITY-ff
Copy link
Author

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

@whirlxd
Copy link
Owner

whirlxd commented Mar 17, 2022

uh sure
https://discord.gg/zXbV7AR8TV

@whirlxd whirlxd closed this as completed Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants