Exemple #1
0
def shout(message):
    textx = message.reply_to_message
    shout = extract_args(message)
    if len(shout) > 0:
        pass
    elif textx:
        shout = textx.text
    else:
        edit(message, '`Yazı nerede!`')
        return

    if message.forward_from:
        return
    else:
        msg = "```"
        messagestr = message.text
        messagestr = messagestr[7:]
        text = "".join(messagestr)
        result = []
        result.append(' '.join([s for s in text]))
        for pos, symbol in enumerate(text[1:]):
            result.append(symbol + ' ' + '  ' * pos + symbol)
        result = list("\n".join(result))
        result[0] = text[0]
        result = "".join(result)
        msg = "\n" + result
        edit(message, '`' + msg + '`')
Exemple #2
0
def copypasta(message):
    textx = message.reply_to_message
    copypasta = extract_args(message)

    if len(copypasta) > 0:
        pass
    elif textx:
        copypasta = textx.text
    else:
        edit(message, '`😂Bana💯BIR✌️mE🅱️In👐Ver👏`')
        return

    reply_text = choice(EMOJIS)
    b_char = choice(copypasta).lower()
    for owo in copypasta:
        if owo == " ":
            reply_text += choice(EMOJIS)
        elif owo in EMOJIS:
            reply_text += owo
            reply_text += choice(EMOJIS)
        elif owo.lower() == b_char:
            reply_text += "🅱️"
        else:
            if bool(getrandbits(1)):
                reply_text += owo.upper()
            else:
                reply_text += owo.lower()
    reply_text += choice(EMOJIS)
    edit(message, reply_text)
Exemple #3
0
def nasa(message):
    animation_interval = 1
    animation_ttl = range(0, 24)
    edit(message, 'Bağlanıyor..')
    animation_chars = [
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n🚀⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛🚀⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛🚀⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛🚀⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛🚀⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛🚀\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "🛸⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n🛸⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛🛸⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛🛸⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛🛸⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛🛸⬛⬛",
        "⬛⬛⬛🛸⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛🛸⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛🛸⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬜⬜⬜⬜⬜⬜",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛🛸⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬜⬜⬜⬜⬜⬜",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛🛸⬛⬛\n⬜⬜⬜⬜⬜⬜",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛🛸⬛🚶‍♂️\n⬜⬜⬜⬜⬜⬜",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛🛸🚶‍♂️⬛\n⬜⬜⬜⬜⬜⬜",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n👽⬛⬛🛸🚶‍♂️⬛\n⬜⬜⬜⬜⬜⬜",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛👽⬛🛸🚶‍♂️⬛\n⬜⬜⬜⬜⬜⬜",
        "⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛⬛⬛⬛⬛\n⬛⬛👽🛸🚶‍♂️⬛\n⬜⬜⬜⬜⬜⬜",
        "__Sinyal Kaybedildi....__"
    ]
    for i in animation_ttl:
        time.sleep(animation_interval)
        edit(message, animation_chars[i % 24])
Exemple #4
0
def carbonlang(message):
    global CARBONLANG
    CARBONLANG = extract_args(message)
    edit(
        message,
        f'`Karbon modülü için varsayılan dil` **{CARBONLANG}** `olarak ayarlandı.`'
    )
Exemple #5
0
def fuk(message):
    animation_interval = 0.1
    animation_ttl = range(0, 100)
    animation_chars = ["🍆       🍑️", "🍆     🍑️", "🍆  🍑️", "🍆🍑️💦"]
    for i in animation_ttl:
        time.sleep(animation_interval)
        edit(message, animation_chars[i % 4])
Exemple #6
0
def username(client, message):
    newusername = extract_args(message)
    try:
        client.send(functions.account.UpdateUsername(username=newusername))
        edit(message, USERNAME_SUCCESS)
    except UsernameOccupied:
        edit(message, USERNAME_TAKEN)
def covid(message):
    try:
        request = get('https://covid19.saglik.gov.tr/')
        result = BeautifulSoup(request.text, 'html.parser')
    except:
        edit(message, '`Bir hata oluÅŸtu.`')
        return
        
    def to_nums(a):
        return [sub('<span class=".*?">|</span>|\r|\n|\s|\.', '', str(s), flags=DOTALL) for s in a]

    res1 = result.body.findAll('ul', {'class':['list-group','list-group-genislik']})
    res2 = to_nums(res1[0].findAll('span', {'class':['']}))
    res3 = to_nums(res1[1].findAll('span', {'class':['buyuk-bilgi-l-sayi','']}))
    
    sonuclar = ("**🇹🇷 Koronavirüs Verileri 🇹🇷**\n" +
        "\n**Toplam**\n" + 
        f"**Test:** `{res2[0]}`\n" + 
        f"**Vaka:** `{res2[1]}`\n" +
        f"**Ölüm:** `{res2[2]}`\n" +
        f"**Y.Bakım:** `{res2[3]}`\n" +
        f"**Entübe:** `{res2[4]}`\n" +
        f"**Ä°yileÅŸen:** `{res2[5]}`\n" +
        f"\n**Bugün**\n" +
        f"**Test:** `{res3[0]}`\n" +
        f"**Vaka:** `{res3[1]}`\n" +
        f"**Ölüm:** `{res3[2]}`\n" +
        f"**Ä°yileÅŸen:** `{res3[3]}`")

    edit(message, sonuclar)
Exemple #8
0
def scam(client, message):
    options = [
        'typing', 'contact', 'game', 'location', 'voice', 'round', 'video',
        'photo', 'document', 'cancel'
    ]
    input_str = extract_args(message)
    args = input_str.split()
    if len(args) == 0:
        scam_action = choice(options)
        scam_time = randint(30, 60)
    elif len(args) == 1:
        try:
            scam_action = str(args[0]).lower()
            scam_time = randint(30, 60)
        except ValueError:
            scam_action = choice(options)
            scam_time = int(args[0])
    elif len(args) == 2:
        scam_action = str(args[0]).lower()
        scam_time = int(args[1])
    else:
        edit(message, '`Komut kullanımı hatalı.`')
        return
    try:
        if (scam_time > 0):
            message.delete()
            client.send_chat_action(message.chat.id, scam_action)
            time.sleep(scam_time)
    except BaseException:
        return
Exemple #9
0
def echo(message):
    args = extract_args(message)
    if len(args) > 0:
        message.delete()
        reply(message, args)
    else:
        edit(message, '`Argüman yazın`')
Exemple #10
0
def payf(message):
    paytext = extract_args(message)
    pay = "{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}".format(
        paytext * 8, paytext * 8, paytext * 2, paytext * 2, paytext * 2,
        paytext * 6, paytext * 6, paytext * 2, paytext * 2, paytext * 2,
        paytext * 2, paytext * 2)
    edit(message, pay)
def birakmamseni(message):
    url = 'https://birakmamseni.org/'
    path = 'api/counter'

    headers = {
        'User-Agent': 'ajax/7.66.0',
        'Accept': '*/*',
        'Accept-Encoding': 'gzip, deflate, br',
        'Access-Control-Allow-Origin': '*',
        'Content-Type': 'application/x-www-form-urlencoded',
        'Origin': '{}'.format(url),
        'X-Requested-With': 'XMLHttpRequest',
    }

    try:
        response = post(url=url + path, headers=headers)
        count = response.json()['counter'].lstrip('0')
    except:
        edit(message, '`Bir hata oluştu.`')
        return

    sonuc = ('**⚫⚪ Bırakmam Seni Kampanyası Verileri ⚫⚪**\n\n' +
             'Şu an itibarıyla **BIRAKMAM SENİ** kampanyası kapsamında ' +
             f'`{count}` 🖤🤍 adet destekte bulunuldu.\n' +
             f'\nHaydi sen de hemen **BÜYÜK BEŞİKTAŞ’IMIZA** 🦅 destek ol !\n' +
             f'\n[https://birakmamseni.org](https://birakmamseni.org/)\n' +
             f'`\n=============================\n`' +
             f'`SMS, Havale/Eft ve Posta Çeki kanalları ile gelen destekler periyodik olarak sayaca eklenmektedir.`\n' +
             f'`=============================`')

    edit(message, sonuc, preview=False)
Exemple #12
0
def pip3(message):
    pipmodule = extract_args(message)
    if len(pipmodule) > 0:
        edit(message, '`Aranıyor...`')
        pipsorgu = f"pip3 search {pipmodule}"
        from subprocess import PIPE, Popen
        islem = Popen(pipsorgu.split(),
                      stdout=PIPE,
                      stderr=PIPE,
                      universal_newlines=True)
        sonuc, _ = islem.communicate()

        if sonuc:
            if len(sonuc) > 4096:
                edit(message, '`Çıktı çok büyük, dosya olarak gönderiliyor.`')
                file = open('cikti.txt', 'w+')
                file.write(sonuc)
                file.close()
                reply_doc(message, 'cikti.txt')
                remove('cikti.txt')
                return
            edit(message, '**Sorgu: **\n`'
                 f'{pipsorgu}'
                 '`\n**Sonuç: **\n`'
                 f'{sonuc}'
                 '`',
                 fix_markdown=True)
        else:
            edit(
                message, '**Sorgu: **\n`'
                f'{pipsorgu}'
                '`\n**Sonuç: **\n`Bir şey bulunamadı.`')
    else:
        edit(message, '`Bir örnek görmek için .seden pip komutunu kullanın.`')
Exemple #13
0
def codename(message):
    textx = message.reply_to_message
    arr = extract_args(message)
    brand = arr
    device = arr
    if " " in arr:
        args = arr.split(' ', 1)
        brand = args[0].lower()
        device = args[1].lower()
    elif textx:
        brand = textx.text.split(' ')[0]
        device = ' '.join(textx.text.split(' ')[1:])
    else:
        edit(message, '`Kullanım: .codename <marka> <cihaz> Örnek: .codename Xiaomi Mi 9T Pro`')
        return
    data = json.loads(get('https://raw.githubusercontent.com/androidtrackers/'
                          'certified-android-devices/master/by_brand.json').text)
    devices_lower = {k.lower():v for k,v in data.items()}
    devices = devices_lower.get(brand)
    if not devices:
        reply = f'`{device} bulunamadı`\n'
    else:
        results = [i for i in devices if device.lower() in i["name"].lower() or device.lower() in i["model"].lower()]
        if results:
            reply = f'**{brand} {device} için arama sonuçları**:\n\n'
            if len(results) > 8:
                results = results[:8]
            for item in results:
                reply += f"**Kod Adı**: {item['device']}\n" \
                         f"**İsim**: {item['name']}\n" \
                         f"**Model**: {item['model']}\n\n"
        else:
            reply = f"`{device} bulunamadı`\n"
    edit(message, reply)
Exemple #14
0
def neofetch(message):
    try:
        from subprocess import PIPE, Popen
        islem = Popen(['neofetch', '--stdout'], stdout=PIPE, stderr=PIPE)
        sonuc, _ = islem.communicate()
        edit(message, sonuc.decode(), parse=None)
    except:
        edit(message, '`Lütfen neofetch yükleyin.`')
Exemple #15
0
def alives(message):
    alives = extract_args(message)
    sonuc = '`Kullanım: .alives <alive mesajı>`'
    if len(alives) > 0:
        global KULLANICIMESAJI
        KULLANICIMESAJI = alives
        sonuc = f'Alive mesajı, {KULLANICIMESAJI} olarak ayarlandı!'
    edit(message, '`' f'{sonuc}' '`')
def random(message):
    items = extract_args(message, False)
    args = items.split()
    if len(args) < 2:
        edit(message, '`2 veya daha fazla seçenek gerekli.`')
        return

    edit(message, f'**Sorgu:**\n`{items}`\n**Çıktı:**\n`{choice(args)}`')
Exemple #17
0
def alive(message):
    if KULLANICIMESAJI.lower() == 'ecem':
        ecem(message)
        return
    elif KULLANICIMESAJI.lower() == 'saniye':
        saniye(message)
        return
    edit(message, f'`{KULLANICIMESAJI}`')
Exemple #18
0
def restart(client, message):
    edit(message, '`Yeniden başlatılıyor ...`')
    send_log('#RESTART\n' 'Bot yeniden başlatıldı.')
    try:
        client.terminate()
        client.disconnect()
    except:
        pass
    execl(executable, executable, *argv)
Exemple #19
0
def moon(message):
    deq = deque(list("🌗🌘🌑🌒🌓🌔🌕🌖"))
    try:
        for x in range(32):
            time.sleep(0.1)
            edit(message, ''.join(deq))
            deq.rotate(1)
    except BaseException:
        return
Exemple #20
0
def restart(client, message):
    edit(message, '`Ben kapanıyorum, görüşürüz ...`')
    send_log('#SHUTDOWN \n' 'Bot kapatıldı.')
    try:
        client.terminate()
        client.disconnect()
    except:
        pass
    execl(executable, 'killall', executable)
Exemple #21
0
def clock(message):
    deq = deque(list('🕙🕘🕗🕖🕕🕔🕓🕒🕑🕐🕛'))
    try:
        for x in range(32):
            time.sleep(0.1)
            edit(message, ''.join(deq))
            deq.rotate(1)
    except BaseException:
        return
def founder(message):
    edit(
        message, '`=======================================`\n\n'
        '`Bu bot;`\n'
        '[NaytSeyd](https://t.me/NightShade) `ve` [frknkrc44](https://t.me/KaldirimMuhendisi) `tarafından geliştirilmektedir.`\n'
        '`Ek olarak`\n'
        '[Sedenogen](https://t.me/CiyanogenOneTeams) `tarafından sevgi ile düzenlenmiştir.`\n\n'
        '`=======================================`',
        preview=False)
Exemple #23
0
def hava(message):
    deq = deque(list('☀️🌤⛅️🌥☁️🌦🌧🌩🌨❄️'))
    try:
        for x in range(32):
            time.sleep(0.1)
            edit(message, ''.join(deq))
            deq.rotate(1)
    except BaseException:
        return
Exemple #24
0
def dunya(message):
    deq = deque(list('🌏🌍🌎🌎🌍🌏🌍🌎'))
    try:
        for x in range(32):
            time.sleep(0.1)
            edit(message, ''.join(deq))
            deq.rotate(1)
    except BaseException:
        return
Exemple #25
0
def dusunme(message):
    deq = deque(list('🤔🧐🤔🧐🤔🧐'))
    try:
        for x in range(32):
            time.sleep(1)
            edit(message, ''.join(deq))
            deq.rotate(1)
    except BaseException:
        return
Exemple #26
0
def kalp(message):
    deq = deque(list("❤️🧡💛💚💙💜🖤"))
    try:
        for x in range(32):
            time.sleep(0.1)
            edit(message, ''.join(deq))
            deq.rotate(1)
    except BaseException:
        return
Exemple #27
0
def img(message):
    query = extract_args(message)
    lim = findall(r"lim=\d+", query)
    try:
        lim = lim[0]
        lim = lim.replace("lim=", "")
        query = query.replace("lim=" + lim[0], "")
        lim = int(lim)
        if lim > 10:
            lim = 10
    except IndexError:
        lim = 5

    if len(query) < 1:
        edit(message, '`Bir arama terimi girmelisiniz.`')
        return
    edit(message, '`İşleniyor...`')

    url = f'https://www.google.com/search?tbm=isch&q={query}&gbv=2&sa=X&biw=1920&bih=1080'
    driver = get_webdriver()
    driver.get(url)
    count = 1
    files = []
    for i in driver.find_elements_by_xpath(
            '//div[contains(@class,"isv-r PNCib MSM1fd BUooTd")]'):
        i.click()
        try_count = 0
        while len(element := driver.find_elements_by_xpath(
                '//img[contains(@class,"n3VNCb") and contains(@src,"http")]')
                  ) < 1 and try_count < 20:
            try_count += 1
            time.sleep(.1)
        if len(element) < 1:
            continue
        link = element[0].get_attribute('src')
        filename = f'result_{count}.jpg'
        try:
            with open(filename, 'wb') as result:
                result.write(get(link).content)
            ftype = guess_type(filename)
            if not ftype[0] or ftype[0].split('/')[1] not in [
                    'png', 'jpg', 'jpeg'
            ]:
                os.remove(filename)
                continue
        except Exception as e:
            continue
        files.append(InputMediaPhoto(filename))
        time.sleep(1)
        driver.find_elements_by_xpath(
            '//a[contains(@class,"hm60ue")]')[0].click()
        count += 1
        if lim < count:
            break
        time.sleep(1)
Exemple #28
0
def tspam(message):
    tspam = extract_args(message)
    if len(tspam) < 1:
        edit(message, '`Bir şeyler eksik/yanlış gibi görünüyor.`')
        return
    message.delete()
    for metin in tspam.replace(' ',''):
        message.reply(metin)

    send_log('#TSPAM \n'
             'TSpam başarıyla gerçekleştirildi')
Exemple #29
0
def iqless(message):
    edit(
        message, 'DÜÜÜT DÜÜÜTT AÇ YOLU AÇÇ HADİ ASLAN PARÇASI YOLU AÇ \n'
        'HADİ BAK ENGELLİ BEKLİYO BURDA HADİ DÜÜÜTTT ♿️ BAK \n'
        'SİNİRLENDİ ARKADAŞ HADİ YOLU AÇ HADİİ DÜÜÜT DÜÜTT BİİİPP \n'
        'HADİ BE HIZLI OLL DÜÜÜTT BİİİPPP ♿️♿️ BAK HIZLANDI ENGELLİ \n'
        'KARDEŞİMİZ SERİ KÖZ GETİR SERİ DÜÜÜTT DÜÜÜT DÜÜÜÜTTTTT \n'
        'BİİİİPPP BİİİİİPPP DÜÜÜTTT ♿️♿️♿️♿️ BAK ARTIYO SAYILARI \n'
        'AÇTIN MI YOLU AÇMADIN PÜÜÜÜ REZİİİLL DÜÜÜÜTTT ♿️♿️♿️ \n'
        '♿️♿️♿️ BAK KALABALIKLASTI BAK DELI GELIYOR DELIRDI DELI \n'
        'AC YOLU DUTDUTDURURURUDUTTT♿️♿️♿️♿️♿️♿️♿️♿️♿️ \n'
        '♿️♿️♿️♿️♿️KAFAYI YEDI BUNLAR AC LAAAAN YOLU')
Exemple #30
0
def picspam(message):
    arr = extract_args_arr(message)
    if len(arr) < 2 or not arr[0].isdigit():
        edit(message, '`Bir şeyler eksik/yanlış gibi görünüyor.`')
        return
    message.delete()
    miktar = int(arr[0])
    link = arr[1]
    for i in range(0, miktar):
        reply_img(message, link)

    send_log('#PICSPAM \n'
             'PicSpam başarıyla gerçekleştirildi')