diff --git a/.gitignore b/.gitignore index a817abb..552e5c2 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ venv/ .devcontainer .vscode .vscode -.env \ No newline at end of file +.env +.storage \ No newline at end of file diff --git a/bot.py b/bot.py new file mode 100644 index 0000000..e06f5dc --- /dev/null +++ b/bot.py @@ -0,0 +1,13 @@ +import simplematrixbotlib as botlib +import os + +import dotenv; dotenv.load_dotenv() + +local_storage_path = "./.storage/" + +creds = botlib.Creds( + os.getenv("HOMESERVER"), + os.getenv("USERNAME"), + os.getenv("PASSWORD"), + f"{local_storage_path}/session.txt" +) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 6ceba3b..c28aae8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -simplematrixbotlib \ No newline at end of file +simplematrixbotlib +python-dotenv \ No newline at end of file