diff --git a/gurt/cog.py b/gurt/cog.py index 5da8286..db24899 100644 --- a/gurt/cog.py +++ b/gurt/cog.py @@ -288,7 +288,7 @@ class GurtCog(commands.Cog, name="Gurt"): # Added explicit Cog name mime_type = "image/gif" if emoji.animated else "image/png" description = await api.generate_image_description(self, emoji_url, emoji.name, "emoji", mime_type) await self.emoji_manager.add_emoji(name_key, str(emoji.id), emoji.animated, guild_id, emoji_url, description or "No description generated.") - await asyncio.sleep(1) # Rate limiting + # await asyncio.sleep(1) # Rate limiting removed for faster parallel processing except Exception as e: print(f"Error processing single emoji {emoji.name} (ID: {emoji.id}) in guild {emoji.guild.name}: {e}") @@ -321,7 +321,7 @@ class GurtCog(commands.Cog, name="Gurt"): # Added explicit Cog name description_to_add = f"Unsupported format: {sticker.format}, visual description not applicable." await self.emoji_manager.add_sticker(name_key, str(sticker.id), guild_id, sticker_url, description_to_add) - await asyncio.sleep(1) # Rate limiting + # await asyncio.sleep(1) # Rate limiting removed for faster parallel processing except Exception as e: print(f"Error processing single sticker {sticker.name} (ID: {sticker.id}) in guild ID {sticker.guild_id}: {e}")