diff --git a/LICENSE.txt b/LICENSE.txt index bb87d69..46e6af4 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ MIT No Attribution -Copyright 2025 Aaron Crate +Copyright 2026 Aaron Crate Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software diff --git a/garfmain.py b/garfmain.py index f7e68fe..9e89385 100644 --- a/garfmain.py +++ b/garfmain.py @@ -3,7 +3,7 @@ import config import asyncio import discord from discord.ext import commands -from urllib.parse import urlparse, parse_qs, urlencode +from urllib.parse import urlparse, parse_qs from garfpy import ( help, @@ -183,18 +183,18 @@ async def on_message(message): content = message.content.strip() lower = content.lower() - # Remove tracking stuff from youtube and spotify links - cleaned_urls = [] + # # Remove tracking stuff from youtube and spotify links + # cleaned_urls = [] - for pattern in URL_PATTERNS: - for match in re.finditer(pattern, message.content): - cleaned = clean_url(match.group(0)) - if cleaned and cleaned != match.group(0): - cleaned_urls.append(cleaned) + # for pattern in URL_PATTERNS: + # for match in re.finditer(pattern, message.content): + # cleaned = clean_url(match.group(0)) + # if cleaned and cleaned != match.group(0): + # cleaned_urls.append(cleaned) - if cleaned_urls: - links = '\n'.join(cleaned_urls) - await message.reply(f"🔗 Cleaned link{'s' if len(cleaned_urls) > 1 else ''}:\n{links}") + # if cleaned_urls: + # links = '\n'.join(cleaned_urls) + # await message.reply(f"🔗 Cleaned link{'s' if len(cleaned_urls) > 1 else ''}:\n{links}") # Chats & pics if lower.startswith("hey garfield") or isinstance(