Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a reply function #6

Open
wraithan opened this issue Mar 6, 2014 · 0 comments
Open

Add a reply function #6

wraithan opened this issue Mar 6, 2014 · 0 comments

Comments

@wraithan
Copy link
Member

wraithan commented Mar 6, 2014

Something like

def reply(to, message, highlight=False):
    if highlight:
        zen.privmsg(to['channel'], to['nick'] + ': ' + message)
    else:
        zen.privmsg(to['channel'], message)

The idea is to make it so the services don't really need to care about the protocol as much, then if we upgrade the protocol to version 2, it wont cause any issues. For example, if server was added, it could easily pass that along.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant