This commit is contained in:
2025-12-21 17:57:08 +05:00
parent 9323852e31
commit 2ceed8c317

View File

@@ -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)