Work started on startbot

This commit is contained in:
2025-08-01 11:41:22 -05:00
parent 8891addd56
commit aad7cdf1df
4 changed files with 17 additions and 5 deletions
+4
View File
@@ -0,0 +1,4 @@
config.yaml
*.db
__pycache__
.env
+3 -3
View File
@@ -1,7 +1,7 @@
username: "magbot"
password: "what did you expect to find here? Not a password, that's for sure."
# room_id: "!ajyOBbqoCIbBhEqNPU:matrix.org" # Magbot Testing Space
room_id: "!HXiyYVEZOMRtkyvarN:jupiterbroadcasting.com" # The Lunch
password: "zC1b9qCKT8Cv0D"
room_id: "!ajyOBbqoCIbBhEqNPU:matrix.org" # Magbot Testing Space
# room_id: "!HXiyYVEZOMRtkyvarN:jupiterbroadcasting.com" # The Lunch
lookback_seconds: 86400 # 24 hours
lookback_limit: 400 # 400 messages
+9
View File
@@ -0,0 +1,9 @@
# Change name to config.yaml when all info is filled in.
username: "magbot"
password: "Dont tek psswrd"
# room_id: "!ajyOBbqoCIbBhEqNPU:matrix.org" # Magbot Testing Space
room_id: "!HXiyYVEZOMRtkyvarN:jupiterbroadcasting.com" # The Lunch
lookback_seconds: 86400 # 24 hours
lookback_limit: 400 # 400 messages
+1 -2
View File
@@ -104,6 +104,7 @@ async def get_all_conversations(client, limit=None):
limit=fetch_amount,
direction="b"
)
if not hasattr(response, "chunk") or not response.chunk:
break
@@ -194,8 +195,6 @@ def get_last_run(room_id):
async def main():
print("\n\n==============\nOLD VERSION\n==============\n")
init_db()
client = await login_to_matrix()
if not client: