Chatbot WIP

This commit is contained in:
2026-08-25 23:35:45 +02:00
parent 4ba7549932
commit b6728272e8
+22 -3
View File
@@ -1,12 +1,31 @@
# -*- coding: utf-8 -*-
# Kommentar Test
import random
print ("Hallo! Willkommen bei MikaGPT. Was kann ich für Sie tun?")
woerter = {
"test": "bro... dies ist ein Test",
}
zwoerter = ["Oh, wirklich?", "Nuh uh"]
while True:
uinput = (input("Bitte Eingabe beginnen ").lower().split())
while uinput:
if "bye" in uinput:
print("MikaGPT wird nun beendet.")
break
randoma = set(uinput).isdisjoint(set(woerter))
if randoma == True:
print (random.choice(zwoerter))
for antworten in uinput:
if antworten in woerter:
(woerter[antworten])
# if uinput not in zwoerter:
# print (random.choice(woerter))