WIP
This commit is contained in:
parent
70149bcf91
commit
1ccfe97838
|
|
@ -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))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue