From 882f2a79827260fbc8124c1b63ee590243ade8ef Mon Sep 17 00:00:00 2001 From: kalipso Date: Mon, 17 Jun 2024 22:15:47 +0200 Subject: [PATCH] update --- my_project_name.egg-info/SOURCES.txt | 4 +++- my_project_name/bot_commands.py | 2 +- my_project_name/main.py | 28 ++++++++++++++-------------- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/my_project_name.egg-info/SOURCES.txt b/my_project_name.egg-info/SOURCES.txt index e2dc7ea..6403fff 100644 --- a/my_project_name.egg-info/SOURCES.txt +++ b/my_project_name.egg-info/SOURCES.txt @@ -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 \ No newline at end of file +my_project_name.egg-info/top_level.txt +tests/test_callbacks.py +tests/test_config.py \ No newline at end of file diff --git a/my_project_name/bot_commands.py b/my_project_name/bot_commands.py index a89ecc9..572aa2c 100644 --- a/my_project_name/bot_commands.py +++ b/my_project_name/bot_commands.py @@ -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 diff --git a/my_project_name/main.py b/my_project_name/main.py index e8b59f2..b23978a 100644 --- a/my_project_name/main.py +++ b/my_project_name/main.py @@ -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):