add LP keywoard to recognize launchpad bugs

This commit is contained in:
Nils Büchner 2025-02-14 16:56:02 +01:00
parent 8ab903a4c7
commit 25a6ea400c

View file

@ -209,7 +209,7 @@ class Ubottu(Plugin):
return True
return False
@command.passive("bug #?(\d+)|https?:\/\/bugs\.launchpad\.net\/[^\d]*(\d+)")
@command.passive("LP.? #?(\d+)|bug #?(\d+)|https?:\/\/bugs\.launchpad\.net\/[^\d]*(\d+)")
async def command_launchpad_bug(self, evt: MessageEvent, match: Tuple[str]) -> None:
if match:
if match[1]: