From 65da0d345c3e968eecae8ea447facaa73d916441 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 21 Aug 2012 08:07:12 +1200 Subject: [PATCH] Removed flip plugin. --- plugins/flip.py | 66 ------------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100755 plugins/flip.py diff --git a/plugins/flip.py b/plugins/flip.py deleted file mode 100755 index 2163321..0000000 --- a/plugins/flip.py +++ /dev/null @@ -1,66 +0,0 @@ -from util import hook -import random - - -@hook.command -def flip(inp, flip_count=0, say=None): - "flip -- Flips over." - guy = unicode(random.choice(flips), 'utf8') - inp = inp.lower() - inp = inp[::-1] - reps = 0 - for n in xrange(len(inp)): - rep = character_replacements.get(inp[n]) - if rep: - inp = inp[:n] + rep.decode('utf8') + inp[n + 1:] - reps += 1 - if reps == flip_count: - break - say(guy + u" ︵ " + inp) - -flips = ["(屮ಠ︵ಠ)屮", - "( ノ♉︵♉ )ノ", - "(╯°□°)╯", - "( ノ⊙︵⊙)ノ"] - -character_replacements = { - 'a': 'ɐ', - 'b': 'q', - 'c': 'ɔ', - 'd': 'p', - 'e': 'ǝ', - 'f': 'ɟ', - 'g': 'b', - 'h': 'ɥ', - 'i': 'ı', - 'j': 'ظ', - 'k': 'ʞ', - 'l': 'ן', - 'm': 'ɯ', - 'n': 'u', - 'o': 'o', - 'p': 'd', - 'q': 'b', - 'r': 'ɹ', - 's': 's', - 't': 'ʇ', - 'u': 'n', - 'v': 'ʌ', - 'w': 'ʍ', - 'x': 'x', - 'y': 'ʎ', - 'z': 'z', - '?': '¿', - '.': '˙', - '/': '\\', - '\\': '/', - '(': ')', - ')': '(', - '<': '>', - '>': '<', - '[': ']', - ']': '[', - '{': '}', - '}': '{', - '\'': ',', - '_': '‾'}