oopsie (ENTERPRISE QUALITY)

This commit is contained in:
cynic 2022-08-02 23:53:55 -04:00
parent d4384a0dcb
commit ecd45f1d04
1 changed files with 2 additions and 3 deletions

View File

@ -50,9 +50,8 @@ class bird_inst():
while True:
data = json.loads(await self.ws.recv())
print(">>>", data)
getattr(self, "handle_"+data["type"], None)(data)
#try: getattr(self, "handle_"+data["type"], None)(data)
#except Exception as e: print("hey buddy your shits fucked thought you might want to know", e)
try: getattr(self, "handle_"+data["type"], None)(data)
except Exception as e: print("hey buddy your shits fucked thought you might want to know", e)
def handle_message(self, ctx):
print("btw i just got this", ctx["data"]["message"]["text"])
ctx["data"]["message"]["text"] = html.unescape(ctx["data"]["message"]["text"])