def multiaction_command(cls, default=None, fallback=None, **options): from pajbot.models.action import MultiAction cmd = cls(**options) cmd.action = MultiAction.ready_built(options.get('commands'), default=default, fallback=fallback) return cmd