import logging import random logger = logging.getLogger("ONYX") class ViralScriptEngine: def __init__(self): self.pattern_interrupts = [ "Mais il y a un détail que personne ne remarque.", "Et c'est là que ton cerveau te piège.", "Mais ton cerveau cache quelque chose.", "Et c'est là que tout devient intéressant.", "Mais la psychologie révèle autre chose." ] self.calls_to_action = [ "Observe ce mécanisme autour de toi.", "Maintenant tu ne verras plus ça pareil.", "Regarde si tu remarques ce phénomène.", "La prochaine fois, fais attention à ça.", "Ton cerveau fait ça tous les jours." ] def generate(self, theme): hook = f"Tu ne regarderas plus jamais {theme} de la même façon." interrupt = random.choice(self.pattern_interrupts) psychology = f"La psychologie explique comment {theme} influence ton cerveau." twist = f"Ce mécanisme révèle quelque chose de profond sur le comportement humain." cta = random.choice(self.calls_to_action) script = f""" HOOK: {hook} PATTERN INTERRUPT: {interrupt} PSYCHOLOGY: {psychology} TWIST: {twist} CALL TO ACTION: {cta} """ logger.info("Viral script generated") return script.strip()