Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
3.9 kB
5
Indexable
Never
import amino

from os import _exit as quit
from time import sleep
from random import choice
from colored import fore, style, attr
from pyfiglet import Figlet

attr(0)
banner = Figlet(font='big')
print(fore.MEDIUM_SPRING_GREEN, style.BLINK + "Created by Neuravnoveshen[X]", banner.renderText('''Kick
     [X]Profens'''))

client = amino.Client()
email = input("Email :  ")
password = input("Password :  ")
client.login(email=email, password=password)
time_waitings = int(input("How many times waitings :  "))

pack_root = ["0", "1"] #For allowRejoin

ndc_list = client.sub_clients(size=100)
for num_ndc, name in enumerate(ndc_list.name, 1):
     print(f"[{num_ndc}].[{name}]")
ndc_id = ndc_list.comId[int(input("Choose community :  ")) -1]
sub_client = amino.SubClient(comId=ndc_id, profile=client.profile)

timeway_just = int(input('''
1.Auto kick 
2.Kick co-host [for host -need roots][link]
3.Mass kick

choose function :  '''))
if timeway_just == 1:
    threads_ndc = sub_client.get_chat_threads(size=100)
    for chat_num, title in enumerate(threads_ndc.title, 1):
        print(f"[{chat_num}].[{title}]")
    thread_id = threads_ndc.chatId[int(input("Choose thread :  ")) -1]
    
    chase_users = int(input("How many showed users :  "))
     
    chat_users = sub_client.get_chat_users(chatId=thread_id, size=chase_users)
    for num_user, nickname in enumerate(chat_users.nickname, 1):
         print(f"[{num_user}].[{nickname}]")
    user_id = chat_users.userId[int(input("Choose user :  ")) -1]
     
    while True:
         try:
             just_question = int(input('''
1.Kick do not forever
2.Kick forever

choise type :  '''))
             if just_question == 1:
                 sub_client.kick(chatId=thread_id, userId=user_id, allowRejoin=0)
                 print(f"Removed :  [{user_id}]")
             
             elif just_question == 2:
                 sub_client.kick(chatId=thread_id, userId=user_id, allowRejoin=1)
                 print(f"Deleted :  [{user_id}]")
         except Exception as NotUsersRemoved:
                   print(NotUsersRemoved)
                   pass
         
         else:
                print(f"Feature :  [{just_question}] dont finded")
                quit()
 
elif timeway_just == 2:
       chat_list = sub_client.get_chat_threads(size=100)
       for chat_nums, title in enumerate(chat_list.title, 1):
          print(f"[{chat_nums}].[{title}]")
       chat_id = chat_list.chatId[int(input("Choose thread :  ")) -1]
       
       while True:
          thread_info = client.get_from_code(input("Paste host or co host link :  "))
          user_ld = thread_info.objectId
          try:
              sleep(time_waitings)
              sub_client.kick(chatId=chat_id, userId=user_ld, allowRejoin=choice(pack_root))
              print(f"Delete :  [{user_ld}]")
          except Exception as NotUsersDeleted:
                print(NotUsersDeleted)
                pass

elif timeway_just == 3:
        chativ_list = sub_client.get_chat_threads(size=100)
        for chat_numx, title in enumerate(chativ_list.title, 1):
             print(f"[{chat_numx}].[{title}]")
        cnd_id = chativ_list.chatId[int(input("Choose thread :  "))]
        
        mass_removed = int(input("How many users removed :  "))
        
        users_removes = sub_client.get_chat_users(chatId=cnd_id, size=mass_removed)
        for name_user, user_stats, remove_id in zip(users_removes.nickname, users_removes.level, users_removes.userId):
            try:
                sub_client.kick(chatId=cnd_id, userId=remove_id, allowRejoin=choice(pack_root))
                print(f"\nremove :  [{name_user}] \ninfo stats :  [{user_stats}] \ninfo id :  [{remove_id}]")
            except Exception as MassRemError:
                   print(MassRemError)
                   pass
                         
else:
    print(f"Features : [{timeway_just}] do not finded!")
    quit(2)