Skip to content

Commit a25b40a

Browse files
committed
Forgot to update requirements. && Update some code.
1 parent c5f61a6 commit a25b40a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ def ensure_defaults():
7575
if "welcomeMessage" not in data[sid]:
7676
data[sid][
7777
"welcomeMessage"
78-
] = "Hello! {thread_author}, welcome to your thread {thread_id} - {thread_name}"
78+
] = (
79+
"Hello! {thread_author}, welcome to your thread "
80+
"{thread_id} - {thread_name}"
81+
)
7982
updated = True
8083
if "delete_closed" not in data[sid]:
8184
data[sid]["delete_closed"] = True

modules/errors.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ async def on_command_error(
3333

3434
err_embed = self.bot.bot_embed(ctx)
3535
if isinstance(error, NotOwner):
36-
3736
err_embed.description = "Вы не разработчик бота."
3837
return await ctx.reply(embed=err_embed, delete_after=40)
39-
4038
error_id = str(uuid.uuid4())[:8]
4139
date_str = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
4240
filename = f"error_{error_id}_{date_str}.log"

modules/listener.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ async def on_thread_create(self, thread: disnake.Thread):
106106
self.bot.save_data(data)
107107

108108
self.bot.loop.create_task(self.bot.check_inactivity_thread(thread.id))
109-
110-
111109

112110
def setup(bot):
113111
"""Setup function to connect ListenerModule"""

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
disnake
1+
disnake
2+
python-dotenv

0 commit comments

Comments
 (0)