good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 341c2ce9 authored by Gene's avatar Gene Committed by GitHub
Browse files

Merge pull request #915 from THUzxj/pr

Fix botUID in chatbot
parents 7b45735a b642cd45
No related branches found
No related tags found
No related merge requests found
.tn-cookie
\ No newline at end of file
......@@ -301,6 +301,7 @@ def read_auth_cookie(cookie_file_name):
return schema, secret
def on_login(cookie_file_name, params):
global botUID
client_post(subscribe('me'))
"""Save authentication token to file"""
......@@ -308,7 +309,7 @@ def on_login(cookie_file_name, params):
return
if 'user' in params:
botUID = params['user'].decode("ascii")
botUID = params['user'].decode("ascii")[1:-1]
# Protobuf map 'params' is not a python object or dictionary. Convert it.
nice = {'schema': 'token'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment