summaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2024-09-20 16:31:32 +0200
committerGeorg Pfuetzenreuter2024-09-20 16:31:32 +0200
commitf462bb1798a2d21300207bcfb283b2a9c7e949d3 (patch)
tree9de256010f423793e50ece8db08efb44e0add755 /plugin.py
parent4c72735bfe8e781ceb0923dfe1436b75e1ffe52a (diff)
downloadunicodeemoji-f462bb1798a2d21300207bcfb283b2a9c7e949d3.tar.gz
unicodeemoji-f462bb1798a2d21300207bcfb283b2a9c7e949d3.tar.bz2
unicodeemoji-f462bb1798a2d21300207bcfb283b2a9c7e949d3.zip
Implement list
Allow users to query all the available emotes using the new special emote reference "list". Replace the legacy GitHub link with a reference to this command. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'plugin.py')
-rw-r--r--plugin.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin.py b/plugin.py
index 18dfb82..13a8841 100644
--- a/plugin.py
+++ b/plugin.py
@@ -157,9 +157,13 @@ class UnicodeEmoji(callbacks.Plugin):
def e(self, irc, msg, args, emote):
"""<emote>
- Prints the Unicode emoji as listed here https://gist.github.com/mogad0n/476c3880dc0e0a059ed03efa265e50f7
+ Prints the Unicode emoji as listed with `!e list`
"""
+ if emote == 'list':
+ irc.reply(', '.join(emoji.keys()), msg=msg, prefixNick=False)
+ return
+
re = emoji.get(emote.lower())
if re is None:
re = emoji['fuck-off']