Skip to content

Commit 894ad2f

Browse files
committed
Numbers carries over in snippet/alias now
1 parent 3afa23e commit 894ad2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cogs/modmail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ async def snippet(self, ctx, *, name: str.lower = None):
146146

147147
embeds = []
148148

149-
for names in zip_longest(*(iter(sorted(self.bot.snippets)),) * 15):
149+
for i, names in enumerate(zip_longest(*(iter(sorted(self.bot.snippets)),) * 15)):
150150
description = "\n".join(
151-
": ".join((str(a), b))
151+
": ".join((str(a + i * 15), b))
152152
for a, b in enumerate(
153153
takewhile(lambda x: x is not None, names), start=1
154154
)

cogs/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,9 +965,9 @@ async def alias(self, ctx, *, name: str.lower = None):
965965

966966
embeds = []
967967

968-
for names in zip_longest(*(iter(sorted(self.bot.aliases)),) * 15):
968+
for i, names in enumerate(zip_longest(*(iter(sorted(self.bot.aliases)),) * 15)):
969969
description = "\n".join(
970-
": ".join((str(a), b))
970+
": ".join((str(a + i * 15), b))
971971
for a, b in enumerate(
972972
takewhile(lambda x: x is not None, names), start=1
973973
)

0 commit comments

Comments
 (0)