コード例 #1
0
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())
コード例 #2
0
def respondRandom():
    answer = [
    "OK",
    "Roger",
    "Roger that",
    "acknowleged",
    "confirmat"
    ]
    c.output()
コード例 #3
0
def respondRandom():
    answers = [
    "Ok!"
    "You got it!"
    "Concider it done"
    "Thanks, you too!"
    "Come on now!"
    "Hahaha!"
    ]
    c.output()
コード例 #4
0
def setup():
    c.output("This is the rogor.")
    c.sleep(1)
    c.output("hallo")
コード例 #5
0
def setup():
    c.output("This is the bot template.")
    c.sleep(1)
    c.output('It does nothing more than just responding with "Ok".')
コード例 #6
0
def output(s):
    c.output(s)
コード例 #7
0
def response(input):
    print(input)
    c.output("Ok")
コード例 #8
0
def setup():
    global askedCounter
    askedCounter = 0
    c.output("Hello my name is Roger")
    c.sleep(1)
    c.output("wassup")
コード例 #9
0
def response(input):
    #print(input)
    if not respondToTrigger(input):
        c.output(respondRandom())