Türkçe
Bu kod bir sohbet botu oluşturur ve kullanıcıyla etkileşim kurar. Bot, aşağıdaki işlevleri yerine getirebilir:
Kullanıcıya merhaba diyerek karşılama yapar ve ne yapabileceğini sorar. Kullanıcının adını sorar ve hoş geldiniz mesajı verir. Kullanıcının hava durumu hakkında sorması durumunda, Ankara, İstanbul veya İzmir'deki hava durumunu söyler.(Hava durumu gerçek değil) Kullanıcının nasılsın gibi bir sorusu olduğunda, iyi olduğunu belirtir ve kullanıcının da nasıl olduğunu sorar. Kullanıcının şaka yapmasını veya espri yapmasını istediğinde, birkaç farklı espri seçeneği sunar. Kullanıcının "çıkış" kelimesini yazması durumunda, bot işlemleri sonlandırır ve görüşürüz mesajı verir. Kullanıcının anlaşılmayan bir şey yazması durumunda, ne demek istediğini tam olarak anlamadığını belirterek kullanıcıya sorar.
Neler Eklenebilir; -Neler yaptığı ekrana yazılabilir... -Birçok etkileşimli araç eklenebilir...
English
This code creates a chatbot and interacts with the user. The bot can perform the following functions:
He greets the user by saying hello and asks what he can do. It asks for the user's name and gives a welcome message. If the user asks about the weather, it tells the weather in Ankara, Istanbul or Izmir.(The weather is not real) When the user has a question like how are you, he states that he is fine and asks how the user is. It offers several different joke options when it asks the user to joke or make a joke. If the user types the word "exit", the bot will terminate the processes and issue a bye message. If the user writes something that is not understood, it prompts the user, stating that he does not fully understand what he means.
What Can Be Added; -What he does can be written on the screen... -Many interactive tools can be added...