-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[V3 Filter] Unable to filter sentences #1904
Comments
Unfortunately, that gif isn't a demonstration of anything not working. The filter will never impact other bots, the bot owner, mods or admins: Red-DiscordBot/redbot/cogs/filter/filter.py Lines 248 to 251 in 3bcf375
Red-DiscordBot/redbot/core/utils/mod.py Lines 143 to 150 in 3bcf375
if you need to test filter's behavior, if you launch the bot with |
@mikeshardmind if you watch the gif to the end you'll note that it filters the message if I remove all of the spaces. That'd imply that it does actually filter messages from a bot owner and guild admin. If it really isn't supposed to do that, then there might be another issue at play, possibly unrelated to this report. Edit: I have tested this with other users and in other servers. I can confirm that even without this oddity it still happens. |
Does the audit log confirm it was your bot, and are you running more than one bot on that token? If the answer to those is "yes" and "no" respectively, something is seriously wrong here. |
As far as I can tell, filtering words is not tracked in the log; even with the I have done a number of tests on this and I can confirm without a shadow of a doubt that it will filter away my messages without a problem. Have you tested and had different results? |
Well, something is seriously wrong.... I can confirm both the issue with the spacing and with the bot owner being considered for deletion. |
@mikeshardmind Update: In B17, I can confirm that the bot no longer removes owner messages. The filter is still broken unfortunately. |
oh wait, I know exactly why bot owner messages are being considered for deletion if user and user == await bot.is_owner(user):
return True
The sentences issue results from the way it's added to the filter. Consider the following: Notice under the outermost I'm gonna assign this to myself to do as both are simple fixes |
Resolved by #2065. |
Command bugs
Command name
filter add "<sentence>"
What cog is this command from?
Filter [core]
What were you expecting to happen?
Whenever the full sentence is posted within the filtered Discord server, it should be removed by the bot.
What actually happened?
Nothing. Sentences will be deleted if you remove the spaces from the trigger phrase, however.
How can we reproduce this issue?
Note: it would seem that some sentences are read whereas most are not. Multiple tests are advised
Red Version
The text was updated successfully, but these errors were encountered: