def tts_handler(command, args): print("tts :", tts) if len(command) > 1: if is_authed(args['name']) == 2: # Owner if command[1] == 'mute': print("mute") tts.mute_tts() return elif command[1] == 'unmute': tts.unmute_tts() return elif command[1] == 'vol': # TTS int volume command return
def tts_handler(command, args): log.debug("tts :", tts) if len(command) > 1: if is_authed(args['name']) == 2: # Owner if command[1] == 'mute': log.info("Owner muted TTS") tts.mute_tts() return elif command[1] == 'unmute': log.info("Owner unmuted TTS") tts.unmute_tts() return elif command[1] == 'vol': # TODO : Impliment this. # TTS int volume command return
def tts_handler(command, args): log.debug("tts : %s", tts) if len(command) > 1: if is_authed(args['name']) == 2: # Owner if command[1] == 'mute': log.info("Owner muted TTS") tts.mute_tts() return elif command[1] == 'unmute': log.info("Owner unmuted TTS") tts.unmute_tts() return elif command[1] == 'vol': if len(command) > 2: log.info("Owner changed TTS Volume") tts.volume(command[2]) return
def tts_handler(command, args): log.debug("tts : %s", tts) if len(command) > 1: if is_authed(args['sender']) == 2: # Owner if command[1] == 'mute': log.info("Owner muted TTS") robot_util.sendChatMessage("TTS muted") tts.mute_tts() return elif command[1] == 'unmute': log.info("Owner unmuted TTS") robot_util.sendChatMessage("TTS unmuted") tts.unmute_tts() return elif command[1] == 'vol': if len(command) > 2: log.info("Owner changed TTS Volume") robot_util.sendChatMessage("Changed TTS volume") tts.volume(command[2]) return