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)