Merge commit '3eaef5dc90b716cc0fa391cbe2394be56d5f6041' as 'userbot'
Deploy to Server / deploy (push) Has been cancelled
Deploy to Server / deploy (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
import random
|
||||
|
||||
from pyrogram import Client, enums, filters
|
||||
from pyrogram.types import Message
|
||||
from utils.misc import modules_help, prefix
|
||||
from utils.scripts import format_exc
|
||||
|
||||
emojis = [
|
||||
'👍',
|
||||
'👎',
|
||||
'❤️',
|
||||
'🔥',
|
||||
'🥰',
|
||||
'👏',
|
||||
'😁',
|
||||
'🤔',
|
||||
'🤯',
|
||||
'😱',
|
||||
'🤬',
|
||||
'😢',
|
||||
'🎉',
|
||||
'🤩',
|
||||
'🤮',
|
||||
'💩',
|
||||
]
|
||||
|
||||
|
||||
@Client.on_message(filters.command('reactspam', prefix) & filters.me)
|
||||
async def reactspam(client: Client, message: Message):
|
||||
await message.edit('<b>One moment...</b>', parse_mode=enums.ParseMode.HTML)
|
||||
try:
|
||||
selected_emojis = random.sample(emojis, 3)
|
||||
print(selected_emojis)
|
||||
await client.send_reaction(
|
||||
message.chat.id,
|
||||
message_id=message.reply_to_message.id,
|
||||
emoji=selected_emojis,
|
||||
)
|
||||
await message.delete()
|
||||
except Exception as e:
|
||||
return await message.edit_text(format_exc(e))
|
||||
|
||||
|
||||
modules_help['reactionspam'] = {'reactspam [amount]* [emoji]*': 'spam reactions'}
|
||||
Reference in New Issue
Block a user