Skip to content

Commit

Permalink
Merge pull request #61 from jerimumhs/dev
Browse files Browse the repository at this point in the history
/status now responds on user pvt
  • Loading branch information
rodrigondec authored Nov 21, 2019
2 parents 07e4464 + 787f18e commit 540586d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/house.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ def fechada(bot, update):
def status(bot, update):
"""Send a sticker or message with the status of our home."""
_status = Status.now()
user = update.message.from_user
if _status is not None:
bot.send_sticker(
sticker=Status.now().sticker,
chat_id=update.message.chat_id)
chat_id=user.id)
else:
update.message.reply_text(I_DONT_KNOW)

Expand Down

0 comments on commit 540586d

Please sign in to comment.