-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ gtts | |
humanize | ||
justwatch | ||
lottie | ||
multiutility | ||
newspaper3k | ||
psutil | ||
pydub | ||
|