Untitled

mail@pastecode.io avatar
unknown
plain_text
22 days ago
3.5 kB
2
Indexable
Never



import requests


import json





link = "http://aminoapps.com/p/USER-OF-COMMUNITY" 


ammount = 500











from pymino import Client 











client = Client(


    device_key="E7309ECC0953C6FA60005B2765F99DBBC965C8E9",


    signature_key="DFA5ED192DDA6E88A12FE12130DC6206B1251E44"


)


client2 = Client(


    device_key="E7309ECC0953C6FA60005B2765F99DBBC965C8E9",


    signature_key="DFA5ED192DDA6E88A12FE12130DC6206B1251E44"


)








id=client.fetch_object_info("http://aminoapps.com/p/xul5hw3")





client2.login(secret="31 VhKVHeZo bc108cca-c755-4ccd-8308-5f56ae3772bc 61.0.100.129 c1c30a822cf86951fbcee26e18b4dfe623046d2c 1 1693740418 pyU7hYA6zK77W_lNHR99yVP42yg",use_cache=False)


client.login(email="unordinaryagent@gmail.com", password="sagar890@",use_cache=True)

client.set_community_id(id.comId)


client2.set_community_id(id.comId)


# ff=client.community.fetch_leaderboard(size=20,comId=id.comId)._data


# print(ff)


userlist=[]





def give(input_value):


    minutes= input_value//60


    return minutes // 60





def leaderboard():


    for i in range(4):


        start = i * 25


        size = (i + 1) * 25


        leaderboard_info = client.community.fetch_leaderboard(start=start,size=size,leaderboardType=1)._data


        for doc in leaderboard_info:


           


            if doc["activeTime"] <3300:


                return


            else:


                userlist.append({"name":doc["nickname"],"uid":doc["uid"],"how":give(doc["activeTime"])})


leaderboard()


print(userlist)





def save_text(text,name):


  headers = {


      'accept': 'application/json',


      'content-type': 'application/x-www-form-urlencoded',


  }





  params = {


      'Name': name,


      'Text': text,


  }





  res=requests.post('https://amaterasu.run-ap-south1.goorm.io/paste_text', data=params, headers=headers)


  print(res.status_code)


  print(res.json())


  return res.json()["url"]





mess=""





for users in userlist:


    print(users['name'])


    if users["uid"] !="109af7dc-6f05-480a-a2ac-ce32fbd136ce":


        total_coins = users["how"]*200


        print(total_coins)


        min_send = 100


        max_send = 400

        nick=users['name']

        message=f'sent {users["how"]*200}\Active time: {users["how"]*60}'

        while total_coins > 0 and users["how"] !=0:


            sending_coins = min(total_coins, max_send)


                


            sending_coins = min_send * (sending_coins // min_send)


            print(sending_coins)


            client.community.add_influencer(users["uid"], sending_coins)


                


            client2.community.subscribe_influencer(users["uid"])


            


            total_coins -= sending_coins


            client.community.remove_influencer(users["uid"])


            print(f"\033[97;44mENVIADO {sending_coins} coins.\033[0m")

            

            





        mess +=f"\n\nName: {users['name']}\nTotal coins: {total_coins}"

        client.community.send_message(com_id=id.comId,chat_id=id.objectId,content=f"‎‏@{nick} ‌‬‭ {message}",mentioned=[users["uid"]])

        # wiki=client.community.fetch_user_wikis(userId=users["uid"],size=1).wikiId


        # if len(wiki) !=0:


        #     logg(wiki[0],users["how"])


        #     mess +=f"\n\nName: {users['name']}\nTotal coins: {users['how']*200}"


        # else:


        #     mess +=f"\n\nName: {users['name']}\nTotal coins: Wiki no found"





print(save_text(mess,"coins report"))
Leave a Comment