stvtermux 1.0.4__py3-none-any.whl → 1.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
stvtermux/core.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import requests
2
2
  import json
3
3
  import subprocess
4
+ import os
4
5
 
5
6
  FIREBASE_URL = "https://sever-login-ae5cc-default-rtdb.firebaseio.com/player.json"
6
7
 
@@ -38,11 +39,10 @@ class Auth:
38
39
  for _, user in data.items():
39
40
  if user.get("username") == username and user.get("password") == password:
40
41
  print("✅ Đăng nhập thành công!")
41
- subprocess.run(["python", "index.py"])
42
+ # 👉 Lấy đường dẫn tuyệt đối tới index.py trong package
43
+ module_path = os.path.join(os.path.dirname(__file__), "index.py")
44
+ subprocess.run(["python", module_path])
42
45
  return True
43
46
 
44
47
  print("❌ Sai username hoặc password!")
45
- return False
46
-
47
-
48
-
48
+ return False
stvtermux/index.py CHANGED
@@ -1 +1,30 @@
1
- print("🎉 Xin chào! Bạn đã vào file in.py")
1
+ import os
2
+ import subprocess
3
+
4
+ def main():
5
+ # giao diện mở đầu
6
+ os.system("clear") # nếu bạn dùng Termux/Linux, trên Windows thì thay bằng cls
7
+ print("═" * 40)
8
+ print("🌐 CHÀO MỪNG BẠN ĐẾN VỚI STVTermux 🌐")
9
+ print("═" * 40)
10
+ print("👉 Vui lòng chọn chức năng:")
11
+ print("1️⃣ Nhóm Chat (nhom.py)")
12
+ print("2️⃣ Bot Tự Động (bot.py)")
13
+ print("0️⃣ Thoát")
14
+ print("═" * 40)
15
+
16
+ choice = input("➡️ Nhập lựa chọn: ")
17
+
18
+ if choice == "1":
19
+ module_path = os.path.join(os.path.dirname(__file__), "nhom.py")
20
+ subprocess.run(["python", module_path])
21
+ elif choice == "2":
22
+ module_path = os.path.join(os.path.dirname(__file__), "bot.py")
23
+ subprocess.run(["python", module_path])
24
+ elif choice == "0":
25
+ print("👋 Tạm biệt!")
26
+ else:
27
+ print("❌ Lựa chọn không hợp lệ!")
28
+
29
+ if __name__ == "__main__":
30
+ main()
stvtermux/nhom.py ADDED
@@ -0,0 +1 @@
1
+ print("🎉 Xin chào! Bạn đã vào file nhóm.py")
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stvtermux
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Requires-Dist: requests
5
5
  Dynamic: requires-dist
@@ -0,0 +1,10 @@
1
+ stvtermux/__init__.py,sha256=bk7kIC3tSACeEbiYSYrJEpHxwr6DswGbO-18EF-MDwM,45
2
+ stvtermux/cli.py,sha256=pmjeY6GyZMqPiXN_lzdrScaG5gBFtS7EHlhmb_Ld1PM,544
3
+ stvtermux/core.py,sha256=mTFyeko7yw9b38ZV6mDMcWC7L83Rbn3cPjAJUi2xhHY,1798
4
+ stvtermux/index.py,sha256=QazhR3QhyKZO3Uc3x_TapRCduCStOtxWT2HY5xfQ5gY,999
5
+ stvtermux/nhom.py,sha256=lYBP6NHk-yN1eCiRwE5uPrM__ZUuzrdNYlDW6Icvs8Y,54
6
+ stvtermux-1.0.6.dist-info/METADATA,sha256=kd93lyGgYs0cknwst0RmZQbB9OfkHx-miZcERom2e9s,100
7
+ stvtermux-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ stvtermux-1.0.6.dist-info/entry_points.txt,sha256=7b0IuLqKSWL2VMJxcTdMLZXBaPfYT1atz6wwBTqco9Q,43
9
+ stvtermux-1.0.6.dist-info/top_level.txt,sha256=6krSSYES7OG83FeLt7MWD5vG8MOwzYh_K3ju8lBNqwg,10
10
+ stvtermux-1.0.6.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- stvtermux/__init__.py,sha256=bk7kIC3tSACeEbiYSYrJEpHxwr6DswGbO-18EF-MDwM,45
2
- stvtermux/cli.py,sha256=pmjeY6GyZMqPiXN_lzdrScaG5gBFtS7EHlhmb_Ld1PM,544
3
- stvtermux/core.py,sha256=9SNhmGLpi8aV1hgJhT1Tl_SAcybjzge5H_GrgfLCC-g,1621
4
- stvtermux/index.py,sha256=b4WvMdOSmzZJHQer2qTuPA60KfZ8TMHTtuB9z44zdaI,51
5
- stvtermux-1.0.4.dist-info/METADATA,sha256=GhaQNaRmZCWWyON6fRzxK_KXQQly3rRjX7jkrEu12p0,100
6
- stvtermux-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- stvtermux-1.0.4.dist-info/entry_points.txt,sha256=7b0IuLqKSWL2VMJxcTdMLZXBaPfYT1atz6wwBTqco9Q,43
8
- stvtermux-1.0.4.dist-info/top_level.txt,sha256=6krSSYES7OG83FeLt7MWD5vG8MOwzYh_K3ju8lBNqwg,10
9
- stvtermux-1.0.4.dist-info/RECORD,,