Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

add subscribe command for notifications #29

Merged
merged 1 commit into from May 29, 2015
Merged

Conversation

fredsmith
Copy link
Contributor

No description provided.

"""
subscribe [user] to [jobid]: request to be notified when builds complete
"""
if "me" == user:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would swap me and user so that the statement is more readable.

@fredsmith
Copy link
Contributor Author

@feanil

if user == "me":
user = message.sender.nick
else:
user = user.replace("@", "")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the @ when we just add it back on the next line?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your regex will remove all the @ symbols at the beginning of the username.

fredsmith pushed a commit that referenced this pull request May 29, 2015
add subscribe command for notifications
@fredsmith fredsmith merged commit 8fde9da into master May 29, 2015
@fredsmith fredsmith deleted the derf/subscribe_command branch May 29, 2015 18:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants