From ffc119ce69ed7480098a8aca2328cc76235dbd9f Mon Sep 17 00:00:00 2001 From: AlexNg Date: Thu, 14 Dec 2023 02:58:21 +0800 Subject: [PATCH] + Added Configuration setup --- src/config.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/config.py diff --git a/src/config.py b/src/config.py new file mode 100644 index 0000000..d78e385 --- /dev/null +++ b/src/config.py @@ -0,0 +1,14 @@ +import os +from dotenv import load_dotenv +from typing import NoReturn, Optional + +load_dotenv() + +class Config: + """Configurations""" + + BOT_TOKEN: Optional[str] = os.getenv('BOT_TOKEN') + COMMAND_PREFIX: str = '$' + + def __init__(self, *args, **kwargs) -> NoReturn: + raise NotImplementedError('Not instantiable') \ No newline at end of file