1
0
mirror of https://github.com/undera/pylgbst.git synced 2020-11-18 19:37:26 -08:00
Gena Batalski a4ed419156 Minor improvements (#5)
* 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
2018-02-11 15:27:45 +03:00

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)