-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
1 changed file
with
45 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# screeps_console | ||
|
||
This project streams the Screeps console output to the terminal. It strips out | ||
any html tags and adds colors. | ||
|
||
## Settings | ||
|
||
The settings file is a yaml file. Begin by copying the settings.dist file to | ||
.settings.yaml in the directory you will be calling `notify.py` from. | ||
|
||
``` | ||
cp .settings.dist.yaml .settings.yaml | ||
``` | ||
|
||
The settings file is in yaml and takes various authentication tokens. | ||
|
||
```yaml | ||
# Copy this to .settings.yaml and fill it out. | ||
|
||
# Screeps account info | ||
screeps_username: | ||
screeps_password: | ||
screeps_ptr: false | ||
``` | ||
## Running | ||
To run the program simply call console.py from the directory your local settings | ||
are in. | ||
```bash | ||
$ ./screeps_console/console.py | ||
``` | ||
|
||
## Colors | ||
|
||
Console output can have colors, in both the website version and teh shell. To get | ||
the best of both worlds use font tags that also have a severity attribute. | ||
|
||
``` | ||
<font color="#999999" severity="2">Message goes here!</font> | ||
``` | ||
|
||
The severity can be anywhere from 0 to 5, with five beign the most extreme. |