def generate_comment(self):
docs = []
for ext in self.bot.extensions:
doc = ext.__class__.__doc__
if not doc:
continue
docs.append(inspect.cleandoc(doc))
help_ = '\n\n'.join(docs)
return self.HELP % dict(
extensions=','.join(sorted(self.bot.extensions_map.keys())),
help=help_,
host=socket.getfqdn(),
me=self.current.head.repository.SETTINGS.NAME,
mentions=', '.join(sorted([
'@' + m for m in self.current.help_mentions
])),
software=self.DISTRIBUTION.project_name,
version=self.DISTRIBUTION.version,
)
评论列表
文章目录