def version(self, ctx):
"""Show current josé version"""
pyver = '%d.%d.%d' % (sys.version_info[:3])
head_id = await shell('git rev-parse --short HEAD')
branch = await shell('git rev-parse --abbrev-ref HEAD')
await ctx.send(f'`José v{self.JOSE_VERSION} git:{branch}-{head_id} '
f'py:{pyver} d.py:{discord.__version__}`')
评论列表
文章目录