Skip to content
This repository was archived by the owner on Jun 19, 2026. It is now read-only.

Commit 41cb0c4

Browse files
authored
add-pack 1.6.5
1 parent 324d429 commit 41cb0c4

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

data/colors/10-1-24/happy.png

2.59 KB
Loading

data/colors/10-1-24/sad.png

2.43 KB
Loading

main.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import requests
88
import random
99

10-
version = "1.6"
11-
versiona = "release 1.6"
10+
version = "1.6.5"
11+
versiona = "add-pack 1.6.5"
1212
cdata = os.path.expanduser("~/.local/share/catdata")
1313
current_dir = os.path.dirname(os.path.abspath(__file__))
1414

@@ -160,7 +160,7 @@ def deletecat(func):
160160
)
161161
response = warning.run()
162162
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...")
164164
time.sleep(1)
165165
warning.destroy()
166166
pushn(os.path.join(current_dir, f"data/icon.png"), "catgameGTK", "deleting your cat...")
@@ -479,17 +479,22 @@ def install():
479479
response = dialog.run()
480480

481481
if response == Gtk.ResponseType.OK:
482-
randome = random.randint(1, 3)
483482
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)
485485

486486
if os.path.isdir(cdata):
487487
print("pikimiki")
488488
else:
489489
os.makedirs(os.path.join(shdata, "catdata"), exist_ok=True)
490490

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+
493498
dialog.destroy()
494499
main()
495500
else:

0 commit comments

Comments
 (0)