Beispiel #1
0
    def play(self, cmd):
        orcs = os.listdir("orc/")
        for orc in orcs:
            if cmd[0] == orc[0:2]:
                t = cmd[0]
                cmd.pop(0)
                orc = "orc." + orc.split(".")[0]
                p = __import__(orc, globals(), locals(), ["play"])

                for c in self.cc:
                    if c == t or c == "g":
                        cmd = cmd + self.cc[c]

                Voice(p.play, t, cmd, self.renders, self.voices, self.condition).start()

                return True

        print "not found"
Beispiel #2
0
 def do_c(self, cmd):
     cmd = cmd.split(" ")
     t = cmd[0]
     cmd.pop(0)
     self.cc[t] = cmd