From 2ceed8c3173eca332893b1cde4fcfcbfc7a25b48 Mon Sep 17 00:00:00 2001 From: AkriliksKotya Date: Sun, 21 Dec 2025 17:57:08 +0500 Subject: [PATCH] fix --- c/update.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/c/update.py b/c/update.py index 9a7a85e..8a1f08e 100644 --- a/c/update.py +++ b/c/update.py @@ -18,11 +18,10 @@ class Update(commands.Cog): """ res = await self.bot.ch(server_id=context.guild.id) - channel = self.bot.get_channel(res) - if channel == "None": + if res == "None": channel = context else: - channel = int(channel) + channel = self.bot.get_channel(int(res)) await channel.send('restarting...') try: subprocess.run(["git", "pull", "origin", "main"],capture_output=True)