From 7a3e2e5e07eac644492b4329ca765956e3d2b501 Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Wed, 12 Jun 2024 21:34:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F'=20move=20script=20to=20m?= =?UTF-8?q?odule=20folder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- matrix_bot_praying_times/__init__.py | 0 bot.py => matrix_bot_praying_times/__main__.py | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 matrix_bot_praying_times/__init__.py rename bot.py => matrix_bot_praying_times/__main__.py (97%) diff --git a/matrix_bot_praying_times/__init__.py b/matrix_bot_praying_times/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bot.py b/matrix_bot_praying_times/__main__.py similarity index 97% rename from bot.py rename to matrix_bot_praying_times/__main__.py index 1f243d0..6b6a5bf 100644 --- a/bot.py +++ b/matrix_bot_praying_times/__main__.py @@ -8,7 +8,12 @@ from dotenv import load_dotenv load_dotenv() -creds = botlib.Creds(os.getenv("BOT_HOMESERVER"), os.getenv("BOT_USERNAME"), os.getenv("BOT_PASSWORD")) +creds = botlib.Creds( + os.getenv("BOT_HOMESERVER"), + os.getenv("BOT_USERNAME"), + os.getenv("BOT_PASSWORD") +) + bot = botlib.Bot(creds) PREFIX = '!' utc = pytz.UTC