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,
)
评论列表
文章目录