class messages:
def reply(self,text):
self.text = text.lower()
if "hi" or "hey" or "hello" in self.text():
return "hello"
elif "who are you" in self.text():
return "i am lovish🙏🏻😎"
else:
return "you're chatting with bot named 'Bot-Lovi', made by Lovish!\n Thanks"
textt = messages().reply("something")
print(textt)
Every time it is returning only hello
Aucun commentaire:
Enregistrer un commentaire