update
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user