fix
authorGeorgios Atheridis <georgios@atheridis.org>
Sat, 1 Jul 2023 11:02:21 +0000 (12:02 +0100)
committerGeorgios Atheridis <georgios@atheridis.org>
Sat, 1 Jul 2023 11:02:21 +0000 (12:02 +0100)
ihaspeks/tools/test_message.py

index aebcbcb540bcf6eb332d8e1c91029948670713d8..86cfa0d8684f000774d026c9f2230d310c47f400 100644 (file)
@@ -9,7 +9,7 @@ PATH = os.path.join(TOOLS_PATH, "..")
 
 def test(test_type: str, sub_type: str) -> Message:
     text_path = os.path.join(TOOLS_PATH, "messages", test_type, sub_type + ".txt")
-    f = open(text_path, "w")
+    f = open(text_path, "r")
     message = random.choice(f.readlines())
     f.close()
     return Bot._parse_message(message)