From 1bfca84541e02e6cb656573059dc9cf0f00f9d07 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 31 Oct 2020 12:03:03 +1300 Subject: [PATCH] [Tools] pagify access (#183) --- tools/tools.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/tools.py b/tools/tools.py index 18244fa..e5502fc 100644 --- a/tools/tools.py +++ b/tools/tools.py @@ -97,7 +97,8 @@ class Tools(commands.Cog): len(author_only_v), ", ".join([c.name for c in author_only_v]) ) msg += "```" - await ctx.send(msg) + for page in cf.pagify(msg, delims=["\n"], shorten_by=16): + await ctx.send(page) @access.command() async def text(self, ctx, user: discord.Member = None, guild: int = None): @@ -122,7 +123,8 @@ class Tools(commands.Cog): msg += "[ACCESS]:\n{}\n\n".format(", ".join(can_access)) msg += "[NO ACCESS]:\n{}\n```".format(", ".join(list(set(text_channels) - set(can_access)))) - await ctx.send(msg) + for page in cf.pagify(msg, delims=["\n"], shorten_by=16): + await ctx.send(page) @access.command() async def voice(self, ctx, user: discord.Member = None, guild: int = None): @@ -147,7 +149,8 @@ class Tools(commands.Cog): msg += "[ACCESS]:\n{}\n\n".format(", ".join(can_access)) msg += "[NO ACCESS]:\n{}\n```".format(", ".join(list(set(voice_channels) - set(can_access)))) - await ctx.send(msg) + for page in cf.pagify(msg, delims=["\n"], shorten_by=16): + await ctx.send(page) @commands.guild_only() @commands.command()