Skip to content

Commit

Permalink
[clock] Add error messages when willie's db is not set up
Browse files Browse the repository at this point in the history
  • Loading branch information
embolalia committed Mar 2, 2013
1 parent 12fba65 commit 2adee34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def update_user_format(willie, trigger):
willie.reply("Got it. Your time will now appear as %s. (If the "
"timezone is wrong, you might try the settz command)"
% timef)
else:
willie.reply("I can't remember that; I don't have a database.")
update_user_format.commands = ['settimeformat', 'settf']
update_user_format.example = ".settf %FT%T%z"

Expand Down Expand Up @@ -188,6 +190,8 @@ def update_channel_format(willie, trigger):
"unless a user has their own format set. (If the timezone"
" is wrong, you might try the settz and channeltz "
"commands)" % timef)
else:
willie.reply("I can't remember that; I don't have a database.")
update_user_format.commands = ['setchanneltimeformat', 'setctf']
update_user_format.example = ".settf %FT%T%z"

Expand Down

0 comments on commit 2adee34

Please sign in to comment.