Skip to content

Commit

Permalink
Package & Argument Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoz committed Oct 28, 2024
1 parent 3d525a9 commit 91266a3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.pyc

/build/*
/dist/*
/dist/*
/venv/*
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# GameRCON Client
This is a console based RCON Client for games that utilize source rcon.
# GameRCON Client v0.1.3
This is a console based RCON Client for games that utilize an RCON protocol

## Supported Games
- Minecraft
- Garry's Mod
- Rust
- Ark: Survival Ascended
- Ark: Survival Evolved
- Palworld
- Path of Titans

Expand All @@ -29,11 +32,13 @@ options:
-h, --help show this help message and exit
-H HOST, --host HOST Server host address
-P PORT, --port PORT Server RCON port
-p PASSWORD, --pass PASSWORD
RCON password
-p PASSWORD, --password PASSWORD
Server RCON password
-c COMMAND, --command COMMAND
Command to execute on the server
-v, --version show program's version number and exit
-t TIMEOUT, --timeout TIMEOUT
Connection timeout in seconds (optional)
```

## Batch Script
Expand Down
Binary file modified gamercon/gamercon.ico
Binary file not shown.
9 changes: 5 additions & 4 deletions gamercon/gamercon.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
parser = argparse.ArgumentParser(description='GameRCON command executor.')
parser.add_argument('-H', '--host', required=True, help='Server host address')
parser.add_argument('-P', '--port', required=True, type=int, help='Server RCON port')
parser.add_argument('-p', '--pass', dest='password', required=True, help='RCON password')
parser.add_argument('-c', '--command',required=True, help='Command to execute on the server')
parser.add_argument('-v', '--version', action='version', version='GameRCON v0.1.1')
parser.add_argument('-p', '--password', required=True, help='Server RCON password')
parser.add_argument('-c', '--command', required=True, help='Command to execute on the server')
parser.add_argument('-v', '--version', action='version', version='GameRCON v0.1.3')
parser.add_argument('-t', '--timeout', type=int, default=10, help='Connection timeout in seconds (optional)')

if len(sys.argv) == 1:
parser.print_help(sys.stderr)
Expand All @@ -18,7 +19,7 @@

async def main():
try:
async with GameRCON(args.host, args.port, args.password, timeout=10) as rcon:
async with GameRCON(args.host, args.port, args.password, args.timeout) as rcon:
response = await rcon.send(args.command)
print(response)
except Exception as e:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pyinstaller==6.4.0
gamercon-async==1.0.6
pyinstaller==6.11.0
gamercon-async==1.0.7

0 comments on commit 91266a3

Please sign in to comment.