mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
16 lines
281 B
Python
16 lines
281 B
Python
from . import *
|
|
|
|
robot = Vernie()
|
|
|
|
robot.say("commands from file")
|
|
|
|
|
|
def confirmation(command):
|
|
robot.say(command[0])
|
|
|
|
|
|
with open("vernie.commands") as fhd:
|
|
for cmd in fhd.readlines():
|
|
sys.stdout.write("%s" % cmd)
|
|
robot.interpret_command(cmd, confirmation)
|