Skip to content

Instantly share code, notes, and snippets.

@wiiaboo
Last active September 3, 2022 16:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wiiaboo/d7d03c2571f25f477537 to your computer and use it in GitHub Desktop.
Save wiiaboo/d7d03c2571f25f477537 to your computer and use it in GitHub Desktop.
My format for twitter announces in Taiga

Basically, only announces when an anime has been started, completed, put on hold or dropped.

Raw format (w/o whitespace):

$if($and($equal(%status%,1),$equal(%episode%,1)),Started $ifequal(%rewatching%,1,rew,w)atching: %title% %animeurl%,$if($and($greater(%status%,1),$lequal(%status%,3)),$ifequal(%status%,2,Completed: )$ifequal(%status%,3,Put on hold: )%title%$if(%score%, (Score: %score%/10)) %animeurl%,$if($and($equal(%status%,4),$greater(%episode%,1)),Dropped: %title%$if(%score%, (Score: %score%/10)) %animeurl%)))

Pseudo-code(?):

IF "CURRENTLY WATCHING" AND EPISODE 1
    IF REWATCHING
        "Started rewatching %title%"
    ELSE
        "Started watching %title%"
    "%animeurl%"
ELSEIF BETWEEN "COMPLETED" AND "DROPPED"
    IF "COMPLETED"
        "Completed: "
    ELSEIF "ON HOLD"
        "Put on hold: "
    ELSEIF "DROPPED"
        "Dropped: "
    %title%
    IF SCORE
        "Score: %score/10"
    "%animeurl%"

More legible:

$if( $and($equal(%status%,1),$equal(%episode%,1)),
    Started $ifequal(%rewatching%,1,rew,w)atching: %title% %animeurl%,
    $if( $and($greater(%status%,1),$lequal(%status%,4)),
        $ifequal(%status%,2,Completed: )
        $ifequal(%status%,3,Put on hold: )
        $ifequal(%status%,4,Dropped: )
        %title%
        $if(%score%, (Score: %score%/10))
        %animeurl%
    )
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment