Skip to content

Commit e9e9048

Browse files
committed
(╯°□°)╯︵ <ʇxǝʇ>
1 parent e3c00c0 commit e9e9048

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

plugins/flip.py

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import random
2+
3+
from cloudbot import hook
4+
from cloudbot.util import formatting
5+
6+
USE_FLIPPERS = False
7+
8+
replacements = {
9+
'a': 'ɐ',
10+
'b': 'q',
11+
'c': 'ɔ',
12+
'd': 'p',
13+
'e': 'ǝ',
14+
'f': 'ɟ',
15+
'g': 'b',
16+
'h': 'ɥ',
17+
'i': 'ı',
18+
'j': 'ظ',
19+
'k': 'ʞ',
20+
'l': 'ן',
21+
'm': 'ɯ',
22+
'n': 'u',
23+
'o': 'o',
24+
'p': 'd',
25+
'q': 'b',
26+
'r': 'ɹ',
27+
's': 's',
28+
't': 'ʇ',
29+
'u': 'n',
30+
'v': 'ʌ',
31+
'w': 'ʍ',
32+
'x': 'x',
33+
'y': 'ʎ',
34+
'z': 'z',
35+
'?': '¿',
36+
'.': '˙',
37+
'/': '\\',
38+
'\\': '/',
39+
'(': ')',
40+
')': '(',
41+
'<': '>',
42+
'>': '<',
43+
'[': ']',
44+
']': '[',
45+
'{': '}',
46+
'}': '{',
47+
'\'': ',',
48+
'_': '‾'}
49+
50+
flippers = ["( ノ⊙︵⊙)ノ", "(╯°□°)╯", "( ノ♉︵♉ )ノ"]
51+
52+
@hook.command
53+
def flip(text, message, reply):
54+
"""<text> -- Flips <text> over."""
55+
if USE_FLIPPERS:
56+
message(random.choice(flippers) + " ︵ " + formatting.multi_replace(text[::-1], replacements))
57+
else:
58+
reply(formatting.multi_replace(text[::-1], replacements))
59+
60+
61+
@hook.command
62+
def table(text, message):
63+
"""<text> -- (╯°□°)╯︵ <ʇxǝʇ>"""
64+
message(random.choice(flippers) + " ︵ " + formatting.multi_replace(text[::-1], replacements))
65+
66+

0 commit comments

Comments
 (0)