diff --git a/c/update.py b/c/update.py index 7baecca..7a45026 100644 --- a/c/update.py +++ b/c/update.py @@ -28,7 +28,10 @@ class Update(commands.Cog): python = sys.executable os.execv(python, [python] + sys.argv) - await channel.send('restart successful') + try: + await channel.send('restart successful') + except: + await context.channel.send('restart succesful') @commands.Cog.listener() async def on_ready(self):