From 7504a2d34225bc24cc452fde15e3264f4bef7157 Mon Sep 17 00:00:00 2001 From: iou1name Date: Sat, 30 Jun 2018 17:07:32 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=82=F0=9F=98=82=F0=9F=91=8C?= =?UTF-8?q?=F0=9F=91=8C=F0=9F=92=AF=F0=9F=92=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/emojis.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/emojis.py diff --git a/modules/emojis.py b/modules/emojis.py new file mode 100644 index 0000000..30eb9e8 --- /dev/null +++ b/modules/emojis.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +""" +EMOJI +""" +import random + +import emoji + +from module import commands + +@commands("emoji") +def rand_emoji(bot, trigger): + """ + Posts a random number of random emojis. + """ + msg = [] + for _ in range(random.randint(1, 100)): + msg.append(random.choice(list(emoji.UNICODE_EMOJI.keys()))) + bot.msg("".join(msg))