Ejemplo n.º 1
0
Archivo: mark.py Proyecto: spurll/tell
def main():
    """
    Marks all of a user's slack channels as read.
    """

    s = Slack(config.TOKEN, name=config.USER, verbose=True)
    s.channels()
    s.groups()

    for c in s.channel_list:
        if c["is_member"]:
            s.mark("#" + c["name"])

    for g in s.group_list:
        s.mark(g["name"])