Skip to content

A command-line interface for ogame base on alaingilbert/pyogame work

Notifications You must be signed in to change notification settings

TonyRoussel/ogameShell

Repository files navigation

This is a training project, so I apologise if some lines doesn't stick to the pythonic good practice :)

The purpose of ogmShell is to provide a simple command-line based interface to Ogame.
Further extensions will provide more complex queue order and multi-account interaction.

When launch, ogmShell's prompt only display a simple bracket waiting for command:
>

To log an account, one need to type the following:
> log universe username

Unless the asked universe doesn't exist or is not supported yet, the user is ask for a password:
> log universe username
Password: 

On success, the Ogame session is added to the SessionManagingList and the new session is focused
username@universe >

To log on another account just use the log command as explain.
To choose which one you focus just type:
username@universe > focus username@universe2

Or simply use the 'switch' command to switch between the sessions

From here, order can be sent to the session
username@universe > build planet_name 250 turrets (currently in dev)


___________________________________________



Commands list

'get' command: (currently in dev)

usage: get [-h][-U][-m][-S][-R][-p] planetNameA planetNameB planetNameC

The intend of 'get' command is to provide a easy way to retrieve informations on an account.
Without any argument, it displays general informations about the focused session, such as the under attack
status, the pending messages, the current friendly missions in progress, and summed resources and ships
on all planets.
To filter result, use this args:
		 -h display this help
		 -U under attack status
		 -m pending messages quantity
		 -S ships quantity
		 -R display resources status
		 -p display informations planet by planet (sum is added at the end)
One can add planets name at the end of the command to restrain the retrieval to a specific set
If a planet don't match, then the command stop and return an error

About

A command-line interface for ogame base on alaingilbert/pyogame work

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages