Skip to content

Commit

Permalink
Add RandomEmoji Plugin (#235)
Browse files Browse the repository at this point in the history
* Add files via upload

* Update requirements.txt

Co-authored-by: Yamin Karnu <[email protected]>
  • Loading branch information
Mayor joy and Yamin Karnu authored Feb 28, 2022
1 parent 5c07e61 commit edc3e45
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions plugins/randomemoji.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""
GET random emoji in Image Format.
Usage - .randomemoji.
"""

# By - SantaYamin aka Nikola.N

import os

from multiutility import EmojiCreator
from userge import Message, userge

Emoji = EmojiCreator()


@userge.on_cmd(
"randomemoji",
about={"header": "Get a Random Emoji in Image Format", "usage": "{tr}randomemoji"},
)
async def app(message: Message):
msg_ = await message.edit("Generating RaNDOmEMoJi for YoU...")
emoji = Emoji.get_random()
await msg_.reply_photo(emoji, caption="**---- Random Emoji ----**", quote=False)
os.remove(emoji)
await msg_.delete()
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ gtts
humanize
justwatch
lottie
multiutility
newspaper3k
psutil
pydub
Expand Down

0 comments on commit edc3e45

Please sign in to comment.