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))