This commit is contained in:
2024-06-17 22:15:47 +02:00
parent b427531896
commit 882f2a7982
3 changed files with 18 additions and 16 deletions

View File

@@ -17,4 +17,6 @@ my_project_name.egg-info/PKG-INFO
my_project_name.egg-info/SOURCES.txt
my_project_name.egg-info/dependency_links.txt
my_project_name.egg-info/requires.txt
my_project_name.egg-info/top_level.txt
my_project_name.egg-info/top_level.txt
tests/test_callbacks.py
tests/test_config.py

View File

@@ -18,7 +18,7 @@ def task_help():
message = "# Tasks for this week\n"
for task in data:
message += "- {} ({}): {}\n".format(task["Name"], task["Value"], task["Description"])
message += "- **{}** (*{}*): {}\n".format(task["Name"], task["Value"], task["Description"])
return message

View File

@@ -152,22 +152,22 @@ async def main():
# Login succeeded!
logger.info(f"Logged in as {config.user_id}")
#logger.info(f"Logged in as {config.user_id}")
await client.join("!aRFGSGKGeaBxiEfDMC:matrix.org")
print("joined room")
sleep(5)
await client.sync()
print(client.rooms)
#print("joined room")
#sleep(5)
#await client.sync()
#print(client.rooms)
#await client.room_send(
# # Watch out! If you join an old room you'll see lots of old messages
# room_id="!zKwFlsxXpmVhBMdOBa:matrix.org",
# message_type="m.room.message",
# content={"msgtype": "m.text", "body": "Hello world!"},
# )
#t = threading.Thread(target = foo, args =(client, ))
#t.start()
await foo(client)
##await client.room_send(
## # Watch out! If you join an old room you'll see lots of old messages
## room_id="!zKwFlsxXpmVhBMdOBa:matrix.org",
## message_type="m.room.message",
## content={"msgtype": "m.text", "body": "Hello world!"},
## )
##t = threading.Thread(target = foo, args =(client, ))
##t.start()
#await foo(client)
await client.sync_forever(timeout=30000, full_state=True)
except (ClientConnectionError, ServerDisconnectedError):