Skip to content

Add a reply function #6

@wraithan

Description

@wraithan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions