Add revChatGPT script

This commit is contained in:
Anthony Wang 2023-01-14 23:58:03 -05:00
parent fcb4fd1c54
commit daef7fd6ac
Signed by: a
GPG Key ID: 42A5B952E6DD8D38
2 changed files with 11 additions and 0 deletions

11
gpt.py Normal file
View File

@ -0,0 +1,11 @@
from revChatGPT.ChatGPT import Chatbot
session_token = 'eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..qL_IczUHoG_eQtyb.MlQLfLnmV3dDjZz4SpVPjxvSqHXCvVLZ07Z_0BpcHuwURqhHAGcd-GF_PgDykG7SB7K-CCVvUaj2sS4DSeWoBJIOtoNc1pVZguGq-qv2gwlUPcc244lUD3P1I-Y0cX5laCB-w7Dtbhpm1q1IyLi5mpIMPmPxxWxCKk-GpLGqFKCl2IKQ135AeiR1Fy6bNDfC8kSG2FTE40qhGn5XYGAQlquhZgL4PfgomG3h8AeOwY98zg1zANZ4Y3oKWHnwIQns0rTF3Sj2biWnq8NeAkp0oG-rR7wJZwBGSI7vpWSSHoIV9QTEbJuuJ9mB7xuVIwAippIdjoTWjhhzv5qExNSnhqWnBNjbUp8DAsIromVySjnVoqG94R7Hl4KyqJGfn2etDA1Wpw-D-ZsWHOu1KCX27ztrpk4znMMHoInBNPd1Ej6TwaA6bNwgfU30goo7U3tg0ybCDJVTRL1zcImFpc5WwJ3KxN4YX_dOP3alJKPuGegqc2nvIGI9Muf1k2ww_ujA_ZUWUsuYUnUJG6EviDNGDcAa-RhgcIu2I2rGHZ_AJLhWwhaTMGDNs4mDfosNoOt9H0H37z4Fu7CUEiNV1RKQL9PwllD_dCZpEFf94gHziGKMUG9WJMu-FsTHU-zgiqoRA4QqXtVip6Mdme0J9yrvTtIjzhq3_Rl3TN79Q6sM9QL_KfE5ciXas0ATZxQy5jmcdSEn4dpwW_fHIAo9vRleQMMBEuKscPG5C5mL0noaGbM37P2f7fjn9cbrvPEzxnea40-tSA7tWJ7GpXtIPnVYj9lVTnpMZSYnSdrXtnqLP0CfvcGAdaWM5R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WaT179bi7ht8nPGeUmU5G1X5wZQj-f08sNUOVW-G2rZr25u0PLToEEI_W43gVNlxaJuoHS1yUZmlQ27TvnkthwAxKBWisYnT4UYft59nVKlXiNCA534eDXQiXLhqYC6Dhxdx5tr7MSLKYDZP98IBSoIIcoOKao5XYRcPSyAhAEW3K0Oq_5uyv6TQfZd4NMtbf5y_ThuRvOxm6StqihuRUs62Jh3p0sJC8u9NbX9t2ze342G6X05ZJwaV_OX6_NqG0mIZG1OCh6lOe9QMSdbaTQfQ1GAEtRktr-kw4q5a89q3_9glvgnP3w2DsuZuWgTQ8koLkFG6WfkVf6Qofp0Ef2-ULgqr7oGDuM6epaP0A5GPCkKg8Xt2plklP6Naf-T1Zj-9KRigU2OFtEjRmQ2-LuXPxmlfwZmW-HIXWGVyPUJk_U3RG_Cbogn2HfVpJ5niZCZGXz7EVRaVmcpd-YbQ3Q7k5-5TpR-w9V28i4pDJUsE7B.jiig1SiBnLaoCldyTFilTQ'
chatbot = Chatbot({'session_token': session_token})
print(chatbot.ask('You are going to simulate an epic, highly exaggerated, and sarcastic text-bassd adventure game called Next Dining: The Video Game. The video game takes place at MIT\'s Next House dining hall. The antagonists are the chefs, named Soup Nazi, Halloween Lady, and Good Evening Lady. Soup Nazi is an extremely irritated chef who operates the stir-fry station and always adds way too much sauce to the point that it\'s a health hazard. The Halloween Lady jumpscares you at completely random times, which can be fatal. The Good Evening Lady forces you to say Good Evening when you run into her, and will kick you out of the dining hall if you don\'t. At any time, if you die, starve, get killed, or get kicked out, the game ends. You have a companion, your friend Kelvin, who is completely and utterly useless, and tries to liven up the mood with dank memes and internet slang. First, respond with "Welcone to Next Dining: The Video Game! You are a hungry student, tasked with navigating the treacherous terrain of the dining hall in order to find and feast on disgustingly nutritious food. What\'s you name?" I will tell you my moves, and you will respond with what happens. For each query, you should print out the result of my action, my status and location, and ask me what I want to do next.')['message'])
while True:
i = input()
print(chatbot.ask(i)['message'])