谁来谁先死
This commit is contained in:
parent
09c9b23940
commit
eb1053dc89
2 changed files with 16 additions and 1 deletions
6
route.py
6
route.py
|
@ -1,7 +1,13 @@
|
|||
from worker import emmm
|
||||
from zzcore import DM
|
||||
|
||||
|
||||
def ZZRouter(data):
|
||||
|
||||
if '[CQ:image,file=a854b2390d427b02fc26cae49d508a75.image]' in data['raw_message'] and data['user_id'] != 1318000868:
|
||||
DM(data['message_id'])
|
||||
|
||||
|
||||
if data['post_type'] != 'message' or data['message_type'] != 'group' or data['message'][0] != '/':
|
||||
return
|
||||
|
||||
|
|
|
@ -78,3 +78,12 @@ def mysakuya(self, words):
|
|||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def DM(msgid):
|
||||
url = APIURL + "delete_msg"
|
||||
data = {
|
||||
'access_token' : AUTHORIZATION,
|
||||
'message_id' : msgid,
|
||||
}
|
||||
requests.get(url = url, params=data)
|
Loading…
Reference in a new issue