diff options
| author | Pratyush Desai | 2024-09-20 18:25:26 +0200 |
|---|---|---|
| committer | Pratyush Desai | 2024-09-20 18:25:26 +0200 |
| commit | 743cbbc124a5d06825178a38b9b35fb3fe628a5e (patch) | |
| tree | 4707982b1c26f94593eb1fa9f7015541d33753ca | |
| parent | b6a02bef56188875efa223bca9a0685fe95d5eb8 (diff) | |
| parent | 8f7515fb30dec8c0ea6265fe2af18fa10881acb1 (diff) | |
| download | unicodeemoji-master.tar.gz unicodeemoji-master.tar.bz2 unicodeemoji-master.zip | |
Merge pull request 'Handle duplicates' (#8) from Georg/UnicodeEmoji:duplicates into masterHEADmaster
Reviewed-on: https://git.com.de/LimnoriaPlugins/UnicodeEmoji/pulls/8
| -rw-r--r-- | plugin.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -28,6 +28,7 @@ ### +from random import choice from supybot import utils, plugins, ircutils, callbacks from supybot.commands import * try: @@ -101,7 +102,10 @@ emoji = {'innocent':'ʘ‿ʘ', 'shy':'(๑•́ ₃ •̀๑)', 'fly-away':'⁽⁽ଘ( ˊᵕˋ )ଓ⁾⁾', 'careless':'◔_◔', - 'love':'♥‿♥', + 'love': [ + '♥‿♥', + '-`ღ´-', + ], 'ididit':'ԅ(≖‿≖ԅ)', 'kissing':'( ˘ ³˘)♥', 'shark-face':'( ˇ෴ˇ )', @@ -140,7 +144,6 @@ emoji = {'innocent':'ʘ‿ʘ', 'fuck-off':'(° ͜ʖ͡°)╭∩╮', 'smiley-toast':'ʕʘ̅͜ʘ̅ʔ', 'exorcism':'ح(•̀ж•́)ง †', - 'love':'-`ღ´-', 'taking-a-dump':'(⩾﹏⩽)', 'dab':'ヽ( •_)ᕗ', 'wave-dance':'~(^-^)~', @@ -167,6 +170,8 @@ class UnicodeEmoji(callbacks.Plugin): re = emoji.get(emote.lower()) if re is None: re = emoji['fuck-off'] + elif isinstance(re, list): + re = choice(re) irc.reply('%s' % re, msg=msg, prefixNick=False ) e = wrap(e, ['text']) |
