-
Notifications
You must be signed in to change notification settings - Fork 0
/
crashbot.py
66 lines (47 loc) · 1.96 KB
/
crashbot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import asyncio
import telegram
from telegram.constants import ParseMode
import random
TOKEN = "6046660801:AAH4SrcmWMc698s9UPuTBjIYkBkB8rH35mA"
chat_id = "-1001803295485"
GREEN_WEIGHT = 9 # Weight of the "GREEN" message (out of 10)
RED_WEIGHT = 1 # Weight of the "RED" message (out of 10)
async def send_message():
bot = telegram.Bot(TOKEN)
entry_point = round(random.uniform(1.00, 5.00), 2)
message = """
🚨 <b>Analisando Possivel Entrada</b> 🚨
✋ <b>Aguarde Confirmação...</b> ✋
🚀 <b>Saindo maior que 1.5x fazer a entrada que será confirmada.</b>
<a href='https://shre.ink/VIPJack'>Cadastre e Entre Agora !!!</a>
"""
msg = await bot.send_message(chat_id=chat_id, text=message, parse_mode=ParseMode.HTML)
await asyncio.sleep(35)
await bot.delete_message(chat_id=chat_id, message_id=msg.message_id)
# Weighted random selection of "GREEN" or "RED" message
message_type = random.choices(["GREEN", "RED"], [GREEN_WEIGHT, RED_WEIGHT])[0]
if message_type == "GREEN":
message = f"""
🚨 OPORTUNIDADE CONFIRMADA 🚨
🔄 <b>Saida:</b> até {entry_point}x
<a href='https://shre.ink/VIPJack'>Cadastre e Entre Agora !!!</a>
"""
await bot.send_message(chat_id=chat_id, text=message, parse_mode=ParseMode.HTML)
await asyncio.sleep(20)
message = f"✅✅✅ GREEN {entry_point} ✅✅✅"
else:
message = f"""
🚨 OPORTUNIDADE PERDIDA 🚨
🔄 <b>Saida:</b> até {entry_point}x
<a href='https://shre.ink/VIPJack'>Cadastre e Entre Agora !!!</a>
"""
await bot.send_message(chat_id=chat_id, text=message, parse_mode=ParseMode.HTML)
await asyncio.sleep(20)
message = f"❌❌❌ RED {entry_point} ❌❌❌"
await bot.send_message(chat_id=chat_id, text=message, parse_mode=ParseMode.HTML)
async def main():
while True:
await asyncio.ensure_future(send_message())
await asyncio.sleep(40)
if __name__ == "__main__":
asyncio.run(main())