Skip to content

Commit

Permalink
ig => ignore-, --autopull
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jul 9, 2018
1 parent bc09942 commit cfc9742
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chatcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1478,8 +1478,8 @@ def false(feedback, msg, comment, alias_used="false"):


# noinspection PyIncorrectDocstring,PyMissingTypeHints
@command(message, str, reply=True, privileged=True, whole_msg=True, arity=(1, 2))
def ignore(feedback, msg, comment):
@command(message, str, reply=True, privileged=True, whole_msg=True, arity=(1, 2), give_name=True, aliases=["ig"])
def ignore(feedback, msg, comment, alias_used="ignore"):
"""
Marks a post to be ignored
:param feedback:
Expand All @@ -1500,6 +1500,8 @@ def ignore(feedback, msg, comment):
if comment:
Tasks.do(Metasmoke.post_auto_comment, comment, feedback.owner, url=post_url)

if alias_used == "ig":
return None
return "Post ignored; alerts about it will no longer be posted."


Expand Down

0 comments on commit cfc9742

Please sign in to comment.