diff --git a/abra.sh b/abra.sh index b280133..fa8e047 100644 --- a/abra.sh +++ b/abra.sh @@ -1 +1,12 @@ export CONFIG_VERSION=v1 + +message() { + python3 -c """ +import json +import os +lastfile = sorted(os.listdir('/root/.config/chatgpt-cli/session-history/'))[-1] +message = json.load(open(f'/root/.config/chatgpt-cli/session-history/{lastfile}')) +print(message['messages'][-1]['content']) + """ + +}