github.py 文件源码

python
阅读 38 收藏 0 点赞 0 评论 0

项目:ircbot 作者: ocf 项目源码 文件源码
def project_info(bot, msg):
    """Show GitHub project information."""
    user, repo_name = msg.match.groups()

    github = github3.GitHub()
    repo = github.repository(user, repo_name)

    if repo is not None:
        msg.respond(
            '\x0303{user}/{repo}\x03 | \x0308{stars} stars\x03 | \x0314{description}\x03'.format(
                user=user,
                repo=repo_name,
                stars=repo.stargazers,
                description=repo.description,
            ),
            ping=False,
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号