mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
FIx filter
This commit is contained in:
parent
1969353663
commit
9000d43c0f
2 changed files with 7 additions and 5 deletions
|
@ -367,12 +367,15 @@ class OtherCog(commands.Cog):
|
|||
|
||||
url = urlparse(url)
|
||||
|
||||
await ctx.respond(f"Taking screenshot of {url.geturl()}..."[:2000])
|
||||
|
||||
with open("domains.txt") as blacklist:
|
||||
for line in blacklist:
|
||||
if line.strip() == url.netloc.lower():
|
||||
return await ctx.respond("That domain is blacklisted.")
|
||||
if not line.strip():
|
||||
continue
|
||||
if re.match(line.strip(), url.netloc):
|
||||
return await ctx.edit(content="That domain is blacklisted.")
|
||||
|
||||
await ctx.respond("Taking screenshot...")
|
||||
try:
|
||||
screenshot = await self.screenshot_website(
|
||||
ctx,
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
2girls1cup.ca
|
||||
pornhub.com
|
||||
|
||||
pornhub.com
|
Loading…
Reference in a new issue