mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
* folder build shoud be ignored * added hint about gTTS support to get vernie chatter * determines full path to vernie.commands * catches tts exception if an empty text passed to `say` command
16 lines
322 B
Python
16 lines
322 B
Python
from . import *
|
|
|
|
robot = Vernie()
|
|
|
|
robot.say("commands from file")
|
|
|
|
|
|
def confirmation(command):
|
|
robot.say(command[0])
|
|
|
|
|
|
with open(os.path.join(os.path.dirname(__file__), "vernie.commands")) as fhd:
|
|
for cmd in fhd.readlines():
|
|
sys.stdout.write("%s" % cmd)
|
|
robot.interpret_command(cmd, confirmation)
|