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

'Pud' detected as offensive #1

Open
ghost opened this issue Dec 23, 2019 · 2 comments
Open

'Pud' detected as offensive #1

ghost opened this issue Dec 23, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 23, 2019

I run a discord bot and use this framework for my bot's anti-swear filter. For some reason, it doesn't like any words with 'pud' in it, like pudding. Pud, (here at least) means pudding so a desert. Would be nice if you could fix this issue. Thanks!

image

@Andrews54757
Copy link
Contributor

@OllieWoT This is actually an outdated, broken library. The updated library is more advanced, and incorporates a machine learning algorithm.

However, the new version is very slow. During my test runs, people have purposely inundated the bot with text to crash it.

As a result, I have not published that version yet. In the future, I may release once this issue has been resolved.

For now, try using another library. The current version of this library is experimental at best.

@ghost
Copy link
Author

ghost commented Dec 24, 2019

Thanks for your quick reply!

I have made a manual exeption in my bot's anti-swear module and flow.

If anyone else has to do this, I just used this before the check then instead, checked remove1.
var checkThis = args.join(' ').toLowerCase();
var remove1 = checkThis.replace('pud', '');

I actually couldn't find any other library that is better than this and actually works so I think I'm just going to have to add exceptions when issues are found. Please keep me up-to-date on your new library you are working on, would be cool to be able to use it! :)

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

1 participant