forked from nolan/titlebot-ng-ng
Work started on startbot
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
config.yaml
|
||||
*.db
|
||||
__pycache__
|
||||
.env
|
||||
+3
-3
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user