fulvia/modules/emojis.py

20 lines
331 B
Python
Raw Permalink Normal View History

2018-06-30 17:07:32 -04:00
#!/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))