From 5b7cd7043545de70cae7a329c35b91105b3d7601 Mon Sep 17 00:00:00 2001 From: Trevor Blanarik Date: Sat, 19 Oct 2024 07:41:02 +0000 Subject: [PATCH] pass params --- function_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/function_app.py b/function_app.py index 0f40f96..897b555 100644 --- a/function_app.py +++ b/function_app.py @@ -1,6 +1,8 @@ import logging import azure.functions as func import spotbot as sb +import tables +import discord_http import cleanup app = func.FunctionApp(http_auth_level=func.AuthLevel.FUNCTION) @@ -8,7 +10,7 @@ @app.route(route="spotbot", methods=[func.HttpMethod.POST]) def spotbot(req: func.HttpRequest) -> func.HttpResponse: try: - sb.SpotBot(req).process() + sb.SpotBot(req, tables.HamAlertTable(), discord_http.DiscordHttp()).process() except Exception as _excpt: logging.error(f"Exception occurred: {_excpt}") return func.HttpResponse(body=f"Exception occurred: {_excpt}", status_code=500)