From a81fcc2a4cb6fb0b8737bb39661906122042fc61 Mon Sep 17 00:00:00 2001 From: JyhuKo Date: Tue, 10 Dec 2024 20:44:01 +0100 Subject: [PATCH 1/3] updated help.py to match with new chat --- rebootpy/ext/commands/help.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rebootpy/ext/commands/help.py b/rebootpy/ext/commands/help.py index 7d78a22..96a0f03 100644 --- a/rebootpy/ext/commands/help.py +++ b/rebootpy/ext/commands/help.py @@ -909,10 +909,10 @@ class FortniteHelpCommand(HelpCommand): Defaults to ``No Category``. height: :class:`int` The maximum number of lines to fit. - Defaults to ``15``. + Defaults to ``6``. width: :class:`int` The maximum number of characters that fit in a line. - Defaults to ``60``. + Defaults to ``42``. indent: :class:`int` How much to indent the commands and other text from a title. Defaults to ``4``. @@ -955,8 +955,8 @@ def __init__(self, **options: dict) -> None: self.no_category = options.pop('no_category_heading', 'No Category') - self.height = options.pop('height', 15) - self.width = options.pop('width', 60) + self.height = options.pop('height', 6) + self.width = options.pop('width', 42) self.indent = options.pop('indent', 4) self.title_prefix = options.pop('title_prefix', ' +') @@ -1552,4 +1552,4 @@ async def send_cog_help(self, cog: Cog, page: str) -> None: '\u200b\n' + '\n'.join(page_chunks) ) - await self.send_page(page) \ No newline at end of file + await self.send_page(page) From dc93beb4196b556ae887f4e3d44448ea2b9fc117 Mon Sep 17 00:00:00 2001 From: JyhuKo Date: Sun, 22 Dec 2024 16:26:27 +0100 Subject: [PATCH 2/3] Update help.py --- rebootpy/ext/commands/help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rebootpy/ext/commands/help.py b/rebootpy/ext/commands/help.py index 96a0f03..0973a77 100644 --- a/rebootpy/ext/commands/help.py +++ b/rebootpy/ext/commands/help.py @@ -912,7 +912,7 @@ class FortniteHelpCommand(HelpCommand): Defaults to ``6``. width: :class:`int` The maximum number of characters that fit in a line. - Defaults to ``42``. + Defaults to ``39``. indent: :class:`int` How much to indent the commands and other text from a title. Defaults to ``4``. @@ -956,7 +956,7 @@ def __init__(self, **options: dict) -> None: self.no_category = options.pop('no_category_heading', 'No Category') self.height = options.pop('height', 6) - self.width = options.pop('width', 42) + self.width = options.pop('width', 39) self.indent = options.pop('indent', 4) self.title_prefix = options.pop('title_prefix', ' +') From b2a4cec4df00de4c619518916cd67e5f0f5d699b Mon Sep 17 00:00:00 2001 From: JyhuKo Date: Sun, 22 Dec 2024 23:44:27 +0100 Subject: [PATCH 3/3] Update help.py --- rebootpy/ext/commands/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebootpy/ext/commands/help.py b/rebootpy/ext/commands/help.py index 0973a77..e3979e3 100644 --- a/rebootpy/ext/commands/help.py +++ b/rebootpy/ext/commands/help.py @@ -98,7 +98,7 @@ class Paginator: def __init__(self, prefix: str = '', suffix: str = '', - max_size: int = 10000) -> None: + max_size: int = 100) -> None: self.prefix = prefix self.suffix = suffix self.max_size = max_size