Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion chatbot-master/main-raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

kernel = aiml.Kernel()

# path for bot_brain.brn file.
if os.path.isfile("bot_brain.brn"):
kernel.bootstrap(brainFile = "bot_brain.brn")
else:
Expand All @@ -11,7 +12,7 @@

# kernel now ready for use
while True:
message = raw_input("Tell your message to the bot: ")
message = raw_input("Tell your message to the bot: ") #if condition is true it will display the message else it exit from the code.
if message == "quit":
exit()
elif message == "save":
Expand Down