This commit is contained in:
@@ -33,7 +33,6 @@ class ClanMessages(commands.Cog, name="Clan Messages"):
|
|||||||
"""
|
"""
|
||||||
Triggers when the bot is in ready state. Adds the webhook listener to FastAPI and serves.
|
Triggers when the bot is in ready state. Adds the webhook listener to FastAPI and serves.
|
||||||
"""
|
"""
|
||||||
await self.update_messages()
|
|
||||||
app.add_api_route("/messages/", self.update_messages, methods=["POST"])
|
app.add_api_route("/messages/", self.update_messages, methods=["POST"])
|
||||||
config = uvicorn.Config(app=app, host="0.0.0.0", port=5000, log_level="info")
|
config = uvicorn.Config(app=app, host="0.0.0.0", port=5000, log_level="info")
|
||||||
server = uvicorn.Server(config)
|
server = uvicorn.Server(config)
|
||||||
|
|||||||
Reference in New Issue
Block a user