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) res = await self.bot.ch(server_id=context.guild.id)
channel = self.bot.get_channel(res) if res == "None":
if channel == "None":
channel = context channel = context
else: else:
channel = int(channel) channel = self.bot.get_channel(int(res))
await channel.send('restarting...') await channel.send('restarting...')
try: try:
subprocess.run(["git", "pull", "origin", "main"],capture_output=True) subprocess.run(["git", "pull", "origin", "main"],capture_output=True)