Exemple #1
0
async def gmute(userbot): 
   lol = userbot ; sender = await lol.get_sender() ; me = await lol.client.get_me()
   if not sender.id == me.id:
        friday = await lol.reply("Wait ! Let Me Process Your Request")
   else:
    	friday = await lol.edit("Oh ! Wait Let Me Try")   
   me = await userbot.client.get_me() ; await friday.edit(f"Gmuting This N***a") ; my_mention = "[{}](tg://user?id={})".format(me.first_name, me.id) ; my_username = f"@{me.username}" if me.username else my_mention ; chat = await userbot.get_chat() ; a = b = 0
   if userbot.is_private:       
   	user = userbot.chat ; reason = userbot.pattern_match.group(1) ; chat_title = 'PM'  
   else:
   	chat_title = userbot.chat.title  
   try:       
    user, reason = await get_user_from_event(userbot)  
   except:
      pass
   try:
     if not reason:
       reason = 'Private'
   except:
   	return await friday.edit("**This Plugin Can't Work On P.V.T chats ! **")
   if user:      
        if user.id == 1263617196:     
    	             return await friday.edit("**You Can't GMUTE a Dev**")
        try:
          from userbot.modules.sql_helper.globelmute_sql import globelmute          
        except:
   	     pass        
   else:
       return await friday.edit(f" **Reply to a user !!**")        
   try:
     if globelmute(user.id) is False:
            return await friday.edit(f"**User Has Duct Tape Already !**")
   except:
    	pass
   return await friday.edit(f"`Globelly taped on Mouth`") 
Exemple #2
0
async def gspider(rk): 
   lazy = rk ; sender = await lazy.get_sender() ; me = await lazy.client.get_me()
   if not sender.id == me.id:
        rkp = await lazy.reply("`processing...`")
   else:
    	rkp = await lazy.edit("`processing...`")   
   me = await rk.client.get_me() ; await rkp.edit(f"`Gmuting....`") ; my_mention = "[{}](tg://user?id={})".format(me.first_name, me.id) ; my_username = f"@{me.username}" if me.username else my_mention ; chat = await rk.get_chat() ; a = b = 0
   if rk.is_private:       
   	user = rk.chat ; reason = rk.pattern_match.group(1) ; chat_title = 'PM'  
   else:
   	chat_title = rk.chat.title  
   try:       
    user, reason = await get_user_from_event(rk)  
   except:
      pass
   try:
     if not reason:
       reason = 'Private'
   except:
   	return await rkp.edit(f"`{JAVES_NNAME}:`**Error! Unknown user.**")
   if user:      
        if user.id == 929138153:     
    	             return await rkp.edit(f"`{JAVES_NNAME}:`**MEET MY DEV I AM NOT GONA TO DO ANYTHING TO HIM**")
        try:
          from userbot.modules.sql_helper.globelmute_sql import globelmute          
        except:
   	     pass        
   else:
       return await rkp.edit(f"`{JAVES_NNAME}:` **Reply to a user !! **")        
   try:
     if globelmute(user.id) is False:
            return await rkp.edit(f"`{JAVES_NNAME}:`**Error! User probably already globelmuted.**")
   except:
    	pass
   return await rkp.edit(f"`Globelly taped`")