From 24212d5b4bd123d48daccff94bd9eae0c34fa921 Mon Sep 17 00:00:00 2001 From: robertsokola Date: Sun, 3 Sep 2023 21:22:26 +0200 Subject: [PATCH] deleted some files, tasks optimization Signed-off-by: robertsokola --- cogs/poll_command.py | 4 ++++ src/UNKNOWN.egg-info/PKG-INFO | 4 ---- src/UNKNOWN.egg-info/SOURCES.txt | 19 ------------------- src/UNKNOWN.egg-info/dependency_links.txt | 1 - src/UNKNOWN.egg-info/top_level.txt | 6 ------ 5 files changed, 4 insertions(+), 30 deletions(-) delete mode 100644 src/UNKNOWN.egg-info/PKG-INFO delete mode 100644 src/UNKNOWN.egg-info/SOURCES.txt delete mode 100644 src/UNKNOWN.egg-info/dependency_links.txt delete mode 100644 src/UNKNOWN.egg-info/top_level.txt diff --git a/cogs/poll_command.py b/cogs/poll_command.py index 14ed7e2..a85b059 100644 --- a/cogs/poll_command.py +++ b/cogs/poll_command.py @@ -87,6 +87,10 @@ async def send_completed_pool(self): asyncio.create_task(message.delete()) self.bot.active_discord_polls.remove((poll, message)) + @send_completed_pool.before_loop + async def prepare_loop(self): + await self.bot.wait_until_ready() + async def setup(bot): await bot.add_cog(PollCreate(bot)) diff --git a/src/UNKNOWN.egg-info/PKG-INFO b/src/UNKNOWN.egg-info/PKG-INFO deleted file mode 100644 index 527a06f..0000000 --- a/src/UNKNOWN.egg-info/PKG-INFO +++ /dev/null @@ -1,4 +0,0 @@ -Metadata-Version: 2.1 -Name: UNKNOWN -Version: 0.0.0 -License-File: LICENSE diff --git a/src/UNKNOWN.egg-info/SOURCES.txt b/src/UNKNOWN.egg-info/SOURCES.txt deleted file mode 100644 index b92166a..0000000 --- a/src/UNKNOWN.egg-info/SOURCES.txt +++ /dev/null @@ -1,19 +0,0 @@ -LICENSE -pyproject.toml -src/__init__.py -src/helpers.py -src/jachym.py -src/UNKNOWN.egg-info/PKG-INFO -src/UNKNOWN.egg-info/SOURCES.txt -src/UNKNOWN.egg-info/dependency_links.txt -src/UNKNOWN.egg-info/top_level.txt -src/db_folder/databases.py -src/ui/__init__.py -src/ui/button.py -src/ui/embeds.py -src/ui/emojis.py -src/ui/error_view.py -src/ui/modals.py -src/ui/poll.py -src/ui/poll_view.py -tests/test_pool.py \ No newline at end of file diff --git a/src/UNKNOWN.egg-info/dependency_links.txt b/src/UNKNOWN.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/src/UNKNOWN.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/UNKNOWN.egg-info/top_level.txt b/src/UNKNOWN.egg-info/top_level.txt deleted file mode 100644 index 8e47b64..0000000 --- a/src/UNKNOWN.egg-info/top_level.txt +++ /dev/null @@ -1,6 +0,0 @@ -__init__ -db_folder -helpers -jachym -text_json -ui