diff --git a/classes/clan_message.py b/classes/clan_message.py new file mode 100644 index 0000000..da37135 --- /dev/null +++ b/classes/clan_message.py @@ -0,0 +1,6 @@ +from dakiny_bot import app + + +@app.post("/message/") +async def hello(): + print("we did a webhook") diff --git a/dakiny_bot.py b/dakiny_bot.py index b1679fb..a51eed8 100644 --- a/dakiny_bot.py +++ b/dakiny_bot.py @@ -4,6 +4,7 @@ import sys import hydra import nextcord +from fastapi import FastAPI from hydra.core.config_store import ConfigStore from nextcord.ext import commands @@ -27,6 +28,8 @@ handler.setFormatter( ) logger.addHandler(handler) +app = FastAPI() + @hydra.main(config_path="conf", config_name="config") def main(cfg: DakinyConfig): diff --git a/requirements.txt b/requirements.txt index 2ffe3d1..205c64d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ python-dotenv==1.0.0 pytz==2022.7.1 hydra-core==1.3.2 sqlalchemy<2.0 -pandas==1.5.2 \ No newline at end of file +pandas==1.5.2 +fastapi==0.111.0 \ No newline at end of file