From fe4dcc4a921bf8b1e55ba583f951dd21fd957005 Mon Sep 17 00:00:00 2001 From: Profitroll Date: Mon, 19 Feb 2024 23:08:41 +0100 Subject: [PATCH] Message events initialized --- classes/enums/__init__.py | 1 + classes/enums/message_events.py | 5 +++++ modules/database.py | 1 + 3 files changed, 7 insertions(+) create mode 100644 classes/enums/__init__.py create mode 100644 classes/enums/message_events.py diff --git a/classes/enums/__init__.py b/classes/enums/__init__.py new file mode 100644 index 0000000..54d506c --- /dev/null +++ b/classes/enums/__init__.py @@ -0,0 +1 @@ +from .message_events import MessageEvents diff --git a/classes/enums/message_events.py b/classes/enums/message_events.py new file mode 100644 index 0000000..8b0ae0d --- /dev/null +++ b/classes/enums/message_events.py @@ -0,0 +1,5 @@ +from enum import Enum + + +class MessageEvents(Enum): + WEATHER_FORECAST = 0 diff --git a/modules/database.py b/modules/database.py index e70a7e7..6581e81 100644 --- a/modules/database.py +++ b/modules/database.py @@ -24,6 +24,7 @@ db_client = AsyncClient(con_string) db: AsyncDatabase = db_client.get_database(name=db_config["name"]) col_users: AsyncCollection = db.get_collection("users") +col_messages: AsyncCollection = db.get_collection("messages") col_warnings: AsyncCollection = db.get_collection("warnings") col_checkouts: AsyncCollection = db.get_collection("checkouts") col_trackings: AsyncCollection = db.get_collection("trackings")