stvtermux 1.0.4__tar.gz → 1.0.6__tar.gz
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-1.0.4 → stvtermux-1.0.6}/PKG-INFO +1 -1
- {stvtermux-1.0.4 → stvtermux-1.0.6}/setup.py +1 -1
- {stvtermux-1.0.4 → stvtermux-1.0.6}/stvtermux/core.py +5 -5
- stvtermux-1.0.6/stvtermux/index.py +30 -0
- stvtermux-1.0.6/stvtermux/nhom.py +1 -0
- {stvtermux-1.0.4 → stvtermux-1.0.6}/stvtermux.egg-info/PKG-INFO +1 -1
- {stvtermux-1.0.4 → stvtermux-1.0.6}/stvtermux.egg-info/SOURCES.txt +1 -0
- stvtermux-1.0.4/stvtermux/index.py +0 -1
- {stvtermux-1.0.4 → stvtermux-1.0.6}/README.md +0 -0
- {stvtermux-1.0.4 → stvtermux-1.0.6}/pyproject.toml +0 -0
- {stvtermux-1.0.4 → stvtermux-1.0.6}/setup.cfg +0 -0
- {stvtermux-1.0.4 → stvtermux-1.0.6}/stvtermux/__init__.py +0 -0
- {stvtermux-1.0.4 → stvtermux-1.0.6}/stvtermux/cli.py +0 -0
- {stvtermux-1.0.4 → stvtermux-1.0.6}/stvtermux.egg-info/dependency_links.txt +0 -0
- {stvtermux-1.0.4 → stvtermux-1.0.6}/stvtermux.egg-info/entry_points.txt +0 -0
- {stvtermux-1.0.4 → stvtermux-1.0.6}/stvtermux.egg-info/requires.txt +0 -0
- {stvtermux-1.0.4 → stvtermux-1.0.6}/stvtermux.egg-info/top_level.txt +0 -0
@@ -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
|
-
|
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
|
@@ -0,0 +1,30 @@
|
|
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()
|
@@ -0,0 +1 @@
|
|
1
|
+
print("🎉 Xin chào! Bạn đã vào file nhóm.py")
|
@@ -1 +0,0 @@
|
|
1
|
-
print("🎉 Xin chào! Bạn đã vào file in.py")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|