Skip to content

Commit

Permalink
Add bot creds (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrazyKirby99999 authored Jul 17, 2021
1 parent 87808f2 commit 0d99f3a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ venv/
.devcontainer
.vscode
.vscode
.env
.env
.storage
13 changes: 13 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
@@ -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"
)
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
simplematrixbotlib
simplematrixbotlib
python-dotenv

0 comments on commit 0d99f3a

Please sign in to comment.