1
0
Fork 0

Update guild2.py

This commit is contained in:
Swee 2024-10-10 16:57:54 -07:00
parent 9dea7fbabe
commit a1d0f25fed

View file

@ -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)