3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-25 21:39:27 +01:00

doc/Commands.md: add -u to date and weather

This commit is contained in:
Pragmatic Software 2020-01-29 12:43:35 -08:00
parent af3dbaa5d3
commit fb938c716c

View File

@ -273,12 +273,15 @@ See also [user metadata list](Admin.md#user-metadata-list).
The `date` command displays the date and time. Note that it uses the Linux The `date` command displays the date and time. Note that it uses the Linux
timezone files to find timezones. timezone files to find timezones.
Usage: `date [timezone]` Usage: `date [-u <user account>] [timezone]`
If `timezone` is omitted, the command will show the UTC date and time unless you If `timezone` is omitted, the command will show the UTC date and time unless you
have the `timezone` user metadata set on your user account in which case the command have the `timezone` user metadata set on your user account in which case the command
will use that timezone instead. will use that timezone instead.
If the `-u <user account>` option is specified, the command will use the `timezone`
user metadata set for `<user account>`.
You may use the [`my`](#my) command to set the user metadata `timezone` You may use the [`my`](#my) command to set the user metadata `timezone`
to have the command remember your timezone. to have the command remember your timezone.
@ -288,11 +291,14 @@ to have the command remember your timezone.
### weather ### weather
The `weather` command displays the weather conditions and temperature for a location. The `weather` command displays the weather conditions and temperature for a location.
Usage: `weather [location]` Usage: `weather [-u <user account>] [location]`
If `location` is omitted, the command will use the `location` user metadata set on your If `location` is omitted, the command will use the `location` user metadata set on your
user account. user account.
If the `-u <user account>` option is specified, the command will use the `location`
user metadata set for `<user account>`.
You may use the [`my`](#my) command to set the user metadata `location` You may use the [`my`](#my) command to set the user metadata `location`
to have the command remember your location. to have the command remember your location.