Skip to content
This repository has been archived by the owner on Apr 13, 2018. It is now read-only.

Commit

Permalink
完善注释
Browse files Browse the repository at this point in the history
  • Loading branch information
wzpan committed May 25, 2017
1 parent 4547116 commit 56365fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/plugins/Camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def handle(text, mic, profile, wxbot=None):
Arguments:
text -- user-input, typically transcribed speech
mic -- used to interact with the user (for both input and output)
wxBot -- wechat robot
profile -- contains information related to the user (e.g., phone
number)
wxbot -- wechat bot instance
"""
sys.path.append(mic.dingdangpath.LIB_PATH)
from app_utils import sendToUser
Expand Down
2 changes: 1 addition & 1 deletion client/plugins/Echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ def handle(text, mic, profile, wxbot=None):
Arguments:
text -- user-input, typically transcribed speech
mic -- used to interact with the user (for both input and output)
wxBot -- wechat robot
profile -- contains information related to the user (e.g., phone
number)
wxBot -- wechat robot
"""
text = text.lower().replace('echo', '').replace(u'传话', '')
mic.say(text)
Expand Down
1 change: 1 addition & 0 deletions client/plugins/Email.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def handle(text, mic, profile, wxbot=None):
mic -- used to interact with the user (for both input and output)
profile -- contains information related to the user (e.g., email
address)
wxBot -- wechat robot
"""
try:
msgs = fetchUnreadEmails(profile, limit=5)
Expand Down
1 change: 1 addition & 0 deletions client/plugins/Time.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def handle(text, mic, profile, wxbot=None):
mic -- used to interact with the user (for both input and output)
profile -- contains information related to the user (e.g., phone
number)
wxBot -- wechat robot
"""

tz = getTimezone(profile)
Expand Down
1 change: 1 addition & 0 deletions client/plugins/Unclear.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def handle(text, mic, profile, wxbot=None):
mic -- used to interact with the user (for both input and output)
profile -- contains information related to the user (e.g., phone
number)
wxBot -- wechat robot
"""
if need_robot(profile):
robot = get_robot_by_slug("tuling")
Expand Down

0 comments on commit 56365fa

Please sign in to comment.