Пример #1
0
def table(text, message):
    """<text> -- (╯°□°)╯︵ <ʇxǝʇ>"""
    if text:
        message(random.choice(flippers) + " ︵ " + formatting.multi_replace(text[::-1].lower(), replacements))
    else:
        message(random.choice(flippers) + " ︵ ┻━┻")
Пример #2
0
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
Пример #3
0
def flip(text, reply):
    """<text> -- Flips <text> over."""
    reply(formatting.multi_replace(text[::-1].lower(), replacements))