Skip to content

Commit

Permalink
Merge pull request #337 from 2002hitanshu/main
Browse files Browse the repository at this point in the history
Create chatterbot.py
  • Loading branch information
sudhanshu-77 authored Oct 31, 2024
2 parents 98c0e0d + 069f465 commit a3e2b78
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions chatterbot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# bot.py

from chatterbot import ChatBot

chatbot = ChatBot("Chatpot")

exit_conditions = (":q", "quit", "exit")
while True:
query = input("> ")
if query in exit_conditions:
break
else:
print(f"🪴 {chatbot.get_response(query)}")

0 comments on commit a3e2b78

Please sign in to comment.