def format_for_slack(comment):
    """ Format a reddit comment for slack
    """
    slack_post = """*User*:          {user_name}
*Thread*:      {thread}
*Permalink*: `{permalink}`
{text}"""
    user_name = comment.author
    thread = comment.title[:75]
    permalink = 'https://www.reddit.com' + comment.permalink
    text = comment.text
    return slack_post.format(**locals())
