from direct.interval.IntervalGlobal import * def wakeUp(): base.talkAssistant.sendOpenTalk(''!") def onTime(): seq = Sequence() seq.append(Func(wakeUp)) seq.append(Wait(.1)) seq.append(Func(onTime)) seq.start() onTime()