Skip to content

yulyan407/GoIT_HomeWork_9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This script is a console helper bot that recognizes commands entered from the keyboard and responds accordingly.

The bot-assistant can save a name and a phone number, find a phone number by name, change a recorded phone number, display all saved records in the console

The bot accepts commands:

"hello", replies to the console "How can I help you?"

"add ...". With this command, the bot saves a new contact in memory. Instead of ... the user enters the name and phone number, necessarily with a space.

"change ..." With this command, the bot stores the new phone number of the existing contact in memory. Instead of ... the user enters the name and phone number, necessarily with a space.

"phone ...." With this command, the bot outputs the phone number for the specified contact to the console. Instead of ... the user enters the name of the contact whose number should be displayed.

"show all". With this command, the bot outputs all saved contacts with phone numbers to the console.

"good bye", "close", "exit" by any of these commands, the bot ends its work after outputting "Good bye!" to the console.

About

Assistant console bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages