lulzbot/test/cartmantest.py

16 lines
320 B
Python
Raw Normal View History

2022-12-21 15:56:25 -05:00
import requests
import json
url = 'https://doordesk.net/chat'
active = True
while active:
user_input = input('>> ')
if user_input in 'q':
active = False
break
message = {'Message': user_input}
response = requests.post(url,json.dumps(message))
print(response.json().get('Cartman'))