pasta command: ignore extra args

This commit is contained in:
Kay Faraday 2022-12-22 21:25:36 +00:00
parent b9186fa44b
commit a310b7dd4e
1 changed files with 1 additions and 1 deletions

View File

@ -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)}')