From a310b7dd4e41e28a597c47a0b23810d94971e91a Mon Sep 17 00:00:00 2001 From: KayFaraday Date: Thu, 22 Dec 2022 21:25:36 +0000 Subject: [PATCH] pasta command: ignore extra args --- kaybot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kaybot.py b/kaybot.py index 453298e..1d4ecc4 100755 --- a/kaybot.py +++ b/kaybot.py @@ -19,7 +19,7 @@ def ping(notif, *_): pastas = {p.stem: p.read_text() for p in Path('pasta').glob('*.txt')} @bot.command -def pasta(notif, pasta_name=''): +def pasta(notif, pasta_name='', *_): """Pulls up a copypasta. Run with no arguments to get a list of available copypastas.""" if not pasta_name: pleroma.status_reply(notif['status'], f'Available copypasta: {", ".join(pastas)}')