WIP
This commit is contained in:
+6
-2
@@ -1,4 +1,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
import asyncio
|
import asyncio
|
||||||
import re
|
import re
|
||||||
@@ -276,8 +279,9 @@ class ClientWrapper(object):
|
|||||||
if request.can_read_body:
|
if request.can_read_body:
|
||||||
# Get the payload
|
# Get the payload
|
||||||
print("Got a normal request: {}".format(request))
|
print("Got a normal request: {}".format(request))
|
||||||
print(await request.read())
|
content = await request.read()
|
||||||
body_dict = await request.json()
|
print(content)
|
||||||
|
body_dict = json.loads(content)
|
||||||
payload = body_dict["payload"]
|
payload = body_dict["payload"]
|
||||||
print("Interaction received: {}".format(payload))
|
print("Interaction received: {}".format(payload))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user