#topgg-api

1 messages · Page 83 of 1

hard ridge
#

I think i have to open the port as well right?

#

Missed that

echo salmon
#

Yeah

still bison
#

is the auth discord id for your bot, or your user?

timid condor
#

One message removed from a suspended account.

#

One message removed from a suspended account.

glad bolt
#

0.0.0.0 is not a valid IP address...

spiral steeple
#

it means all ip's on the computer

#

it's similar to localhost and 127.0.0.1, but not exactly

#

That means you can access the webhook at http://*:5000/dblwebhook so any open ip on your machine

#

wait on glitch

#

nvm, you'll have to do some other stuff, it has a specific url

timid condor
#

One message removed from a suspended account.

spiral steeple
#

Also you'll need to run it on process.env.PORT

potent roost
#

hi

#

my bot has more than 200 servers

#

but it shows 130

#

led me here

#

Where should I put the token

#

I already have a token Discord Develeoper from and use

willow spindle
#

coin?

potent roost
#

ups token

#

@willow spindle woow nmw with codare 😄

restive otter
#

you can use dblapi.js to post your server count

potent roost
#

@restive otter
to the main file?

#

exam:bot.js,server.js

restive otter
#

whereever your client.on("guildCreate") event is

potent roost
#

yeaap okey

restive otter
#

or you can just set a interval and post your server count there

hollow leaf
#

Extension 'dbl' raised an error: AttributeError: module 'dbl' has no attribute 'DBLClient'

#

can someone help?

sullen nymph
#

Are any of your folders or files named dbl

hollow leaf
#

uh shit

#

thx works now ❤️

hard ridge
#

Hi guys my long got spam with error:

Unauthorized: Unauthorized (status code: 401)```
#

Anyone has same issue?

vapid cape
#

your top.gg token is wrong, or you're using it incorrectly

hard ridge
#

I just accisently regen token and changed it with new one and thats start heppening

hard ridge
#

Hi guys my old code Im using:
self.dblpy = dbl.Client(self.bot, self.token)
The new code from github:
self.dblpy = dbl.DBLClient(self.bot, self.token)
But when I try the dbl.DBLClient(self.bot, cant find in initreference DBLClient

sullen nymph
#

What's the error

hard ridge
#

cant find reference DBLClient in init i think

#

has no attribute 'DBLClient'

#

Extension 'cogs.TopGG' raised an error: AttributeError: module 'dbl' has no attribute 'DBLClient'

#

Let me update it first

#

Same thing

#

just update it to 0.3.4

#

Still have this error discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ExtensionFailed: Extension 'cogs.TopGG' raised an error: AttributeError: module 'dbl' has no attribute 'DBLClient'

#

Any solution?

hard ridge
#

I tried to instal the API v 2.0 and i dont get error

restive otter
#
dbl.webhook.on('vote', vote => {
client.guilds.channels.cache.get("703729301794587219").send(` ${vote.user} bota oy verdi!`)
  console.log(`User with ID ${vote.user} just voted!`);
});```

does not message to the channel
restive otter
#

@restive otter sunucuyuda tanımlayarak at

willow spindle
#

english only @restive otter

restive otter
#

sory

hard ridge
#

Still get error AttributeError: module 'dbl' has no attribute 'DBLClient' 😦

#

But it works fine when I use API0.2 with Client instead of DBLClient

restive otter
#
dbl.webhook.on('vote', vote => {
client.guilds.channels.cache.get("703729301794587219").send(` ${vote.user} bota oy verdi!`)
  console.log(`User with ID ${vote.user} just voted!`);
});```

does not message to the channel

@restive otter you are not receiving the post request from dbl 6_ThinkingHyper

#

Make sure in ur dbl page, u have SERVER_ADDRESS:PORT/WEBHOOK_PATH

unborn ridge
dusk cradle
#

are u using glitch or server ? @unborn ridge

unborn ridge
#

glitch I use

#

@dusk cradle

#

türk müsün sen

dusk cradle
#

your glitch project link/dblwebhook put to URL part

#

turkce konusmak yasak sadece ingilizce

unborn ridge
#

ekliyorum seni

dusk cradle
#

we can talk in there @unborn ridge

unborn ridge
#

I sent a friend request, let's talk to you

dusk cradle
#

just put glitch-link/dblwebhookurl to URL part then authorization is your password write what you want. then define in your bot

unborn ridge
#

I couldn't, let's talk dm

south monolith
#

i tried using the webhook on glitch, it worked for like 5 hours but then randomly stopped working, i didn't even do anything with the code

#

someone please help me

restive otter
#

why my api (topgg embed )isnt working its giving error message (my bot isnt approved)

south monolith
#

because you bot did not get approved yet?

dusk cradle
#

why

sullen nymph
#

@hard ridge Are any of your files named dbl?

subtle matrix
#

Where would I find a top.gg password and port/

vapid cape
#

you create them yourself

#

its a password and port for the webserver that will be listening for webhooks in your machine

subtle matrix
#

oh ok thanks

steep pivot
#

Hi

#

How i can gat my token?

burnt trellis
#

OH neato

steep pivot
#

(k

#

Thank

hard ridge
#

@hard ridge Are any of your files named dbl?
@sullen nymph i dont have file with name dbl except the dbl folder it self

jagged pine
#

Hi guys, I've used this code to post my bot stats, but the number of servers on the page still shows up N/A:

setInterval(() => {
        dbl.postStats(client.guilds.size, client.shards.Id, client.shards.total);
    }, 1800000);
sullen nymph
#

@hard ridge dbl folder?

#

Is your bot file in a folder named dbl?

hard ridge
#

My bot file is not

sullen nymph
#

Well, print(dbl.__version__) blobshrug

hard ridge
#

Dbl folder is inside the venv

#

Ok I will try it. Last night I just reverted it back to v0.2.0

#

With v.0.2.0 it works fine

#

Another question: Can I use the webhook feature if Im self hosted? Is it required ssl?

steep pivot
#

The dbl.webhook.on() is separatly event?

#

@sullen nymph

main cobalt
#

can someone help me, I have a problem in the event dbl.webhook.on("vote", ....), I use Glitch!

steep pivot
#

@main cobalt Translate kkkkkkkkkk

main cobalt
#

eu sei ingres fi @steep pivot

steep pivot
#

Pls, don't use others languages @main cobalt

#

Just english

main cobalt
#

Ok so sorry

#

@steep pivot u can help me?

steep pivot
#

Nope

quiet isle
#

no

#

no

ancient venture
#

Am i doing this wrong or could somebody help me understand why i'm getting {'error': 'Unauthorized'}

#
URL = f"https://discordbots.org/api/bots/{self.bot.user.id}"
PARAMS = {
  'authorization': config.bot['dbl_token'],
  'content-type': 'application/json'
}
r = requests.get(url=URL, params=PARAMS)
data = r.json()
print(data)```
spare solar
#

what does this mean {"shards":[]}

hollow tree
#

i'm having a problem with the .getvotes() method. if i understand correctly, it's supposed to return a list of users who have voted for your bot, but none of the people that have actually voted for my bot shows up on the list. any help would be appreciated!

green mantle
#

@ancient venture yes that is wrong for the following reasons:,

  1. i would advise you use the dblpy lib which manages this for you
  2. You need to send a header with your dbl token and type
  3. normally requests takes data= rather than params
  4. it needs to be an actual endpoint rather than that url
ancient venture
#

ah okay

restive otter
#

So what's the method to get the Server Count of a bot in dblapi module?

#

Ik the others but not the server count

earnest lichen
#

.

signal hawk
#

Please do not dotpost.

spare solar
#

is this how you do it https://top.gg/api/bots/1233/server_count

restive otter
#

@spare solar which language are you using?

#

Python?

spare solar
#

no

#

Java

restive otter
#

Hmm did you read the docs?

spare solar
#

yeah I did

#

but it's being an idiot because I get this

#

{"shards":[]}

restive otter
#

Hmm... Idk about java tho

spare solar
#

Im just trying to get the json

#

trying to see something

#

For it to show the server count does the bot have to be in the server?

signal hawk
#

In this server? No

spare solar
#

hmm

#

Weird

#

api doesn't work properly?

restive otter
#

Code:

String userId = mentionedUsers.get(0).getId();
                           api.hasVoted(userId).whenComplete((hasVoted, e) -> {
                               if (hasVoted) {
                                   mentionedUsers.get(0).openPrivateChannel().complete().sendMessage("Your order is complete! Thank you for your support!").queue();
                                   event.getChannel().sendMessage("Order Complete! Thanks, " + mentionedUsers.get(0).getAsMention() + "!").queue();
                                   msg.delete().queue();
                               } else {
                                   mentionedUsers.get(0).openPrivateChannel().complete().sendMessage("Before your coffee can be prepared, you have to vote for me! https://top.gg/bot/702109112292343919/vote").queue();
                                   event.getReaction().removeReaction().queue();
                               }
                           });

Problem: It's not doing anything... Before I added the check for if it voted it worked fine, so I know the event is firing but... it doesn't do anything

vapid cape
#

@spare solar dont you need auth for that?

spare solar
#

I don't think so

vapid cape
#

try it with auth

spare solar
#

how are you suppose to add an auth in the link

vapid cape
#

you dont

#

you need to make the request with code

#

or with a service like reqbin

spare solar
#

Im just trying to get the json rn

#

just gettting an Unauthorized

vapid cape
#

how are making the request?

spare solar
vapid cape
#

set it as custom token

spare solar
#

getting still the same

vapid cape
#

let me try then

spare solar
#

was using wrong token

#

but i still get shards

vapid cape
#

works for me

spare solar
#

My bot isn't in this discord server so not sure if that's the issue

vapid cape
#

possibly

spare solar
#

so since my bot isn't in here top.gg can't track my bot on how many servers are using it on their website

vapid cape
#

no idea

#

are you using the api to post your server count?

spare solar
#

im trying to get my server count with it

#

im trying to make it so it shows on the website

vapid cape
#

then you need to post it first lol

spare solar
#

were do i post it

vapid cape
#

using the api

spare solar
#

Im using that

#

but Im getting the shards thing

vapid cape
#

youre not posting

#

you're getting

#

GET is to obtain information from a resource
POST is to send information to a resource

spare solar
vapid cape
#

yes

#

you need to send your server count

#

from your bot

spare solar
#

ah k

vapid cape
#

you can use one of the official libraries

restive otter
#

@vapid cape do you have any idea on what's the method to get server count?
I know how to get the bot's prefix, upvotes etc etc but how's that one possible?

spiral steeple
#

stats -> server_count

violet robin
#

i really need some help

#

where do i find the dblToken and the dblPassword

#

?!?!?!

dapper copper
#

the password is for the webhook which you have to set up manually on a vps / server which you can set yourself on the bot edit page

#

@violet robin ^

violet robin
#

thanks i will have a look :))))

dapper copper
#

No problem feel free to ask any other questions you may have here too!

violet robin
#

does the bot need to be a confirmed bot on the website?

signal hawk
#

Yes, it does.

#

You won't be able to get a token or anything until it is approved.

violet robin
#

F**k

#

;-;

quiet isle
#

ç

hollow tree
#

any help with my problem please?

i'm having a problem with the .getvotes() method. if i understand correctly, it's supposed to return a list of users who have voted for your bot, but none of the people that have actually voted for my bot shows up on the list. any help would be appreciated!

restive otter
#

Hello! I'm using JDA and trying to get the voting feature functional. I want it to only allow something to happen if the user has voted. Here's my code: https://paste.menudocs.org/paste/u7por It's calling the method, it's printing all the way to "Has Mention" but nothing past that. Anyone know what the issue is? I'm not getting any errors.

#

Actually!

#

I forgot to check the e variable oops xD

#

Added e.printStackTrace testing now :P

#

Nope... no errors

#

What am I supposed to put for token? Is it the bot token or..

vapid cape
restive otter
#

Found it

#

Now I feel stupid

#

Lol

#

I've been trying to fix it for so long but I was just using the wrong token

#

Thanks xD

#

Wow that's a long token hahaha

vapid cape
#

idk why they went for such a long token either lmao

restive otter
#

😂

full charm
#

hello everyone, is youtube api currently under limit today?

#

for those who have music bot whether youtube api limits daily exceeded today?

green mantle
#

just gonna say change ur auth on that hook

restive otter
#

how to add this server count
in my bot page?

true talon
#

@restive otter woah, u leaked ur webhok password!

#

@restive otter what lib u use

#

discordjs?

restive otter
#

djs

#

yep

true talon
#

literally the beginning

restive otter
#

@true talon i dont care about the password, anyway i gonna change lamo

true talon
#

lol

cloud timber
#

double checking does the server post go in the ready event?

green mantle
#

depends

cloud timber
#

fixed it 🙂

frozen maple
dapper copper
#

You can find it on your bots edit page

#

under API Options

frozen maple
#

thx

steep pivot
#

I created a separate event pro dbl.webhook.on () but the error in on what I do?

kindred sable
#

What does the unauthorized error mean. You got the wrong token?

dapper copper
#

yea

sour garden
#

@quaint sierra are you writing your bot in python using discord.py?

quaint sierra
#

yes

sour garden
#

are you using commands.ext?

quaint sierra
#

no

sour garden
#

ok lovely

#

so

#

to post server count

#

you need api token

#

you got one of those?

quaint sierra
#
    while True:
        await client.change_presence(activity=discord.Game("créer par choucouPEEK!"))
        await asyncio.sleep(10)
        await client.change_presence(activity=discord.Game("*aide"))
        await asyncio.sleep(10) ```
#

for the moment i have this

green mantle
#

hes asking about showing guild count in status not on the site

quaint sierra
#

you meen api token of my bot M

green mantle
#

no

sour garden
#

oh rly cf8?

#

oh

#

oof

#

ok i'm dumb lol

green mantle
quaint sierra
#

Its ok

#

thx

restive otter
#

y it is not updating

#

as it has been updated in page

green mantle
#

it just takes a few mins todo

#

and requires u normally regening it

#

its working on your bots page tho wouldnt kill you to make it less eye tearingly hard to read

junior tusk
#

I asked this in #development but saw this is the better place.

const dbl = new DBL(yourDBLTokenHere, { webhookPort: 5000, webhookAuth: 'password' });```

Hey, I don't understand what the value of webhookPort should be. 5000 connected it to my own pc
vapid cape
#

@junior tusk thats exactly how it works

#

it starts a webhook server on your pc to receive vote events from top.gg

junior tusk
#

oh oof
but now I didn't got the request again to give that program access to my pc (or something)

vapid cape
#

once you allow it in the firewall warning, it will be remembered

#

unless you move it to another folder

junior tusk
#

but I did 'cancel'

vapid cape
#

then you need to go into your firewall configuration

junior tusk
#

okay thanks

#

was it this one? Node.js server-side JavaScript. I guess it was

#

I allowed that one and it's still not working

#

or should it also have 'particular' access?

vapid cape
#

if you're self-hosting your bot, you will also need to port forward in your modem/router

junior tusk
#

oh I was just testing it. Then I can better test it on the host

restive otter
#

wich event is fired when someone votes for my bot on top.gg ?

willow spindle
#

vote

restive otter
#

like dbl.on('vote') ?

willow spindle
#

you have to setup webhook

restive otter
#

aha

#

ok

#

is webhookAuth important ?

willow spindle
#

yeah

restive otter
#

Well.

#

I set up a webhook but it's running locally

#

anyone knows how to do it correctly ?

junior tusk
#

if I test my webhook, will it send a fake vote event?

restive otter
#

technically no

#

excepted if you set the correct headers

#

but mine isn't working

#

like it's set on 0.0.0.0:5000

junior tusk
#

oh I think we have the same problem then

#

is there somewhere a tutorial about the vote webhooks made for noobs?

willow spindle
#

if I test my webhook, will it send a fake vote event?
@junior tusk "Test" button triggering vote event

junior tusk
#

okay thanks. Then it's not working

#

and my host doesn't know what url I should use

junior tusk
#

it works now, @restive otter do you need help?

junior tusk
#

My webhook is working, but when I'm using dbl.getVotes() I get one element of a user I have never heard of, instead of getting the users who just voted on my bot (I know who they are). What is going wrong?

green mantle
#

webhooks are completely separate to get votes

junior tusk
#

ohw

#

but it's using partially the same code

#

oh wait it's updated now

#

but the posted event wasn't emitted

vapid cape
#

dbl is essentially two things in one

#

dbl is a small request manager for requesting top.gg api endpoints

#

dbl.webhook is a webserver created by dbl that runs in your process and listens for data sent by top.gg

stone sierra
#

When I try to use the webhook it says running at 0.0.0.0 what do I enter as the webhook url?

vapid cape
#

where is your bot hosted?

restive otter
#

Same for me

#

It's hosted on my own server

vapid cape
#

for vps hosting, the URL is http://YOUR.VPS.IP.ADDRESS:WEBHOOKPORT/dblwebhook

restive otter
#

Okay

stone sierra
#

where is your bot hosted?
@vapid cape repl.it

restive otter
#

Even if it says 0.0.0.0 ?

stone sierra
#

Someone help

vapid cape
#

@restive otter yes, it will always say 0.0.0.0, its hardcoded

#

@stone sierra does your repl.it have some kind of public url or address?

stone sierra
#

Yes

vapid cape
#

then use that and add /dblwebhook

stone sierra
#

Ok

vapid cape
#

also, for repl, you need to check which ports are allowed

#

for example, glitch and heroku have process.env.PORT

#

check if repl has something similar

stone sierra
#

Ok

restive otter
#

where is the test button ?

#

for votes

#

please ;-;

latent idol
#

hmm

#

ways to sneak information into a rich embed

#

trying to get my game variables back from an embed object

#

I'm guessing any url will cause some static if its a bs string

#

oops wrong channel

junior tusk
#

I'm using dbl.webhook.on('vote', (vote) => {... and vote.user.id is undefined. How?

#

It's emitted with real votes, not test votes

wet wing
#

hey yall, what exactly are webhooks?

willow spindle
#

@junior tusk console.log(vote)

junior tusk
#

Yes will try that tomorrow. But that won't direcly solve anything of course

willow spindle
#

because that is just vote.user

#

not vote.user.id

hollow tree
wet wing
#

ah it’s ok i got there :)

exotic ridge
#

Hi

dull lagoon
#

Seems there’s an issue with the JavaScript pkg. I post stats by just passing client into dbl, however, seems to not be posting an accurate count across shards

vapid cape
#

@junior tusk vote events are sent by top.gg and only contain the data that top.gg sends you, they have nothing to do with discord.js's User objects. vote.user is not a discord.js User

#

@dull lagoon can you elaborate?

dull lagoon
#

It seems the number being posted is much lower then my actual could across shards

vapid cape
#

examples and code samples?

dull lagoon
#

Not on pc currently, one moment

#

Here as you can see I pass client into the constructor. The strange part is, the log does work as expected, just the number being posted is incorrect

vapid cape
#

oh you're that guy who runs that weird ass shard handler

#

my guess would be that there's some additional accidental count posting thats overriding the correct one

#

try logging every single posted event you have, along with shard id and server count

dull lagoon
#

Hmm I’ll take a look

#

didn’t occur on my master build iirc, only occurring now on stable

bold gulch
restive otter
#

@bold gulch =>
https://top.gg/api/widget/YOUR BOT ID.png?v= + (Date.now() >> 0).toString(36)

restive otter
signal hawk
restive otter
knotty garnet
#

Yeah, it's dbl lib

restive otter
#

Ok

knotty garnet
#

Choose one for your language

true harbor
#

I was trying to use eval function to make my boy execute python statements that we send as a message and it would send the output as another message

#

how to make it execute multiple lines

#

In dpy

restive otter
#

I added this to my bot code

orchid spire
shy vortex
#

NaN means Not a Number

#

would you maybe mind showing your ping command code

orchid spire
#

Yeah

#

module.exports.run = async (client, message, args) => {
  // Command Handler Module Code
  let disabled = 0;
  if (disabled === 1) {
    message.channel.send();
  } else {
    const m = await message.channel.send("Pong :ping_pong:");

    let E = new discord.MessageEmbed() // Start of embed
      //.setTitle("Pong! :stopwatch:") // Embed Title
      .setColor("BLUE")
      .addField(
        "Bot Ping",
        `${m.createdTimestamp - message.createdTimestamp}ms`
      ) // Shows Latency
      .addField("API Latency", `${Math.round(client.ping)}ms`) // Shows API Latency
      .setFooter("Cryptic's Bot Ping")
      .setTimestamp();

    message.channel.send(E); // Sending the embed
  }
};
shy vortex
#

which discord.js version do you use

orchid spire
#

12.2.0

shy vortex
#

then its client.ws.ping

orchid spire
#

ah, Ok!

shy vortex
#

also I forgot that we are in the api chat

#

if its not related the dbl api

orchid spire
#

Ok

valid ravine
#
const dbl = new DBL(process.env.TOPGG_TOKEN, { webhookPort: 3000, webhookAuth: 'khlang' });```
#
      throw er; // Unhandled 'error' event
      ^
Error: listen EADDRINUSE: address already in use :::3000
#

help me plz

#

hosting with glitch

junior tusk
#

@junior tusk vote events are sent by top.gg and only contain the data that top.gg sends you, they have nothing to do with discord.js's User objects. vote.user is not a discord.js User
@vapid cape oh oops, thank you! I indeed used vote.user.username but vote.user.id was undefined too. But I will look at it today

#

@valid ravine do you remember you already used port 3000?

valid ravine
#

they said glitch use PORT 3000

junior tusk
#

Ow I see now, vote.user is userId

#

Well I can try to say useful things but I honesly don't know

balmy hamlet
#

@restive otter did you fix it?

junior tusk
#

oh oops, thank you! I indeed used vote.user.username but vote.user.id was undefined too. But I will look at it today
solved btw ^
thanks for helping

junior tusk
visual moss
#

then its client.ws.ping
@shy vortex never knew this was a thing, doesn't calculating the message timestamp minus Date.now() work the same?

sullen nymph
#

P.S this channel is for help with top.gg API

vapid cape
#

@visual moss client.ws.ping is the websocket latency, its a different thing

granite jasper
#

It seems that on webhook its not sending an authorization header or a user id?

#

(using test button if that matters)

junior tusk
#

what do you mean?

restive otter
#

hello why in the api it said that i dont have any bot, but i had one ??

stray sluice
#

do i need to add a bot and wait for it to get verified to get the APi?

restive otter
#

oh

stray sluice
#

i thnk i have to wait on them to verify it

restive otter
#

oh

stray sluice
#

yes

restive otter
#

ok

stray sluice
#

i am not sure

#

how do i fine dbl token??

#

any idea?

restive otter
#

so how long i have to wait ??

stray sluice
#

till it gets verified i guess

restive otter
#

1week ? 1 month

stray sluice
#

2-3 weeks

#

not a month

#

either

sullen nymph
#

more like a week

stray sluice
#

yes

#

so i wont find api unless it gets verified??

restive otter
#

oof

sullen nymph
restive otter
#

@stray sluice are u making that u are new

stray sluice
#

thanks sir

#

yes

#

im new to it

#

they declined it just for a command dm

#

and i had to re-apply

#

meanwhile my official discord bot verification going on too

sullen nymph
#

Sounds like a topic for another channel

stray sluice
#

#fingercross

#

no its fine i stop it

#

do i have to pay for the API?

stone sierra
#

Rlly?

sullen nymph
#

No

trail sigil
#

yeah, get dblapi.js

next pendant
#

from where

trail sigil
#

npm

next pendant
#

How can I have my bot feature on the first page

#

it has like 70 upvotes, but I don't see it on the front

trail sigil
#

ads or it needs a crap ton of upvotes

next pendant
#

How do I do ads

#

I have to pay?

trail sigil
#

-auctions

abstract mothBOT
trail sigil
#

this ^

next pendant
#

How much do I have to typically pay

#

ok

#

so once I get this then what?

trail sigil
#

so check out this

#

it explains how to do it

next pendant
#

ok

trail sigil
#

where is your bot hosted @next pendant?

next pendant
#

US

#

East coast

#

But it's fairly fast

trail sigil
#

i mean what type of hosting

#

i assume it isn't glitch or heroku?

next pendant
#

no

#

AWS

#

Ubuntu server

trail sigil
#

ah okay, that should be fine. just make sure you are using ports that are open

#

if you need any help with setting it up then feel free to ping me

next pendant
#

I have it installed

#

which is the file I edit? index.js in there?

#

I just made my API key

trail sigil
#

wdym?

#

oh you can create the webhook server where ever

kindred sable
#

Hey starman.

#

How are you?

trail sigil
#

hey 👋

#

yeah im good wbu

next pendant
#

Is there a video or something

trail sigil
#

don't think so

#

ok so i think you should make it in your index.js file

kindred sable
#

I'm fine thanks.

#

Oh this is the wrong channel. My mistake.

trail sigil
#

lol

#
const DBL = require('dblapi.js');
const dbl = new DBL(yourDBLTokenHere, { webhookPort: 5000, webhookAuth: 'password' }, client);
dbl.webhook.on('ready', hook => {
  console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
  console.log(`User with ID ${vote.user} just voted!`);
});

dbl.on('posted', () => {
  console.log('Server count posted!');
});

dbl.on('error', e => {
 console.log(`Oops! ${e}`);
});
#

@next pendant that is pretty much what it says on the website

next pendant
#

Where does it send me the notifications for hte votes

trail sigil
#

just ensure your ports are all correct and setup and that you have entered your url on your top.gg bot page

next pendant
#

can I have it send to a specific channel in discord

trail sigil
#

yeah, you can

next pendant
#

What are AWS ports

#

on default

next pendant
#

this is more confusing than I thought

trail sigil
#

can I have it send to a specific channel in discord
and with this question, basically all you do is search for a channel with a specific id (the one you want the messages to be sent to) and just create an embed or something saying who voted

#

it is difficult at first, but if you understand it, it all makes sense

#

check the seconds pinned message in this channel, it explains pretty well how it all works

next pendant
#

Should I do this in src/index.js or webhook

#

webhook.js

#

ohhh

#

this goes in my client index

#

file

trail sigil
#

yeah

next pendant
#

omg

#

damn

#

I'm going to have to reboot my bot then

#

-auction

#

-auctions

#

what was it again

trail sigil
#

lol that only works for mods

#

if u wanna talk about auctions then we should move back to #general lol

next pendant
#

Can you look at my page and give me suggestions to more traffic

#

ok

trail sigil
#

but lets try to get this webhook working first

#

sure, DM it to me

next pendant
#

@vapid cape hey whats teh port for AWS any idea?

vapid cape
#

i dont use aws, but they should support any port you chose

#

you might need to check their admin panel if you need to open it in the firewall

next pendant
#

is it inbound

#

or outbound

#

ports that matter

vapid cape
#

both

#

i mean, probably inbound, but might as well open both

stark escarp
#
const dbl = new DBL('API', client);

// Optional events
dbl.on('posted', () => {
  console.log('Server count posted!');
})

dbl.on('error', e => {
 console.log(`Oops! ${e}`);
})```
#

Im having some problems

#

With this code

#

Bot starts but it goes down with this error

vapid cape
#

that error has nothing to do with dbl

#

you're doing something weird

#

client has to be the same client you client.login() with, not another new Client

steel hawk
#

client.dbl.postStats(servers, shardID, shards);
Does this automatically post every once in a while?

balmy hamlet
steel hawk
#

?

#

Its not a thing I can try and see

spiral steeple
#

the answer is no, that does not autopost

#

you'd have to put it in an interval yourself

balmy hamlet
#

yes you can try and see

steel hawk
#

I have it in my bot for the last couple of weeks and don't really know if its updating because its restarting or not

balmy hamlet
#

make the thing and give it an hour or so

#

if it doesn't autopost then something's happening

steel hawk
#

I can't dude

spiral steeple
#

if you supply a client when constructing the class, it will autopost

steel hawk
#

The bot doesn't join that many servers each day

#

@spiral steeple thanks!

#

Was the answer I was looking for

knotty garnet
#

@steel hawk console.log("posted")

steel hawk
#

Bruh

knotty garnet
#

I mean, to see if the method is being called

steel hawk
#

I'm not gonna look at my console for that long tho

#

Yeah

knotty garnet
#

The just log the response returned the lib

#

postStats returns the response iirc

#

Also, don't u have a written log?

steel hawk
#

ok

#

I'll try that

knotty garnet
#

No need to stare at the console

#

Check your log file for each hour

granite jasper
#

When testing the webhook there is no authentication header or query parameters

#

I've tested it with postman so I know it's not something on my end

#

these are all the headers i received { host: 'ghxst.xyz', connection: 'Keep-Alive', 'accept-encoding': 'gzip', 'cf-ipcountry': 'US', 'x-forwarded-for': '', 'cf-ray': '', 'x-forwarded-proto': 'https', 'cf-visitor': '{"scheme":"https"}', 'cf-request-id': '', 'cf-connecting-ip': ', 'cdn-loop': 'cloudflare' }

#

Also using .getVotes with the js library seems to return very wrong results

#

I have voted for my bot multiple times and a few friends have

#

None of our names show on the list

next pendant
#

Can't get the server count stuff setup

dapper copper
next pendant
#

I'm using AWS

#

not sure if theres a port issue or what

#

my console said connected but when I run the test it doesn't do anything

#

can I just use the POST link instead of the database?

dapper copper
#

Can you show me the code youre using to post your server count

next pendant
#

uh

#

I am using a framework

#

is that going to mess it up at all

jade shuttle
#

dbl.DBLClient(self, keys.dbl_token, autopost=True)
This will start posting once bot is ready, right?

sullen nymph
#

should

jade shuttle
#

also

sullen nymph
#

maybe mmulu

fickle tide
#

ok me revoile

#

je n'arrive pas a envoyer le nombre de serveur avec l'API

true talon
#

Speak English here smh

#

Show your code

fickle tide
#
setInterval(function(){
  //test news
  let req = https.request({
    hostname: "top.gg",
    port: 443,
    path: `/api/bots/${client.user.id}/stats`,
    method: 'POST',
    headers: {
        'Content-Type': 'application/json',
        Authorization: TOKEN2,
    }
  }, (res) =>{
    console.log('statusCodeTopGG:', res.statusCode);
    res.on("data", d => process.stdout.write(d));
  })
  
  req.on('error', console.error);
  req.write(JSON.stringify({ server_count: client.guilds.size }));
  req.end();
  //fin test news
  }, 1800000);```
true talon
#

Why would u do that

#

Use DBLAPI.js

fickle tide
#

in my ready.js

#

i try with dblapi but the same

vapid cape
#

nothing wrong with doing that, i do that too

true talon
#

Well make sure ur token is correct

fickle tide
#

yes i am sur

true talon
#

Is port 443 open

vapid cape
#

does your console show anything?

fickle tide
#

no nothing

vapid cape
#

did you wait 1800 seconds?

fickle tide
#

no i believe it's post directly

vapid cape
#

setInterval doesnt activate immediately

#

first activation is after the timer

fickle tide
#

ok i wait and i come back but my code it's correct ?

vapid cape
#

you can put the code outside of the setInterval to test immediately

#

and if it works, then put it inside the interval

fickle tide
#

ok i test

vapid cape
#

put it in the ready event

fickle tide
#

port 443 it's correct?

vapid cape
#

yes

fickle tide
#

ok it's correct

#

ty

#

but my bot it's on 13 serveur and he post on top.gg 348. Why ?

#

no i'ts ok

#

sorry it's correct 13 serveur lol

restive otter
#

What does this mean Module 'dbl' has no 'DBLClient' member

#

I'm dead confused

sullen nymph
#

Either your file or folder named dbl

#

or your dblpy isn't up-to-date

restive otter
#

oh ok

tepid harness
#
def __init__(bot):
  self.dblpy = dbl.DBLClient(self.bot, self.token, webhook_path='/dblwebhook', webhook_auth='something', webhook_port=5000)

@commands.Cog.listener()
    async def on_dbl_test(self, data):
        print(data)
#

why doesn't this code print out data when i ask for it

sullen nymph
#

Is port 5000 open? Are you sure your indentation isn't messy? Are you sure your URL is correct?

tepid harness
#

ok so

#

how can i check if port 5000 is open

#

my indentation is not messy

#

and the url is IP:5000/dblwebhook

#

ok

#

i used a online tool

#

and it says that port 5000 is open

vapid cape
#

where is your bot hosted?

tepid harness
#

a VPS

#

i use galaxygate

junior tusk
#

Error: 502 Bad Gateway
This is coming from the dblapi.js. Is it something I can solve?

sullen nymph
#

Nothing you can do your end

junior tusk
#

okay. But is that just randomly thrown or is it thrown while a user votes my bot?

vapid cape
#

@tepid harness try making a request with reqbin

tepid harness
#

uh

vapid cape
#

if it gives you unauthorized, its working
if it gives you connection error, then the port is blocked or the ip is wrong

tepid harness
#

you can have multiple listeners on the same ports right

vapid cape
#

no

tepid harness
#

ok

#

figured it out then

sullen nymph
#

okay. But is that just randomly thrown or is it thrown while a user votes my bot?
@junior tusk Most likely whenever you try to send a request to top.gg

tepid harness
#

ok it works now

junior tusk
#

@junior tusk Most likely whenever you try to send a request to top.gg
@sullen nymph oh like postStats() for example. Yes according to the uptime and the interval, that it is

#

thanks

granite jasper
#

When testing the webhook there is no authentication header or query parameters
I've tested it with postman so I know it's not something on my end
these are all the headers i received { host: 'ghxst.xyz', connection: 'Keep-Alive', 'accept-encoding': 'gzip', 'cf-ipcountry': 'US', 'x-forwarded-for': '', 'cf-ray': '', 'x-forwarded-proto': 'https', 'cf-visitor': '{"scheme":"https"}', 'cf-request-id': '', 'cf-connecting-ip': ', 'cdn-loop': 'cloudflare' }

Also using .getVotes with the js library seems to return very wrong results
I have voted for my bot multiple times and a few friends have
None of our names show on the list

#

(previously posted with no response)

spiral steeple
#

you put the authorization on the site and pressed saved before testing?

#

I can't show because I don't have a bot anymore, but on your edit page you need to remember to save the webhook settings

granite jasper
#

yes @spiral steeple

spiral steeple
#

idk why it wouldn't work then, I never had an issue like that

mossy bay
#

Should server count show up instantly on the site or does it takes some time

#

because I am kinda confused if i messed something up

spiral steeple
#

did you post the data?

mossy bay
#

um it's kinda my first time doing that

#

i have created the cog with the first example

#

pasted my token there from top.gg

spiral steeple
#

ah py, I've nver used dblpy before

jade shuttle
#

@mossy bay try refreshing the page

#

Force refresh if that doesn't work (shift + refresh in Firefox)

spiral steeple
#

ctrl + shift + r is override cache on most browsers

#

(tested on chrome, opera, firefox, edge)

mossy bay
#

still show n/a

#

instead of a number

#

shows*

jade shuttle
#

Did you load the cog?

#

Did it post successfully?

mossy bay
#

yup

#

token should in quotes right as a string

#

?

#

because that i wasn't really sure of

sullen nymph
#

I mean it is a string and without the quotes it's... an error

jade shuttle
#

It's a syntax error if it wasn't in quotes

restive otter
#

Anyone knows a slap api ? the nekos.life one does not work

vapid cape
#

this channel is for the top.gg api only

mossy bay
#

For server count to show the first python example is sufficient or I should do something more to make it work

#

?

vapid cape
#

the first example should be suficient

#

it should print "server count posted successfully" every 30 minutes

sullen nymph
#

Jeez, maybe I should add logging to internal dblpy code

proper pagoda
#

Hello, do you know if I can use another port for APIs?

vapid cape
#

if you mean top.gg webhooks, you can use whatever port you want as long as its allowed by your hosting

golden heart
#

Hey

granite jasper
restive otter
vapid cape
#

a random code you come up with

#

must be the same as what you put in your bot's top.gg Authentication field

restive otter
#

oo true, thank you.

vapid cape
#

i just told you what lmao

#

a random code you come up with
must be the same as what you put in your bot's top.gg Authentication field

#

oh i said Authentication sorry

#

its Authorization

#

its the same thing really

steel terrace
#

what about the URL field?, i thought you put the webhook url but idk

granite jasper
#

yes, you do @steel terrace

steel terrace
granite jasper
#

no

steel terrace
#

oh

#

wait then where?

granite jasper
#

the url to your webhook not to discord

#

to wherever your bot is hosted

steel terrace
#

how do i do that?

granite jasper
#

get the ip to your server

steel terrace
#

aight

granite jasper
#

then add the port you're using (eg: 5000) and set the webhook url to that

granite jasper
#

its been over 24hrs and no help, it's not something on my end

dull lagoon
#

It seems my shard stats are pulling correctly from my client, but my guild count is 1k+ behind. Anyway I can check what is being posted in the onPost event?

#

Would be nice if the posted event in the js lib returned the values or something

knotty garnet
#

@granite jasper don't use getVotes

#

It's not a very reliable way of getting votes

granite jasper
#

well their webhook isnt working 🤷

knotty garnet
#

It is

granite jasper
#

is hasVoted ratelimited?

#

it isnt for me, it's not sending an authorization header or any data

knotty garnet
#

Iir it has a limit of 1000 votes

granite jasper
#

its making a blank request

knotty garnet
#

So it wouldn't return vote 1001

granite jasper
#

i thought hasVoted isnt limited to the 1k limit..?

knotty garnet
#

It is

#

When vote 1001 is submitted, vote 1 is deleted

#

Also, there is a ratelimit, but you shouldn't hit it unless spamming getVotes

granite jasper
#

oh

#

"Individual User Id Voting Check for the past 12 hours.
Use this endpoint to see who have upvoted your bot in the past 12 hours. It is safe to use this even if you have over 1k votes." @knotty garnet

knotty garnet
#

Iirc there's a red message on the top of the page

#

Also, you gotta setup a webhook listener to use the webhook, not just pointing to your ip

granite jasper
#

i have one

#

It gets a empty request

knotty garnet
#

And I listen to requests made to it

granite jasper
#

well empty as in it does not give userid or authorization

knotty garnet
#

But is it triggering?

granite jasper
#

yes

#

and when I test with postman it works fine

knotty garnet
#

Hm, are you getting the request body or the request headers?

granite jasper
#

headers

#

does it send in the body?

knotty garnet
#

...all the data IS in the body

granite jasper
#

"body: {}"

knotty garnet
#

The headers only contain default request ones, like User-Agent

#

Try printing your entire response

granite jasper
#

yeah, i did

knotty garnet
#

What does it return?

granite jasper
#

a lot of stuff

#

i check the query which is empty, so is the body

knotty garnet
#

Hm

#

Are you using cloudflare?

granite jasper
#

yeah

knotty garnet
#

Have you whitelisted dbl?

granite jasper
#

but testing with postman works so that shouldnt be a problem

#

uhhh

#

well its still getting the request tho..?

knotty garnet
#

Hm, what kind of host do you use?

granite jasper
#

digitalocean

knotty garnet
#

No, i mean

#

Nginx, tomcat, express, which?

granite jasper
#

express

knotty garnet
#

Weird

#

The weirdest part is that you're receiving the event, just not the data

#

Could you show me your webhook listener?

granite jasper
knotty garnet
#

hastebin plz

#

I'm in mobile atm

#

Codeblocks are unreadable on mobile

#

Ah

#

Try res.json()

#

And see what it returns

#

Res not req, srry

granite jasper
#

mk one sec

#

there @knotty garnet

#

what do you want me to look at?

#

body is still empty

knotty garnet
#

Idk then, I'm as clueless as you

#

Like, it was supposed to have body data

#

If there was something blocking it then you'd not even receive the event

granite jasper
#

yeah

#

do you know who i should talk to about it or anything?

knotty garnet
#

See if someone here uses express as webhook listener

#

It could be a teeny tiny detail we're missing

#

See if tim knows something about this

granite jasper
#

tim?

knotty garnet
#

Yeah, tim is a big js bot dev here

granite jasper
#

oh

#

ping him or?

knotty garnet
#

Idk what method he prefers

#

Either pm or ping

granite jasper
#

mk, ig can you ping him?

#

then he can see these messages

knotty garnet
#

Well, you could do that

granite jasper
#

whats his ping?

knotty garnet
#

Tim

#

The only one here

balmy hamlet
#

but like

#

I'll try to help if you want me to

knotty garnet
#

Wait, is there more than one tim?

#

Lol

balmy hamlet
#

yeah

#

there are a lot of tims

#

you just need to see his pfp tho to know which tim you're talking to

tiny compass
#

how to do I get upvotes for a bot? I'm not very familiar with webhooks and I just copied the code from the example docs

#

can the dbl library (I'm using python) create a webserver for me?

abstract mothBOT
#

@tiny compass

Voting on the website a way for users to show their support and interest for a bot; developers can also use this to reward users for voting. The amount of votes you see on the website is the monthly vote count which is, obviously, reset every month. Once a user has voted for a bot, they cannot vote for that bot again for 12 hours. During weekends (PST), one vote will count as two. If you're a developer and would like to reward users for voting or if you would like to view a list of voters, you can do so via the votes API.

restive otter
#

I hope that helps.

tepid harness
#

why is there an error when i use the actual vote but not when i use the test webhook

restive otter
#

That's a great question, I'm not actually too sure however I'll see if I can find someone that can better answer your question.

tepid harness
#

ok

#

just fyi, the error is

#

aiohttp.http_exceptions.BadStatusLine: invalid HTTP method
Error handling request
0|CTZN | aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

sullen nymph
#

In the end I couldn't reproduce that error...
Please report it on the Github repo, I'll get to it soon

tepid harness
#

Ok

green mantle
#

Eh yeah that errors be there for a while

#

I have no idea what is causing it as it seems to be a aiohttp internal error from the stack traces

true talon
#

Hi. dbl.hasVoted always returns false after a bot restart, even if the user has voted. Why?

#

I don't use webhooks

junior tusk
dusty temple
#

The python examples use a bot variable.
Should that be the client object from discordpy?

#

ah nvm, found it bot – An instance of a discord.py Bot or Client object

junior tusk
craggy sentinel
#

i'm pretty sure its GMT

#

asked admins and its UTC

dusty temple
#

the /bots/{bot.id?}/votes give me not a count back, is there a way to get a info, how often a user voted?
Or must I do it with a task over all users with /bots/{bot.id?}/check?

#

But that will be a ton of requests ...

green mantle
#

use a webhook then a store the votes in your own db

dusty temple
#

ah ok, yes that is much better anyway, so I dont have to pull all the time

restive otter
#

I know u probably get this all the time, but im trying to handle the data from the api and i get a coroutine object. Im trying to handle it but i really dont know what to do (python)

green mantle
#

also alot quicker most of the time

#

elaborate?

dusty temple
#

also alot quicker most of the time

#

true so I can send the user instant a msg about it

#

that is fine

#

thx

restive otter
#

I know u probably get this all the time, but im trying to handle the data from the api and i get a coroutine object. Im trying to handle it but i really dont know what to do (python)
Im really stuck sorry. I know its probably obvious but i have no clue

#

Ok doesnt matter, i dont think you can cast it. But either way i got it

junior tusk
#

asked admins and its UTC
@craggy sentinel so that's 100% sure now? Thanks
Maybe change it in the embed from @abstract moth

craggy sentinel
#

i already did

#

but it doesnt affect old embeds so

junior tusk
#

okay nice, thank you for the clarification

#

yeah of course ;)

dusty temple
#

@green mantle thx! works like a charm.

vapid cape
#

where is your bot hosted?

#

should be http://REPL-NAME.USERNAME.repl.co/dblwebhook

#

with your relp name and your repl username

#

doesnt matter, it has to be the project name and the project owner's username

#

whatever username it says there

#

the repl/project name

#

should be written there lol

#

show a screenshot of your repl project

#

apparently yes

#

you basically have the entire url written there already lol

#

you just add /dblwebhook to it

#

anything you want

#

as long as its the same thing you put in webhookAuth

#

are you using dblapi.js?

#

dblapi.js is the module for the top.gg api

#

but you dont really need it, you can get votes without it

#

make a code to receive it in your bot

#

if you're not using dblapi.js then you need to add a /dblwebhook endpoint in your express server

vapid cape
#

its not client id

#

webhookPort should be process.env.PORT for repl.it

#

webhookAuth should be the same thing you put in Authorization

#

i literally showed you?

orchid zodiac
#

i see repl.ot

#

I use it

#

for my bot

floral raft
#

do i have to use dbl api for the server count to show on your top.gg page?

green mantle
#

yred

#

yes

vapid cape
#

yes

sullen nymph
#

What is 704036893859381480 doing there

#

replace that with your top.gg token

scarlet gazelle
#

How to in python? Sorry I´m not really good in english

sullen nymph
#

There's a dblpy library that can help you post guild count easier

#

Because it should be long

#

for security

#

👀 What's the error?

#

Put it inside quotes

#

It must be a string sooooo

#

"IloVEMYToKEN.MyPreCioUSTokENn.PlEASEdoNThACKMe" is basically how it should look

#

see the quotation marks

balmy hamlet
#

they told you the token MUST be a string

#

do you know what a string is?

sullen nymph
#

carry on, nothing to yell at here

olive arrow
#
0|index  | (node:12496) UnhandledPromiseRejectionWarning: Error: 500 Internal Server Error
0|index  |     at IncomingMessage.<anonymous> (/home/cxllm/Bots/Corynth/node_modules/dblapi.js/src/index.js:118:25)
0|index  |     at IncomingMessage.emit (events.js:323:22)
0|index  |     at endReadableNT (_stream_readable.js:1204:12)
0|index  |     at processTicksAndRejections (internal/process/task_queues.js:84:21)
0|index  | (node:12496) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
0|index  | (node:12496) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
olive arrow
#

This is what I got on the ready event with dblapi

#

oh ok

#

Sorry

finite hare
#

Is there a way you can remove the 500 errors lmao

#

I'm just getting spammed with them

spiral steeple
#

it's an error, you don't remove it, you handle it

sullen nymph
#

You can remove them by trying to do something a bit later

#

because 500 is server-side and you have no control over DBL's servers so all you can do is wait patiently and help us not lose our hair in the meantime. Thank you for understanding

finite hare
#

Yes, of course, I mean like is there a way to just stop them from being logged

#

Because they're really annoying when you're trying to debug stuff

#

But I'll just wait

#

My bot can't connect for some reason anyway

spiral steeple
#

What library do you use

finite hare
#

discord.js

spiral steeple
#

I assume you use dblapi.js as well then?

finite hare
#

Yessir

proper cedar
#

Error: 502 Bad Gateway
at IncomingMessage.<anonymous> (/app/node_modules/dblapi.js/src/index.js:118:25)
at IncomingMessage.emit (events.js:322:22)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
api not working ?

spiral steeple
sullen nymph
true talon
#

yes

proper cedar
#

oo thx

#

didnt see sorry

finite hare
spiral steeple
#

@finite hare iirc, all it does is reject() in promises so if you use .catch() and just have it do nothing, it wont log the error

proper cedar
#

thx again

finite hare
#

But what I want to know is what the hell that random event is

spiral steeple
#

Yeah discord is dying

finite hare
#

Thought so

proper cedar
#

I use try catch

spiral steeple
#

if the image would ever load I'd help you, but the cdn is also dead

sullen nymph
#

open it yourself

finite hare
#

All it says is

'es' localisation failed to load
Listening
Connected to db!
Left a server: undefined | 264445053596991498
spiral steeple
#

What event is the random one?

#

just Listening?

finite hare
#

guildCreate

#

lemme find it

#

guild_delete i think

#

It happens every single time I start it up

#

Same id

spiral steeple
#

That could happen when the servers go out

#

oh

#

hm

finite hare
#

No idea why

spiral steeple
#

is it recent?

finite hare
#

Ah

spiral steeple
#

My best guess would be because of server outages, but idk

finite hare
#

Yeah my bot started to not connect when it happened to dbl

#

I don't know if sharding would fix this problem

spiral steeple
#

Yeah that's the dbl server id, your bot must see it as an outage

#

it was down for me earlier

finite hare
#

Oh

spiral steeple
#

It'll probably fix itself when the api stops dying

finite hare
#

Still not connecting :/

#

Yep

#

Wait

#

But it's online? @celest latch

#

Wtf

spiral steeple
#

shows offline for me

finite hare
#

Ok discord

#

Now it's back online

#

But

#

Not connected?

#

Okay

mossy bay
#

I know it is probably a trivial error but i just can't figure it out why it just won't work. I would really be thankful for a helping hand. I'm almost running out of my wits

#

ugh image doesn't want to load

sullen nymph
#

a-ha

#

Apply the cog listener event to on_guild_post 👀

mossy bay
#

still doesn't work

#

i have added an env var on heroku with the token in it

cold marlin
#

XD

#

I am get medal

#

In perfil

stiff osprey
#

Hi, your API is taking 6+ seconds to server widgets

steep jolt
#

the site is slow rn

stiff osprey
#

its been like this for quite a while

#

oh right the entire site

#

is fucked lol

steep jolt
#

ya

light talon
#

you know. why doesn't anyone use discord.php?

willow spindle
#

¯\_(ツ)_/¯

cerulean monolith
#
| { Error: 500 Internal Server Error
0|bot  |     at IncomingMessage.res.on (/root/ezv/node_modules/dblapi.js/src/index.js:118:25)
0|bot  |     at IncomingMessage.emit (events.js:194:15)
0|bot  |     at endReadableNT (_stream_readable.js:1103:12)
0|bot  |     at process._tickCallback (internal/process/next_tick.js:63:19)
0|bot  |   raw:
0|bot  |    '{"error":"Oops, I think a bad happened, I\'m trying again just hang in there"}',
0|bot  |   body:
0|bot  |    { error:
0|bot  |       'Oops, I think a bad happened, I\'m trying again just hang in there' },
0|bot  |   status: 500,
0|bot  |   headers:
0|bot  |    { date: 'Thu, 30 Apr 2020 18:50:12 GMT',
0|bot  |      'content-type': 'application/json; charset=utf-8',
0|bot  |      'content-length': '77',
0|bot  |      connection: 'close',
0|bot  |      'set-cookie':
0|bot  |       [ '__cfduid=dd00cc9814c377f7cb232c93da00dffcc1588272612; expires=Sat, 30-May-20 18:50:12 GMT; path=/; domain=.top.gg; HttpOnly; SameSite=Lax; Secure' ],
0|bot  |      'x-powered-by': 'Express',
0|bot  |      etag: 'W/"4d-bawlvXmIX77Lqj+rNFbli5+PTRI"',
0|bot  |      'x-cacheable': 'NO',
0|bot  |      'x-varnish': '499912419',
0|bot  |      age: '0',
0|bot  |      via: '1.1 varnish-v4',
0|bot  |      'cf-cache-status': 'DYNAMIC',
0|bot  |      'expect-ct':
0|bot  |       'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
0|bot  |      'strict-transport-security': 'max-age=15552000; includeSubDomains; preload',
0|bot  |      'x-content-type-options': 'nosniff',
0|bot  |      server: 'cloudflare',
0|bot  |      'cf-ray': '58c372749890f025-EWR',
0|bot  |      'cf-request-id': '026e05dce20000f0258a2b0200000001' },
0|bot  |   ok: false,
0|bot  |   statusText: 'Internal Server Error' }
#

Uh

solid wharf
#

same here, just notified me

cerulean monolith
#

Discord api has been weird or only me?

#

i mean discord not sbl

#

dbl*

solid wharf
#

Looks like DBL

cerulean monolith
#

Nah i no that too

cerulean monolith
#

Discord was acting weird lately

#

Ahhh

#

see discord bugged up

restive otter
#

F