Add "clear" as an alias for "clean"
Change-Id: I5a5e9107850c008047dd875fe3901f1dd0ec2ea2
This commit is contained in:
parent
10e8860653
commit
ce24fed50c
@ -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()
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user