Skip to content

Commit

Permalink
Update demo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
0dm committed May 7, 2023
1 parent cdaee2a commit 67396e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions puterbot/plugin/data/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def sendkeys(args):
response = openai.Completion.create(**params)

print("Sending keys: ", response["choices"][0]["text"])
# sleep for 3 seconds
# __import__("time").sleep(3)
keyboard.type(response["choices"][0]["text"])
return 200

Expand All @@ -37,4 +35,5 @@ def test():
print("Success!")

if __name__ == "__main__":
print(os.getenv("API_KEY"))
print("api key: ", os.getenv("API_KEY"))
test()

0 comments on commit 67396e3

Please sign in to comment.