async def githubinfo(self, ctx: commands.Context): extras = {"Token": bool(self.token), "Repo": bool(self.repo)} main = format_info(self.qualified_name, self.__version__, extras=extras) if not (self.token and self.repo): extra = ( f"\nIt is expected these are `{CROSS}` if no commands have been used since " "the cog was last loaded.") else: extra = "" await ctx.send(f"{main}{extra}")
async def beautifyinfo(self, ctx: commands.Context): await ctx.send(format_info(self.qualified_name, self.__version__))
async def timechannelinfo(self, ctx: commands.Context): await ctx.send( format_info(self.qualified_name, self.__version__, loops=[self.loop_meta]))
async def cmdloginfo(self, ctx: commands.Context): main = format_info(self.qualified_name, self.__version__) cache_size = humanize_bytes(self.cache_size()) cache_count = humanize_number(len(self.log_cache)) extra = f"\nCache size: {cache_size} with {cache_count} commands." await ctx.send(main + extra)