def table(text, message): """<text> -- (╯°□°)╯︵ <ʇxǝʇ>""" if text: message(random.choice(flippers) + " ︵ " + formatting.multi_replace(text[::-1].lower(), replacements)) else: message(random.choice(flippers) + " ︵ ┻━┻")
def test_multiword_replace(): assert multi_replace(test_multiword_replace_text, test_multiword_replace_dict) == test_multiword_replace_result # compatibility assert multiword_replace(test_multiword_replace_text, test_multiword_replace_dict) == test_multiword_replace_result
def flip(text, reply): """<text> -- Flips <text> over.""" reply(formatting.multi_replace(text[::-1].lower(), replacements))