Skip to content

Commit

Permalink
Update ampremover.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCos17 committed Dec 6, 2024
1 parent 7afb7e9 commit 0aa543b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ampremover/ampremover.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ async def opt_out(self, ctx):
@amputator.command(name='convert')
async def convert_amp(self, ctx, *, message: str):
"""Converts AMP URLs to canonical URLs using AmputatorBot API"""
if not await self.config.guild(ctx.guild).opted_in(): # Check if the server is opted in
await ctx.send("This server is not opted in to use the AmputatorBot service.")
return

urls = self.extract_urls(message)
if not urls:
await ctx.send("No URLs found in the message.")
Expand Down

0 comments on commit 0aa543b

Please sign in to comment.