def ban_handler(command, args): global banned if len(command) > 1: user = command[1] if is_authed(args['name']): # Moderator banned.append(user) log.info("%s added %s to ban list", args['name'], user) tts.mute_user_tts(user)
def ban_handler(command, args): global banned if len(command) > 1: user = command[1] if is_authed(args['name']): # Moderator banned.append(user) print(user + " added to ban list") tts.mute_user_tts(user)
def timeout_handler(command, args): global banned if len(command) > 1: user = command[1] if is_authed(args['name']): # Moderator banned.append(user) schedule.single_task(5, untimeout_user, user) log.info("%s added %s to timeout list", args['name'], user) tts.mute_user_tts(user)
def ban_handler(command, args): global banned if len(command) > 1: user = command[1] if is_authed(args['sender']): # Moderator banned.append(user) log.info("%s added %s to ban list", args['sender'], user) robot_util.sendChatMessage("{} added to ban list".format(user)) tts.mute_user_tts(user)
def timeout_handler(command, args): global banned if len(command) > 1: user = command[1] if is_authed(args['sender']): # Moderator banned.append(user) schedule.single_task(300, untimeout_user, user) log.info("%s added %s to timeout list", args['sender'], user) robot_util.sendChatMessage("{} timed out".format(user)) tts.mute_user_tts(user)