Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
apmapmapm committed Oct 24, 2023
1 parent 7a1a5c6 commit 355a91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mastermelon/console_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)))
Expand Down

0 comments on commit 355a91f

Please sign in to comment.