Edit update.py

This commit is contained in:
ザカリアス・ウィリアム・ポージー 2025-05-22 07:42:29 +09:00
parent 71ba221204
commit 7733363b70

View File

@ -16,9 +16,9 @@ class GitUpdateCog(commands.Cog):
await interaction.response.send_message("You do not have permission to run this command.", ephemeral=True)
return
await interaction.response.send_message("Initiating update. The bot will restart shortly...")
target_dir = "/home/server/wdiscordbotserver/"
repo_url = "https://gitlab.com/pancakes1234/wdiscordbotserver.git"
restart_script = "/home/server/wdiscordbotserver/bot.py"
target_dir = "./wdiscordbot-internal-server-aws"
repo_url = "https://gitlab.com/pancakes1234/wdiscordbot-internal-server-aws.git"
restart_script = "./wdiscordbot-internal-server-aws/bot.py"
try:
if os.path.exists(target_dir):