diff --git a/exts/ff_metadata/ff_metadata.py b/exts/ff_metadata/ff_metadata.py index 8906781..814ed6c 100644 --- a/exts/ff_metadata/ff_metadata.py +++ b/exts/ff_metadata/ff_metadata.py @@ -74,7 +74,7 @@ async def on_posted_fanfic_link(self, message: discord.Message) -> None: Must be triggered in an allowed channel. """ - if (message.author == self.bot.user) or (not message.guild): + if (message.author == self.bot.user) or (not message.guild) or message.guild.id == self.aci100_id: return # Listen to the allowed channels in the allowed guilds for valid fanfic links. @@ -301,7 +301,7 @@ async def get_ff_data_from_links(self, text: str, guild_id: int) -> AsyncGenerat # Attempt to get the story data from whatever method. if match_obj.lastgroup == "FFN": story_data = await self.atlas_client.get_story_metadata(int(match_obj.group("ffn_id"))) - elif match_obj.lastgroup == "AO3" and (guild_id != self.aci100_id): + elif match_obj.lastgroup == "AO3": story_data = await self.search_ao3(match_obj.group(0)) elif match_obj.lastgroup and (match_obj.lastgroup != "AO3"): story_data = await self.search_other(match_obj.group(0))