Add "clear" as an alias for "clean"

Change-Id: I5a5e9107850c008047dd875fe3901f1dd0ec2ea2
This commit is contained in:
Tim Burke 2021-04-21 07:56:34 -07:00
parent 10e8860653
commit ce24fed50c
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ def process_admin_command(db, command, params):
return "Incorrect message number %s" % params[1]
db.motd_del(params[1])
elif params[0] == "clean":
elif params[0] in ("clean", "clear"):
if len(params) > 1:
return "'~motd clean' does not take parameters"
db.motd_clean()

View File

@ -67,7 +67,7 @@ def process_track_command(db, botsend, track, params):
notify(db, botsend, track, adverb, sentence)
return not_scheduled_today(db, track)
elif adverb == 'clean':
elif adverb in ('clean', 'clear'):
if len(params) > 1:
return "'#TRACK clean' does not take any parameter"
db.clean_tracks([track])