def respondToTrigger(input): triggers = ["assignment","opdracht","what do i do"] for t in triggers: if t in input: if askedCounter > 0: output("why do you ask me this again?") c.output(randomAssignments())
def respondRandom(): answer = [ "OK", "Roger", "Roger that", "acknowleged", "confirmat" ] c.output()
def respondRandom(): answers = [ "Ok!" "You got it!" "Concider it done" "Thanks, you too!" "Come on now!" "Hahaha!" ] c.output()
def setup(): c.output("This is the rogor.") c.sleep(1) c.output("hallo")
def setup(): c.output("This is the bot template.") c.sleep(1) c.output('It does nothing more than just responding with "Ok".')
def output(s): c.output(s)
def response(input): print(input) c.output("Ok")
def setup(): global askedCounter askedCounter = 0 c.output("Hello my name is Roger") c.sleep(1) c.output("wassup")
def response(input): #print(input) if not respondToTrigger(input): c.output(respondRandom())