Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 25f1b20

Browse files
committed
Black reformatted.
Added footer keyword to generate_embeds Removed build from docs
1 parent 797d25b commit 25f1b20

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+16
-27953
lines changed

discordSuperUtils/birthday.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async def get_upcoming(self, guild: discord.Guild) -> List[BirthdayMember]:
269269
self._check_database()
270270

271271
member_data = await self.database.select(
272-
self.tables["birthdays"], [],{"guild": guild.id}, fetchall=True
272+
self.tables["birthdays"], [], {"guild": guild.id}, fetchall=True
273273
)
274274

275275
birthdays = {}

discordSuperUtils/music/music.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -888,9 +888,11 @@ async def shuffle(self, ctx: commands.Context) -> Optional[bool]:
888888
if queue.shuffle:
889889
queue.original_queue = queue.queue
890890

891-
play_queue = queue.queue[queue.pos + 1:]
891+
play_queue = queue.queue[queue.pos + 1 :]
892892
shuffled_queue = random.sample(play_queue, len(play_queue))
893-
queue.queue = queue.queue[:queue.pos] + [queue.now_playing] + shuffled_queue
893+
queue.queue = (
894+
queue.queue[: queue.pos] + [queue.now_playing] + shuffled_queue
895+
)
894896

895897
return queue.shuffle
896898

discordSuperUtils/music/queue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class QueueManager:
2828
"vote_skips",
2929
"played_history",
3030
"queue_loop_start",
31-
"original_queue"
31+
"original_queue",
3232
)
3333

3434
def __init__(self, volume: float, queue: List[Player]):

discordSuperUtils/paginator.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77

88

99
def generate_embeds(
10-
list_to_generate, title, description, fields=25, color=0xFF0000, string_format="{}"
10+
list_to_generate,
11+
title,
12+
description,
13+
fields=25,
14+
color=0xFF0000,
15+
string_format="{}",
16+
footer: str = None,
1117
):
1218
num_of_embeds = ceil((len(list_to_generate) + 1) / fields)
1319

@@ -33,6 +39,9 @@ def generate_embeds(
3339
if (index + 1) % fields == 0:
3440
embed_index += 1
3541

42+
for embed in embeds:
43+
embed.set_footer(text=footer)
44+
3645
return embeds
3746

3847

docs/Makefile

-20
Original file line numberDiff line numberDiff line change
@@ -1,20 +0,0 @@
1-
# Minimal makefile for Sphinx documentation
2-
#
3-
4-
# You can set these variables from the command line, and also
5-
# from the environment for the first two.
6-
SPHINXOPTS ?=
7-
SPHINXBUILD ?= sphinx-build
8-
SOURCEDIR = .
9-
BUILDDIR = _build
10-
11-
# Put it first so that "make" without argument is like "make help".
12-
help:
13-
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14-
15-
.PHONY: help Makefile
16-
17-
# Catch-all target: route all unknown targets to Sphinx using the new
18-
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19-
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
-277 KB
Binary file not shown.

docs/_build/doctrees/index.doctree

-5.21 KB
Binary file not shown.
Binary file not shown.
-3.68 KB
Binary file not shown.

docs/_build/html/.buildinfo

-4
This file was deleted.

docs/_build/html/.nojekyll

Whitespace-only changes.

docs/_build/html/_modules/discordSuperUtils/Antispam.html

-236
This file was deleted.

docs/_build/html/_modules/discordSuperUtils/Ban.html

-261
This file was deleted.

docs/_build/html/_modules/discordSuperUtils/Base.html

-466
This file was deleted.

docs/_build/html/_modules/discordSuperUtils/Birthday.html

-294
This file was deleted.

docs/_build/html/_modules/discordSuperUtils/CommandHinter.html

-186
This file was deleted.

docs/_build/html/_modules/discordSuperUtils/Convertors.html

-149
This file was deleted.

0 commit comments

Comments
 (0)