Update guild2.py
This commit is contained in:
parent
9dea7fbabe
commit
a1d0f25fed
1 changed files with 2 additions and 2 deletions
|
@ -135,10 +135,10 @@ async def on_message(message):
|
||||||
output = ""
|
output = ""
|
||||||
for line in iter(p.stdout.readline, b''):
|
for line in iter(p.stdout.readline, b''):
|
||||||
output+=line.decode()
|
output+=line.decode()
|
||||||
await mess.edit(embed=guilded.Embed(title=":sweebot-loading: Pulling from Git...", description="```\n" + output + "\n```"))
|
await mess.edit(embed=guilded.Embed(title=":sweebot-loading: Pulling from Git...", description="```\n" + output + "```"))
|
||||||
p.stdout.close()
|
p.stdout.close()
|
||||||
p.wait()
|
p.wait()
|
||||||
await mess.edit(embed=guilded.Embed(title=":sweebot-success: Done, restarting bot...", description="```\n" + output + "\n```"))
|
await mess.edit(embed=guilded.Embed(title=":sweebot-success: Done, restarting bot...", description="```\n" + output + "```"))
|
||||||
else:
|
else:
|
||||||
mess = await message.reply(embed=guilded.Embed(title=":sweebot-fail: Permission denied."))
|
mess = await message.reply(embed=guilded.Embed(title=":sweebot-fail: Permission denied."))
|
||||||
print("[" + RED + "FAIL" + RESET + "] Not restarting script, Permission Denied for " + message.author.name)
|
print("[" + RED + "FAIL" + RESET + "] Not restarting script, Permission Denied for " + message.author.name)
|
||||||
|
|
Loading…
Reference in a new issue