pasta command: ignore extra args
This commit is contained in:
parent
b9186fa44b
commit
a310b7dd4e
|
@ -19,7 +19,7 @@ def ping(notif, *_):
|
||||||
pastas = {p.stem: p.read_text() for p in Path('pasta').glob('*.txt')}
|
pastas = {p.stem: p.read_text() for p in Path('pasta').glob('*.txt')}
|
||||||
|
|
||||||
@bot.command
|
@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."""
|
"""Pulls up a copypasta. Run with no arguments to get a list of available copypastas."""
|
||||||
if not pasta_name:
|
if not pasta_name:
|
||||||
pleroma.status_reply(notif['status'], f'Available copypasta: {", ".join(pastas)}')
|
pleroma.status_reply(notif['status'], f'Available copypasta: {", ".join(pastas)}')
|
||||||
|
|
Loading…
Reference in New Issue