diff --git a/src/honeybot/plugins/downloaded/emoji/__init__.py b/src/honeybot/plugins/downloaded/emoji/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/honeybot/plugins/downloaded/emoji/info.py b/src/honeybot/plugins/downloaded/emoji/info.py new file mode 100644 index 0000000..9a9fc21 --- /dev/null +++ b/src/honeybot/plugins/downloaded/emoji/info.py @@ -0,0 +1,12 @@ +NAME = "emoji.py" + +ORIGINAL_AUTHORS = ["Fumbani Banda"] + +ABOUT = """ +Given an emoji it returns meaning. +""" + +COMMANDS = """ +>>> .emoji <> +returns emoji meaning. +""" diff --git a/src/honeybot/plugins/downloaded/emoji/main.py b/src/honeybot/plugins/downloaded/emoji/main.py new file mode 100644 index 0000000..c6b3317 --- /dev/null +++ b/src/honeybot/plugins/downloaded/emoji/main.py @@ -0,0 +1,56 @@ +class Plugin: + def __init__(self): + pass + + def __meaning(emoji): + d = { + "😀": "Grinning Face", + "😃": "Grinning Face with Big Eyes", + "😄": "Grinning Face with Smiling Eyes", + "😁": "Beaming Face with Smiling Eyes", + "😆": "Grinning Face with Sweat", + "ðŸĪĢ": "Rolling on the Floor Laughing", + "😂": "Face with Tears of Joy", + "🙂": "Slightly Smiling Face", + "🙃": "Upside-Down Face", + "😉": "Winking Face", + "😊": "Smiling Face with Smiling Eyes", + "😇": "Smiling Face with Halo", + "ðŸĨ°": "Smiling Face with Hearts", + "😍": "Smiling Face with Heart-Eyes", + "ðŸĪĐ": "Star-Struck", + "😘": "Face Blowing a Kiss", + "😗": "Kissing Face", + "😉": "Winking Face", + "😊": "Smiling Face with Smiling Eyes", + "😇": "Smiling Face with Halo", + "ðŸĨ°": "Smiling Face with Hearts", + "😍": "Smiling Face with Heart-Eyes", + "ðŸĪĐ": "Star-Struck", + "😘": "Face Blowing a Kiss", + "😗": "Kissing Face", + "😚": "Kissing Face with Closed Eyes", + "😙": "Kissing Face with Smiling Eyes", + "😋": "Face Savoring Food", + "😛": "Face with Tongue", + "😜": "Winking Face with Tongue", + "ðŸĪŠ": "Zany Face", + "😝": "Squinting Face with Tongue", + "ðŸĪ‘": "Money-Mouth Face", + "ðŸĪ—": "Smiling Face with Open Hands", + "ðŸĪ­": "Face with Hand Over Mouth", + } + if emoji in d.keys(): + return d[emoji] + else: + return "not supported" + + def run(self, incoming, methods, info, bot_info): + try: + msgs = info["args"][1:][0].split() + print(len(msgs)) + if info["command"] == "PRIVMSG" and msgs[0] == ".emoji": + emoji = str(msgs[1]) + methods["send"](info["address"], Plugin.__meaning(emoji)) + except Exception as e: + print("woops plugin error ", e)