update router
This commit is contained in:
parent
2d81fdde16
commit
88766bc6a0
1 changed files with 1 additions and 1 deletions
2
route.py
2
route.py
|
@ -6,7 +6,7 @@ def ZZRouter(data):
|
||||||
gid = data['group_id']
|
gid = data['group_id']
|
||||||
role = data['sender']['role']
|
role = data['sender']['role']
|
||||||
mid = data['message_id']
|
mid = data['message_id']
|
||||||
parms = str.split(data['message'][0]['data']['text'][1:])
|
parms = str.split(data['raw_message'][1:])
|
||||||
print(uid, gid, role, parms)
|
print(uid, gid, role, parms)
|
||||||
if parms == []:
|
if parms == []:
|
||||||
parms[0] = 'help'
|
parms[0] = 'help'
|
||||||
|
|
Loading…
Reference in a new issue