fix update channel.send
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user