From 6fe9839c66e8c9595109809bd7b4be054c51f026 Mon Sep 17 00:00:00 2001 From: Jackson Egan Date: Tue, 26 May 2020 13:12:13 -0400 Subject: [PATCH] Add time command and TZ variable explanation to README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index fc1680d..a07a3f2 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ Commands: * !cron daily [hour] [command] - Run command on start of hour (Must be done as room admin) * !cron list - List commands in this room * !cron clear - Clear command s in this room (Must be done as room admin) +* !cron time - Print the current datetime and time zone that the cron command will use (time zone set using the `TZ` environment variable) Examples: @@ -379,6 +380,7 @@ MATRIX_SERVER=https://matrix.org JOIN_ON_INVITE=True BOT_OWNERS=@user1:matrix.org,@user2:matrix.org DEBUG=False +TZ=America/New_York ``` Note: without quotes! @@ -406,6 +408,8 @@ __*ATTENTION:*__ Don't include bot itself in `BOT_OWNERS` if cron or any other m To enable debugging for the root logger set `DEBUG=True`. +`TZ` takes any valid [TZ database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) value and sets the bot server to the appropriate zone. + ## Module API Just write a python file with desired command name and place it in modules. See current modules for