def set_aliases(self, new_aliases):
        if not is_iter(new_aliases):
            try:
                self.aliases = [str(alias).strip().lower()
                                for alias in self.aliases.split(',')]
            except Exception:
                self.aliases = []
        self.aliases = list(set(alias for alias in self.aliases
                            if alias and alias != self.key))
        self._optimize()
Update aliases.
dataset/ETHPy150Open evennia/evennia/evennia/commands/command.py/Command.set_aliases