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