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")