|
7 | 7 | import requests |
8 | 8 | import random |
9 | 9 |
|
10 | | -version = "1.6" |
11 | | -versiona = "release 1.6" |
| 10 | +version = "1.6.5" |
| 11 | +versiona = "add-pack 1.6.5" |
12 | 12 | cdata = os.path.expanduser("~/.local/share/catdata") |
13 | 13 | current_dir = os.path.dirname(os.path.abspath(__file__)) |
14 | 14 |
|
@@ -160,7 +160,7 @@ def deletecat(func): |
160 | 160 | ) |
161 | 161 | response = warning.run() |
162 | 162 | if response == Gtk.ResponseType.OK: |
163 | | - pushn(os.path.join(current_dir, f"data/colors/{cview}/{cattxt[3].strip()}"), cattxt[0].strip(), "oh...") |
| 163 | + pushn(os.path.join(current_dir, f"data/colors/{cview}/sad.png"), cattxt[0].strip(), "oh...") |
164 | 164 | time.sleep(1) |
165 | 165 | warning.destroy() |
166 | 166 | pushn(os.path.join(current_dir, f"data/icon.png"), "catgameGTK", "deleting your cat...") |
@@ -479,17 +479,22 @@ def install(): |
479 | 479 | response = dialog.run() |
480 | 480 |
|
481 | 481 | if response == Gtk.ResponseType.OK: |
482 | | - randome = random.randint(1, 3) |
483 | 482 | user_input = input_box.get_text() |
484 | | - print("cat name:", user_input) |
| 483 | + print(f"cat name: {user_input}") |
| 484 | + randome = random.randint(1, 3) |
485 | 485 |
|
486 | 486 | if os.path.isdir(cdata): |
487 | 487 | print("pikimiki") |
488 | 488 | else: |
489 | 489 | os.makedirs(os.path.join(shdata, "catdata"), exist_ok=True) |
490 | 490 |
|
491 | | - with open(os.path.join(cdata, "cat.txt"), "w") as f: |
492 | | - f.write(f"{user_input}\nsad and hungry\n0\nsad.png\n{randome}") |
| 491 | + if user_input == "i dont care": |
| 492 | + with open(os.path.join(cdata, "cat.txt"), "w") as f: |
| 493 | + f.write("jax\nsad and hungry\n0\nsad.png\n10-1-24\ncap") |
| 494 | + else: |
| 495 | + with open(os.path.join(cdata, "cat.txt"), "w") as f: |
| 496 | + f.write(f"{user_input}\nsad and hungry\n0\nsad.png\n{randome}") |
| 497 | + |
493 | 498 | dialog.destroy() |
494 | 499 | main() |
495 | 500 | else: |
|
0 commit comments