fix update channel.send

This commit is contained in:
2025-12-21 17:18:31 +05:00
parent 790f17f9b5
commit 42760a431f

View File

@@ -28,7 +28,10 @@ class Update(commands.Cog):
python = sys.executable python = sys.executable
os.execv(python, [python] + sys.argv) os.execv(python, [python] + sys.argv)
try:
await channel.send('restart successful') await channel.send('restart successful')
except:
await context.channel.send('restart succesful')
@commands.Cog.listener() @commands.Cog.listener()
async def on_ready(self): async def on_ready(self):