-
Notifications
You must be signed in to change notification settings - Fork 36
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
Regex help #42
Comments
You should try and play with http://www.regex101.com |
Channels 1 and 2 should be pretty easy, but you should keep in mind that any attachment can be posted and seen as having no text. I'll have to check to see if empty messages are something that can be matched, but I'm fairly certain they are. Can you give these a try and then message me on Discord? 1: |
caleb, is recensor able to work per channel instead of per server |
It's capable of both. |
ah right, I missed that latter optional argument |
thank you. so it would literally be |
|
I'm not sure what you're appending those numbers for, but they'll probably get discarded. You should also be aware that mods and admins are immune to the filter, in case you're testing with yourself. |
@calebj I assume those numbers are channel ID |
Ah, right. I forgot the converters supported that. Since your pattern has no spaces, it should be working. Like I said, you're immune from the filter yourself. The way I test things like this is with an alt. If regex101 and/or testing in a python interpreter are good, it's probably because you're immune to the filter. |
I'm testing it by having members test it |
@dannymichel Can you DM me a list of example messages you've tried so I can perform local testing? |
sure where/how would i dm you |
Head to this channel for starters. The cog support server is the best place to ask these kinds of questions in general, really. |
Solved via Discord |
I apologize as im aware that this isn't a help forum, but I really don't know anyone who knows regex.
I was wondering if I can have help with 3 things:
3 separate channels i need to do things in
#channel 1 - delete everything that begins with 'http'
#cannel 2 - delete anything that isn't an image(no text what-so-ever)
#channel 3 - delete anything that isn't an image or starts with 'http'(only links and images allowed - no other text than links)
The text was updated successfully, but these errors were encountered: