diff --git a/README.md b/README.md index 9f533dd..81d0d04 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ ### **[Claim Now!](https://aviyel.com/projects/84/pyhoneybot/rewards)**
-ðŸ‡ē🇚 🇚ðŸ‡ļ ðŸ‡ĻðŸ‡Ķ ðŸ‡Ķ🇷 ðŸ‡ŪðŸ‡ģ 🇎🇧 🇎🇎 🇧🇷 ðŸ‡ļðŸ‡― ðŸ‡ĩðŸ‡ą ðŸ‡Đ🇊 +ðŸ‡ē🇚 🇚ðŸ‡ļ ðŸ‡ĻðŸ‡Ķ ðŸ‡Ķ🇷 ðŸ‡ŪðŸ‡ģ 🇎🇧 🇎🇎 🇧🇷 ðŸ‡ļðŸ‡― ðŸ‡ĩðŸ‡ą ðŸ‡Đ🇊 ðŸ‡ē🇞
@@ -109,10 +109,11 @@ GUI clients are used to manage plugins, launch bot as well as specify credential | :page_with_curl: comic | Returns a random comic | [@mboekhold](https://github.com/mboekhold) | | 📝 todo | Makes a to do list | [@h-ranjan1110](https://github.com/h-ranjan1110) | | ðŸŽą Magic 8 Ball | Answer questions using magic 8 ball | [@ZakariaTalhami](https://github.com/ZakariaTalhami) | -| 🎟 Random Excuse | Generates a random excuse for you. | [@rakeshseal0](https://github.com/rakeshseal0) -| ðŸĶ† DuckDuckGo Search | Search queries in duckduckgo and return abstract. | [@rakeshseal0](https://github.com/rakeshseal0) | -| 🖞 Random Image | Returns a random image url. | [@rakeshseal0](https://github.com/rakeshseal0) -| ðŸ›Ē URL Shortener | Shortens a url | [@rakeshseal0](https://github.com/rakeshseal0) +| 🎟 Random Excuse | Generates a random excuse for you. | [@rakeshseal0](https://github.com/rakeshseal0) | +| ðŸĶ† DuckDuckGo Search | Search queries in duckduckgo and return abstract. | [@rakeshseal0](https://github.com/rakeshseal0) | +| 🖞 Random Image | Returns a random image url. | [@rakeshseal0](https://github.com/rakeshseal0) | +| ðŸ›Ē URL Shortener | Shortens a url | [@rakeshseal0](https://github.com/rakeshseal0) | +| 😁 emoji | Returns emoji meaning | [@deadex-ng](https://github.com/deadex-ng) | ## ⚡ Quickstart diff --git a/src/honeybot/plugins/downloaded/emoji/main.py b/src/honeybot/plugins/downloaded/emoji/main.py index c6b3317..a6209bb 100644 --- a/src/honeybot/plugins/downloaded/emoji/main.py +++ b/src/honeybot/plugins/downloaded/emoji/main.py @@ -1,56 +1,16 @@ +import emoji + + 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)) + meaning = emoji.demojize(str(msgs[1])) + methods["send"](info["address"], meaning) except Exception as e: print("woops plugin error ", e) diff --git a/src/honeybot/plugins/downloaded/emoji/requirements.txt b/src/honeybot/plugins/downloaded/emoji/requirements.txt new file mode 100644 index 0000000..f8d6d82 --- /dev/null +++ b/src/honeybot/plugins/downloaded/emoji/requirements.txt @@ -0,0 +1 @@ +emoji \ No newline at end of file