Move the webhook listener into a cog so that I have access to the bot for the action method.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.post("/message/")
|
||||
async def hello():
|
||||
print("we did a webhook")
|
||||
return {"message": "webhook get"}
|
||||
Reference in New Issue
Block a user