(self, attachment: discord.Attachment)
| 383 | |
| 384 | async def check_image(self, config_hashes: list[str], image_hash: str) -> bool: |
| 385 | return any( |
| 386 | imagehash.hex_to_hash(image_hash) - imagehash.hex_to_hash(h) <= 8 for h in config_hashes |
| 387 | ) |
| 388 | |
| 389 | async def on_message(self, message: discord.Message) -> None: |
| 390 | if message.guild is None: |
| 391 | return |
| 392 | config = await self.config_value(message.guild)() |
no test coverage detected