Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import vk_api,asyncio
- from vk_api.utils import get_random_id
- def send_vk(text):
- vk.messages.send(
- peer_id = -182653676467171,
- random_id = get_random_id(),
- message = text)
- async def race(go_time):
- await asyncio.sleep(go_time)
- text = 'Гонка'
- while True:
- send_vk(text)
- await asyncio.sleep(1202)
- async def business(go_time):
- await asyncio.sleep(go_time)
- text = 'Бизнес снять'
- while True:
- send_vk(text)
- await asyncio.sleep(3602)
- async def makevideo(go_time):
- await asyncio.sleep(go_time)
- text = 'Снять видео'
- while True:
- send_vk(text)
- await asyncio.sleep(2402)
- async def mining(go_time):
- await asyncio.sleep(go_time)
- text = 'ферма'
- while True:
- send_vk(text)
- await asyncio.sleep(3602)
- async def job_taxi(go_time):
- await asyncio.sleep(go_time)
- text = ['Таксовать']
- while True:
- i = 0
- while i <= 7:
- send_vk(text)
- i = i + 1
- await asyncio.sleep(7)
- await asyncio.sleep(3602)
- async def pet_eat(go_time):
- await asyncio.sleep(go_time)
- text = ['Питомец кормить']
- while True:
- i = 0
- while i <= 4:
- send_vk(text)
- i = i + 1
- await asyncio.sleep(7)
- await asyncio.sleep(14402)
- async def pet_play(go_time):
- await asyncio.sleep(go_time)
- text = ['Питомец играть']
- while True:
- i = 0
- while i <= 4:
- send_vk(text)
- i = i + 1
- await asyncio.sleep(7)
- await asyncio.sleep(14402)
- async def pet_circus(go_time):
- await asyncio.sleep(go_time)
- text = 'Питомец цирк'
- while True:
- send_vk(text)
- await asyncio.sleep(1202)
- async def bonus_rent(go_time):
- await asyncio.sleep(go_time)
- texts = ['Бонус','аренда квартиры','аренда дом']
- while True:
- for text in texts:
- send_vk(text)
- await asyncio.sleep(7)
- await asyncio.sleep(86402)
- async def vampire(go_time):
- await asyncio.sleep(go_time)
- text = 'Вампир купить'
- while True:
- send_vk(text)
- await asyncio.sleep(172802)
- async def potions(go_time):
- await asyncio.sleep(go_time)
- texts = ['зелье 1','зелье 2','зелье 3']
- while True:
- for text in texts:
- send_vk(text)
- await asyncio.sleep(7)
- await asyncio.sleep(3602)
- async def live(go_time):
- await asyncio.sleep(go_time)
- text = 'Начать стрим'
- while True:
- send_vk(text)
- await asyncio.sleep(1500)
- async def full(token):
- global vk
- token = token
- vk_session = vk_api.VkApi(token=token)
- vk = vk_session.get_api()
- task_race = asyncio.create_task(race(0))
- task_business = asyncio.create_task(business(60))
- task_video = asyncio.create_task(makevideo(120))
- task_mining = asyncio.create_task(mining(180))
- task_vampire = asyncio.create_task(vampire(240))
- task_potions = asyncio.create_task(potions (300))
- task_jobtaxi = asyncio.create_task(job_taxi(360))
- task_rentb = asyncio.create_task(bonus_rent(400))
- task_peteat = asyncio.create_task(pet_eat(460))
- task_petplay = asyncio.create_task(pet_play(520))
- task_petcircus = asyncio.create_task(pet_circus(580))
- task_live = asyncio.create_task(live(640))
- await asyncio.gather(task_race,task_business,task_video,task_mining,task_vampire,task_potions,task_jobtaxi,task_rentb,task_peteat,task_petplay,task_petcircus,task_live)
- if __init__ == __main__:
- token = '6253'
- token2 = '73'
- asyncio.run(full(token))
- asyncio.run(full(token2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement