This commit is contained in:
2025-12-21 17:43:36 +05:00
parent c4f3eeb938
commit 4a39058825

View File

@@ -17,9 +17,10 @@ class Update(commands.Cog):
Make pull from git repository and restart
"""
try:
res = await self.bot.ch(server_id=context.guild.id)
channel = self.bot.get_channel(int(res))
channel = self.bot.get_channel(res)
try:
channel = int(channel)
except:
channel = context
await channel.send('restarting...')