From 032d5f26b9ea5606fd42ddb2cb996e7122636b37 Mon Sep 17 00:00:00 2001 From: GaMeNu <98153342+GaMeNu@users.noreply.github.com> Date: Mon, 15 Jan 2024 08:38:31 +0200 Subject: [PATCH 1/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8236671..ee700f0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## A bot to send Discord notifications for HFC alerts ### Created by GaMeNu and yrrad8 -> **IMPORTANT:** This bot is unofficial! Please do not rely on it alone. +> [!IMPORTANT] This bot is unofficial! Please do not rely on it alone. ## Table of Contents - [What is this?](#what-is-this) From 9c7ef140633c77ccbf366b3a00cff013654a5284 Mon Sep 17 00:00:00 2001 From: GaMeNu <98153342+GaMeNu@users.noreply.github.com> Date: Mon, 15 Jan 2024 08:39:51 +0200 Subject: [PATCH 2/6] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ee700f0..563b061 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ ## A bot to send Discord notifications for HFC alerts ### Created by GaMeNu and yrrad8 -> [!IMPORTANT] This bot is unofficial! Please do not rely on it alone. +> [!IMPORTANT]\ +> This bot is unofficial! Please do not rely on it alone. ## Table of Contents - [What is this?](#what-is-this) From a779dc1783780ea8da1ce56316165a89dd4bacd9 Mon Sep 17 00:00:00 2001 From: GaMeNu <98153342+GaMeNu@users.noreply.github.com> Date: Mon, 15 Jan 2024 08:40:14 +0200 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 563b061..a3358d3 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## A bot to send Discord notifications for HFC alerts ### Created by GaMeNu and yrrad8 -> [!IMPORTANT]\ +> [!WARNING]\ > This bot is unofficial! Please do not rely on it alone. ## Table of Contents From 72904412f379b5061c5942bdce171cd736a3437e Mon Sep 17 00:00:00 2001 From: GaMeNu <98153342+GaMeNu@users.noreply.github.com> Date: Mon, 15 Jan 2024 08:42:59 +0200 Subject: [PATCH 4/6] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a3358d3..bc4eacd 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ ## A bot to send Discord notifications for HFC alerts ### Created by GaMeNu and yrrad8 -> [!WARNING]\ -> This bot is unofficial! Please do not rely on it alone. +> [!CAUTION]\ +> This bot is unofficial! The public instance may experience downtimes, and there may be issue with the code. Please do not rely on it alone! ## Table of Contents - [What is this?](#what-is-this) From 1a27e11a2db329d43e5ed2c2b06af04628526064 Mon Sep 17 00:00:00 2001 From: GaMeNu <98153342+GaMeNu@users.noreply.github.com> Date: Thu, 1 Feb 2024 13:01:03 +0200 Subject: [PATCH 5/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc4eacd..4c205bc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## A bot to send Discord notifications for HFC alerts ### Created by GaMeNu and yrrad8 -> [!CAUTION]\ +> [!WARNING]\ > This bot is unofficial! The public instance may experience downtimes, and there may be issue with the code. Please do not rely on it alone! ## Table of Contents From d750ba5e3728d3d8fd2d29a5c70993f9db058784 Mon Sep 17 00:00:00 2001 From: yrrad8 <74175908+yrrad8@users.noreply.github.com> Date: Sun, 19 May 2024 17:10:49 +0300 Subject: [PATCH 6/6] Added setup file --- setup.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..204d4e8 --- /dev/null +++ b/setup.py @@ -0,0 +1,32 @@ +import subprocess +import sys + + +def newer_python(): + return sys.version_info >= (3, 11) + + +def install_requirements(): + try: + if newer_python(): + subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements-3_11.txt"]) + else: + subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"]) + print("All requirements have been installed successfully.") + except subprocess.CalledProcessError as e: + print(f"Error occurred while installing requirements: {e}") + + +def main(): + install_requirements() + try: + import db_creation.create_db + import db_access + except ImportError as e: + print(f"Error occurred while importing the module: {e}") + except AttributeError as e: + print(f"Error occurred while calling the function: {e}") + + +if __name__ == '__main__': + main()