Skip to content

Commit edc3e45

Browse files
Mayor joyYamin Karnu
andauthored
Add RandomEmoji Plugin (#235)
* Add files via upload * Update requirements.txt Co-authored-by: Yamin Karnu <76117511+SantaYamin@users.noreply.github.com>
1 parent 5c07e61 commit edc3e45

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

plugins/randomemoji.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""
2+
GET random emoji in Image Format.
3+
Usage - .randomemoji.
4+
"""
5+
6+
# By - SantaYamin aka Nikola.N
7+
8+
import os
9+
10+
from multiutility import EmojiCreator
11+
from userge import Message, userge
12+
13+
Emoji = EmojiCreator()
14+
15+
16+
@userge.on_cmd(
17+
"randomemoji",
18+
about={"header": "Get a Random Emoji in Image Format", "usage": "{tr}randomemoji"},
19+
)
20+
async def app(message: Message):
21+
msg_ = await message.edit("Generating RaNDOmEMoJi for YoU...")
22+
emoji = Emoji.get_random()
23+
await msg_.reply_photo(emoji, caption="**---- Random Emoji ----**", quote=False)
24+
os.remove(emoji)
25+
await msg_.delete()

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ gtts
1212
humanize
1313
justwatch
1414
lottie
15+
multiutility
1516
newspaper3k
1617
psutil
1718
pydub

0 commit comments

Comments
 (0)