@hook.command
def flip(text, reply):
 reply(formatting.multi_replace(text[::(-1)].lower(), replacements))

@ hook . command def flip ( text , reply ) : reply ( formatting . multi_replace ( text [ : : ( - 1 ) ] . lower ( ) , replacements ) )
call the function call with the arguments flipped this function is curried .