谁来谁先死

This commit is contained in:
SiHuan 2020-08-03 22:10:17 +08:00
parent 09c9b23940
commit eb1053dc89
2 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -77,4 +77,13 @@ def mysakuya(self, words):
if sakuya in words:
return False
return True
return True
def DM(msgid):
url = APIURL + "delete_msg"
data = {
'access_token' : AUTHORIZATION,
'message_id' : msgid,
}
requests.get(url = url, params=data)