-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
apmapmapm
committed
Oct 24, 2023
1 parent
7a1a5c6
commit 355a91f
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,7 +123,7 @@ async def servupload(ctx,serverid): | |
# add logic here to upload the files to the servers | ||
# use subprocess to scp the files | ||
#scp run_scp.py [email protected]:/root/Documents/pvp_v7_2023/config/mods | ||
out,err = scp_cmd(host,src="/home/alexmindustry/Documents/watermelonbot/watermelonbot/data/mindustry/mods/common/*", | ||
out,err = scp_cmd(host,src="/root/Documents/watermelonbot/watermelonbot/data/mindustry/mods/common/*", | ||
dst=f"{servfolders()[i]}/config/mods") | ||
await ctx.channel.send(f"done upload: `{i}` `{host}{port}` with screen `{screen}`, output:{str(out)[-1000:]}") | ||
except Exception as e: | ||
|
@@ -140,7 +140,7 @@ async def get_version_of_plugin_from_all_servers(ctx: commands.Context): | |
out,_ = ssh_withcmd(host, cmd) | ||
out = str(out)[2+17:] | ||
stringg.append( f"`{i}` `{out}` `{host}:{port}` `{screen}`" ) | ||
with open("/home/alexmindustry/Documents/watermelonbot/watermelonbot/data/mindustry/mods/common/ASP_version.txt","r") as f: | ||
with open("/root/Documents/watermelonbot/watermelonbot/data/mindustry/mods/common/ASP_version.txt","r") as f: | ||
ff = f.readlines()[0][17:] | ||
ff1=ff.split(":")[0] | ||
await ctx.channel.send( f"Plugin version on servers (latest: `{ff1}`):\n"+("\n".join(stringg))) | ||
|