cogs/theme/info.py
async def show_imports(self, ctx):
        """Draw and send an image of all presets"""
        themes = []
        for fname in os.listdir(f"assets{sep}presets{sep}"):
            with open(f"assets{sep}presets{sep}{fname}", "r") as preset:
                themes.append(json.load(preset))

        # Create catalog and send
        catalog = Catalog(self.draw_themes(themes))
        await catalog.send(ctx.channel)
Draw and send an image of all presets
Draw and send an image of all presets
Draw and send an image of all presets
async def show_imports(self, ctx):
        themes = []
        for fname in os.listdir(f"assets{sep}presets{sep}"):
            with open(f"assets{sep}presets{sep}{fname}", "r") as preset:
                themes.append(json.load(preset))
        catalog = Catalog(self.draw_themes(themes))
        await catalog.send(ctx.channel)
async def show_imports ( self , ctx ) : themes = [ ] for fname in os . listdir ( f"assets{sep}presets{sep}" ) : with open ( f"assets{sep}presets{sep}{fname}" , "r" ) as preset : themes . append ( json . load ( preset ) ) catalog = Catalog ( self . draw_themes ( themes ) ) await catalog . send ( ctx . channel )
Draw and send an image of all presets
Draw and send an image of all presets
"""Draw and send an image of all presets""" # Create catalog and send
self
ctx