#topgg-api
1 messages Β· Page 53 of 1
How to use it?
I mean impliment it in my bot?
I cant use it because it req a port
because you need a port
I cant use port for 2wise
then im afaik you cant votelock your bot
Glitch issue
you are using your port to ping
They told me i can with this..
const DBL = require('dblapi.js');
const server = http.createServer(app);
const dbl = new DBL(process.env.DBL_TOKEN, { webhookAuth: process.env.DBL_PASSWORD, webhookServer: server });
dbl.webhook.on('ready', hook => {
console.log(`Webhook running with path ${hook.path}`);
});
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted!`);
});```
Yes to ping the bot
yes but you use your port to ping
you need to remove that
if you want to use that
but you sacrifice your project to be offline if no one votes
If i remove my bot will be offline
Someone said me this..
my mini handler will allow you to host the vote handling in another glitch server
but you set it up on yourself since
its really easy tbh
Can you show me that?
I provided the startup code on readme
const DBL = require('dblapi.js');
const server = http.createServer(app);
const dbl = new DBL(process.env.DBL_TOKEN, { webhookAuth: process.env.DBL_PASSWORD, webhookServer: server });
dbl.webhook.on('ready', hook => {
console.log(`Webhook running with path ${hook.path}`);
});
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted!`);
});```
I get this from the docs
How to use it?
we wont get any progress you are just reversing the questions
I cant help you if you dont help yourself with the help I give you
Since they told me to do this...i am trying to do it..
basically its the same of making your own webhook
If i make my own webhook then will i need port?
ofc you need a port
dblapi.js needs a port
you cant use that without a port
where will the data go if theres no gate for it to go?
the port is a "gate"
What this guy wants to tell me can you explain?
I said a many times
that you are gonna make your own server or endpoint via express
and get the vote from there
Make your own express server, Im sure you have the pinger there
tweak that a bit
make an endpoint for your votes to listen to
Do you have glitch?
Can you help me to make one?
I already made one
Impliment it on my project
thats asking too much now
I am new to glitch so confused
when you only need to just literally read the link @spiral steeple gave you
π
Can't you just help me?
Simple webhook vote handler for Discord Bot List https://discordbots.org/ - Deivu/Haruna
you just need to clone that on your glitch project
if you want to use that
OR
use dblapi.js and remove the pinger
then use something like a pinger from other server to ping your work
thats the easiest way I can give you
I dont want to ping my app
I just want my app page to be opened
Like OK
because i use uptime robot to ping the app
then why you need to have an express server hogging the port then?
How can my glitch app website open without express?
I have just one aim: to open my glitch web page
@craggy sentinel
thanks 
β€
My god, it hurts to read that conversation.
He's been spamming my dms asking me to fix it for him
with the api
https://discordbots.org/api/docs#bots scroll to Post Bot's Stats at the bottom
What language?
oh yeah i want to do that too but idk how
Can anyone help me with the web hook that shows those that voted for the bot?
onlyids has been removed
dblpy wasn't updated
remove it, there's no way of getting only ids
also gone
the best way of tracking voters is using webhooks and a database
A webserver
Contact Google, it knows more than I do
Doubt that Python webhooks are kinda possible in simple way
setting up a webhook is just starting an http server and listening for requests
http.Server 
They do have a built in way of webhooking in their api wrapper
But it didn't work for me so instead I just did it manually by setting up a server that listens for post
That's only for JS I believe
The api is no longer updating for me.
I wouldn't know what info to supply, it just isn't updating.
Currently testing webhook and not getting any response on my end whereas postman sends POST to the same URL and it works
After some time it started working but now authorization doesn't exist in the coming data 
ig it takes a while for it to update?
So i have problem, i can see one of my users has voted via the 'deprecated' api /bots/botid/votes. But when i enter the same user in the /bots/botid/check?userId=userid api it returns {voted:'0'}. Does anyone know why this happens?
Cache
is there a way to bypass the cache or something else to get the correct result?
"bypass the cache" sounds as ridiculous as saying "bypass discord's ratelimits"
you just have to deal with it
yeah, i guess you're right
bypass your destiny
/bots/botid/check responds with 1 if the user had voted in the last 12 hours
Hey
can i set other port than 3000
if i am already using it?
i mean on express glitch
sacrifice the pinger
what?
it means remove the pinger
oh
but if i change to port 3000
on votes
it say on glitch that error 404
(i deleted the pinger)
so the url i'm getting from the webhook thingy is 0.0.0.0:3333/dblwebhook and it doesnt seem to work
and basically anything on google about webhooks is chinese to me
since i've never done something like this
so is there any way to check for votes without webhooks?
@restive otter easy dont use glitch
oh
....
i guess
u can self host it
i mean a vpn is free if u use github student pack
u have $50 of digital ocean credit
amazon web services is free for a year
000WebHost.com. $0/mo β But 1 Hour Offline Each Day.
u can use
digital ocean , and othersz
@restive otter Someone is already helping, but thanks <3
@dull moon u use ur ip:5000/dblwebhook
Yup
fastify is works with u i think
you can run more than one thing in a single port
WHen I try that it says it's in use π€
you can't start two listeners on the same port
you can run two different things as long as they share the same socket listener
keeps it up
Yea thanks ;-;
so... a domain?
Forget I asked. I cba to explain the whole thing. I know it works with a domain.
How do i get if someone has voted for my bot?
discord.js
You have the library?
The DBL library? Yes i do
Yes i have that
i put in the discord webhook url its say it does not send to discord channels
and whats the password i use
You use what you set it as, also it doesn't accept discord webhooks
would it be https://discordbots.org/bot/:ID/edit
no
Wait
the bots edit page
that's how you get to a bots edit page
the url to the webhook would be http://ip:port/path
would it be my vps ip ?
yes
ok so what would the path be ?
Then something is listening on it already
on that port
Actually, I dont think dbl auto closes it on death
which can create problems
I manually used to have to kill it, but idk if I just set it up wrong tho
when killing the process all ports it's listening to will be "released"
it says listening on http://0.0.0.0:90/
0.0.0.0 is local host, and does it not have a path?
127.0.0.1 is local host
0.0.0.0 uses public IP
Works for me with no path so idk /shrug
0.0.0.0 is all ips
ig I googled the wrong stuff then
guys how do i make my bot say <user> Has Upvoted Thanks!
Where to get loco api
@vagrant patrol this channel is only for help with the DBL api
@zealous vine always say what language
@sharp grotto https://discordbots.org/api/docs#
read the docs first
We hooks π
FR : Pourquoi quand on vote pour mon bot sa fait rien ?
EN : Why when you vote for my bot it does not matter?
const DBL = require('dblapi.js');
const dbl = new DBL("MY TOKEN", { webhookPort: PORT, webhookAuth: 'MDP' });
dbl.webhook.on('ready', hook => {
console.log(`Webhook running with path ${hook.path}`);
});
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted!`);
});```
π€
Can anyone help me?
dont leak your webhook auth π¬
Well if they dont have his token they cant do anything with it
with the url and the webhook auth u can fake votes
@plain timber I have never had Webhook or Url authentication: x
What
Enfaite je ne parle vraiment anglais ^^'
I do not really speak English ^^ '
Well then we probably can't help you
But in the page of edition must put what like link for example?
I have the API key but not the link π¦
They say, "Webhooks will send a request for publication to a URL of your choice when your bot has been voted."
@plain timber So can I choose my link? The created directly in my editing page?
the link is the endpoint the webhook is running on
usually https://YOURIP:PORT/dblwebhook
Ok
Why dose my bot widget (website) say servers undefended.
@junior merlin do you post the server count?
why can i not see my server number or. the bot is on the server
https://discordbots.org/api/widget/servers/529640400554819587.svg?noavatar=true
@copper quartz read what I just sent
Post server count to the api
See the link in the channel topic
@plain timber what do you mean with "do you post the server count"
Oh boy
Very bottom, or use the lib for your lang
The URL for the webhook should point to the server the bot is running on right?
No / after ip
Thank you. Where would path go to, where your cog is at or the main file?
I'm using python if that matters
Wait we talking dbl webhooks, ye?
I don't use py, but if it's like other webhooks, you should define the path when making the listen thing
Cant describe it well
@formal marten you need to set up a webserver to accept post requests
How much time does it take show that I have voted? I think its some seconds but I need excact time
@plain timber I'm looking for examples. I only see one where someone used flask to handle it. Im assuming that would be the way to go unless you know of something better
I know Django really well but it seems like that would be more than I want.
@restive otter mine are usually instant
@formal marten I don't know python, sorry
I get a error will posting my stats since today (discord bot list: Error: 503 Backend fetch failed)
I'm using dblapi.js
Yep, wait it out
Nothing you can do
Atleast I don't think it's a problem on your end
I hope so and thanks for the info
oof was just gonna ask about that
yes 503 means dbl is broked
Hey
Where is the webhook thing for?
I thought it was for if someone votes that it will send it a channel but itβs not π€
It's for your webhook, not discord's
https://discordbots.org/api/docs#pylib is this for discord.py rewrite?
DBL library is irrelevant to discord libraries
Oo
Uunless your trying to post stats with js you need to be using d.js or eris
Post server count
what
@ornate abyss you need to get the server count from your client with the bot and post it with the API
ah for everytime it gets kicked and added
That is such an old channel
@spiral steeple it has some good examples of what that means
But most examples are pretty outdated yeah
does it still work?
@ornate abyss some probably do
Pretty sure the PHP ones use CURL
Which for example still is used within PHP
C# still has WebClient aswell but I'm not sure if the library has changed
Idk if thats what he means
He wants to post his count to dbl is what it looks like
And Im also guessing he uses py as he asked if the py lib was for rewrite
He wants to display his server count
The best way to figure that out is by looking at http client examples and just posting the server count
yep i use discord.py@rewrite
aiohttp + manual HTTP request to a DBL endpoint with headers
How long does it take from when someone votes untill my webhook catch it and log it to console?
Normally milliseconds
Or DBL is borked
dbl borks a lot
Urgh
HTTP status codes and how to use them in RESTful API or Web Services.
And it's borked
But yea
const DBL = require("dblapi.js");
const express = require('express');
const http = require('http');
const app = express();
const server = http.createServer(app);
server.listen(5000, () => {
console.log('Webserver is online on port 5000');
});
const dbl = new DBL("NOPE", { webhookAuth: 'password', webhookPort: 5000, webhookServer: server }, client);
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted!`);
console.log(vote);
});
dbl.webhook.on('ready', hook => {
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
Why aint that working? It is logging that the webhook is ready
I'd have to guess either dbl isn't sending requests or you dont have it set up in your bot's edit page settings
Got the webhook working π Thanks
How do I post my bot's server count in Python?
Like, without using the dbl module
Just with requests or something
Yeah, but what are the headers/fields?
Auth
server_count
I would reccomend you look at the website
How to display servers and shards on discord bot page?
@late jay
But here it says Authorization, and you said it was Auth
Because if you had any programming knowledge you would know that Authorization is builtin to most web clients as it's used a lot of the time.
Auth is a short word for Authorization and it's in the api docs which you should read
Depending on what web client system you use. There's either a function for it or you can just include it in the header
I said I was going to use the requests module π
What?
Like, Python's requests module
There's a few. I never use python but either way. You can just include "Authorization" in the header
Yeah, but to send the request, I need to use the module, right?????
@late jay aiohttp
for async code, requests for sync
Don't use requests in your dpy bot
Yeah
And it goes in headers as Authorization
Im at school rn, no time to explain
What does the event 'posted' signify or do?
Just to make sure there is no rate limit on getting vote count right?
ah ok
Why cant we just say 1 per second 
I am trying to figure out how to do a loot box system using votes tho my problem is my host doesn't allow different ports to be opened so I can't use webhooks (at least if I understand it correct lol)
I see the conflict in my previous statement nvm 
@signal lily do you have any ports open?
Isn't that the 8080 port?
All I know is that I ran a proxy on heroku
You can use https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo
If you want to do it manually
Thats not really what I asked for but thanks anyways lmao
Never used glitch @signal lily sorry
Hmmmm
Funny because I wasnt even talking to you
I think you can still create a server on heroku
@rocky mulch @crisp gorge try out rest API client to see if you're doing it properly
You add auth to Header, in body you could add server_count
Heroku allows me to run @tired moat 24/7 but it doesn't allow me to open ports
For lit bot yes
You can use the same port then and set it to listen for post requests on the same port
Just a different path
hmmmm
Wait do discord bots on a vps actually use a port.... I think I am going crazy in my head atm lol
You dont need a port to keep a bot up on a vps
Welp then nope XD
But you should be able to listen on the port
I could use the 8080 port of heroku????
The way I set up my server to my proxy was listening on process.env.PORT
lol
btw the webhook has to have the port on the end of the url in the edit page right?
yeah k
I have to go no, Ill be back sooner or later
ok thanks man!
the port changes....
And can you not set your own port then?
nope
on heroku does it not let you?
sadly nope
Then I'm not too sure, sorry
How do you properly setup the options for the DBL NPM package?
@thorn violet what are you doing with it?
Check when someone votes for the bot
I'm trying to pass in an http server like it's asking for
But apparently it's not an http server π
I would recommend looking into the package's code to see how it creates an http server @thorn violet
Doesn't it just expect an http server to be passed in? Thats what the error is telling me
But I'll give it a look
If it helps, this is what I'm trying to do
Any way to get the date of the votes?
you'll probably have to use webhook and save votes to a db
If you get the votes via wehbook you can track the date yourself, I don't believe you can get the day the user voted though through /votes
Alright, thanks
I canβt get my bot online plz help I have do everything right but itβs not working and I am on iPhone
start by doing a proper code
How
Did you even code the bot yet 
Yeah
Also go to #development
i write my code on paper and scan it with a printer
Is there any way to access information on a bot without being authorized? api/bots/:id returns an error in that case (and is the only bot website which does i might add)
you have to be authorized
@fading kraken what error do you get
Probably a 401
What should I put in the webhook url if I want to hook up my bot that is being hosted on glitch.com?
https://your_project_name.glitch.me:3000/dblwebhook
Hmm
I've done that and this code that it's running isn't working:
const DBL = require('dblapi.js');
const dbl = new DBL(yourDBLTokenHere, { webhookPort: 5000, webhookAuth: 'password' });
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!`);
});
Try 5000 instead of 3000
I'm not sure if it works
Yeah it's not pinging
It keeps saying 4 zeroes with dots and :5000 for example which doesn't exist
hmm
It's still not working
I've looked thru all the pages and it's not telling me anything
On how to create a webhook url
For code
Its running on port 5000 then
Well, that is your webhook URL
0.0.0.0 is any IP.
That likely means that your server's public IP will have the hook running on port 5000
The test button
I did that multiple times
And waited a few seconds
And nothing came out in the logs
Also the ip is down as well :/
what address did you put in the field?
it should be something like http://yourdomain:5000/dblwebhook or http://123.456.789.012:5000/dblwebhook
https://the-keplerbot.glitch.me:5000/dblwebhook
Apparently
Doesn't seem to work though
Any ideas?
Hmm
I think I got it
I've done the test button three times in a row quickly and a minute or less later I see the pings in the logs
It's usually instant, so that's weird, could just be dbl being slow tho.
glitch only allows you to listen on port 3000
listen on 3000 -> https://your-project.glitch.me/dblwebhook
because you're running two servers on port 3000
What do you mean by that?
you're running two tcp servers on port 3000
you can only run one
Where is the other one?
you're running something else in port 3000
idk
it's your code
you should know that
But it's not in my code
it is
i can guarantee you there's another one, otherwise you wouldn't get that error
The other thing is I can't get to the node.js files
Like that's part of the package
For now I'll have to leave it
As I need to get more people
But I am searching for help
And I still cannot find it thru my code!
I got it to work! :D
I asked for help on the support page glitch has and they directed me to the right direction! :D
I am trying to make a log channel of votes on my bot i sopose i need to use webhooks but im not sure how to do it
Ye, webhooks to receive the vote and preferably one to send it too
do you have the dblapi.js lib?
a discord webhook to send it*
dbl.webhook.on('ready', hook => {
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);// What im i soposed to put here ?
});
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted!`);
});```
Nothing in the ready, except the console.log, unless you want something in there. The on('vote') part is what is emitted when the user votes
dbl.webhook.on('ready', hook => {
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);// What im i soposed to put here ?
});```
so do i need that
oh okey ill try
I'd keep it though
Pls
@mighty shuttle one question how would i slow down commads without cancling them completly in error
i think they mean ratelimiting their commands
you use js right
yes
will this post in a channel who voted
that will log it to the console
yeah
did you even read the code
so i can set the channel
anyways
i have the dbl token
but how do i get the password
the webhookouth
so i can just set the password to anything
yes but it has to be the same in the edit page ...
i dont understand shit
so i download the dblapi package
then i write this code anywhere
then i paste the token in there
it helps if you have a basic understanding of coding, js, and webservers
the token goes where it says yourDBLTokenHere
...
Hahaha
you type it where it says authorization
What password
can you actually read what i say for once
<_>
where is that page
@plain timber I mean that field isnt nessecary
here
@restive otter iirc the js lib requires it
True but he seems to struggle
do i type the password i type in wehbookouth in the code, in here too?
do you use glitch?
https://PROJECTNAME.glitch.me/dblwebhook
also make sure you set webhookPort to process.env.PORT
yes
Well now you just..ok whatever
@restive otter see why he needs the auth now 
Haha but he showed it
I didnt show mine
@empty forge its usually not good to show others your urls
well it should be fine if you have the auth
but make sure you dont show anyone your auth
k
if someone has the url and the auth they can make fake votes
Well he used JS? @plain timber
does the token need to be in a string
yes
ok I like SUCK at websites but cant others see JS code
what else would it be π€
its node so server side @restive otter
its not client side js
yes and dont tell anyone
Yes put 123
no dont
Haha
Just use anything tbh
lol
What does he do with the info? @plain timber
Log it?
error
@empty forge you're already running a webserver so you'll have to link dbl to it
what
can you send your line with app.listen
yes
then save and try
yes
Did you save the page too
forgot to save
Ye
you need to find the user via the library you use
What library
d.js
client.users.get()
im using bot
Discord.js get user with id
vote.user is the id
that is correct
then what do i do after
what ever you want
how do i get their username
By calling the variable and getting the property username
just like you would with any user object in d.js after that
lol
vote.user was correct
no
Just do (idk syntax) user = bot.users.get(vote.user)
And then call user.username
can't i just do let username = bot.users.get(vote.user).username
creating a user variable is unnecessary if all you want is the username
yes
you can just use bot.users.get(vote.user).username where you want it
blah blah ${bot.users.get(vote.user).username} voted!
fyi, that'll only work if the user is cached
Thats a nice id
now i can send it in an embed in a channle in my server
yes
I was for no help
can i do the same with peole inviting it
But my conclusion is the fact
client.channels.get('id').send(...)
C# > PHP > JS
yes
they should add that
you cant really tell who invites the bot at all
mee6 can 
code grant?
what
that was a question to advaith
k
i think it gets it when you invite through the dashboard
and I thought you meant the user who invites it
not sure if/how they do it directly
Best thing you can do is see who clicked the invite button, but 95% of the time it's gonna be random users that don't need to log into dbl
@arctic arch cant you do the same as vote, but for people inviting the bot
we cant
ok
and we dont know if they actually click authorize after clicking invite
if you have a website with an oauth2 setup and require code grant enabled you can tell who invited the bot
yeah
yw
you can save votes to a database
you can give rewards for voting, in the bot or roles
cool
lemme see the docs
i could save it in a file
what is this
what does it do
and query?
on friday, saturday, and sunday, each vote counts as double
if so, isWeekend will be true
query just tells you whats at the end of the vote url, after a ?
for which
if(vote.isWeekend) console.log('this vote counts as double')```
if(vote.query) console.log(`this vote had the query ${vote.query}`)```
whats their purpose
https://discordbots.org/bot/id/vote?this-is-the-query
just for extra information
for example
you can give them more rewards if its a weekend double vote
Rly
lol
of course thats a 404, theres no bot id
That's up to you
once you get the vote you can run any code
i runed the code i have on glitch on my pc and it didnt work
is it because of the url, cause the url is glitch
yes
so if i push from my pc to glitch, will it still work on glitch
yes it should
k
oh, i could store all votes, and users in a array and make a leaderboard
wowowow
wait how do i count all votes the user has
like it counts and adds 1 when they vote
use database
no
Well it's gonna be gone
the code you showed doesn't write anything to the file
ill use a database when im done
just use a database now
lol
Related to anime
also
yes good sir
please use camel case for your variable names π©
why
notsoeasytoread
prettyEasyToRead
ok bye
lol
lol
sa
Hi, can anyone tell me an example of using api to post servers without using lib?
You need tokens for any request to the api
a token*
it's your dbl bot token
it goes in the Authorization header
Did you misinterpret my question?
see this exemple: http://api.giphy.com/v1/gifs/search?q=anime&api_key=TOKEN&limit=5
I want to know if it's possible to do the same thing in dbl
You wanted to post server count I thought
yes but using http
now it's clear, thanks
mhm
#servidores comando
@client.command(pass_context = True, hidden = True)
async def postarservidoresliabot01323213213232132(ctx,):
URL = "http://discordbots.org/api/bots/idbot/stats"
token = "dbltoken"
PARAMSHEADERS = {'Authorization':token}
r = requests.get(url = URL, params = PARAMSHEADERS)
Ok how to make the request? this documentation is very confusing
I dont use python, so I wouldnt know
It's okay, you already helped me a lot. I'm grateful.
instead of params it should be headers
and if you're posting stats you need to change get to post
I understand thanks for the good reply I want to know how to post every request needs a token and also the number of servers how to pass this to the post, the documentation does not explain very well
this old channel #312614469819826177 has some examples that might help you
Thank you for your help
@arctic arch @spiral steeple I'm going to thank you both for the help now, my bot is with the servers posted!
:+1:
@restive otter I would recommend using aiohttp instead
I thought that the moment I was giving git to upload my bot to the public kkk I will solve this the next time I go up, thank you very much for the tip kk
why do I still get with this code Unauthorized? {"error":"Unauthorized"}
public void postGuildCount(int guildCount) {
JSONObject jsonObject = new JSONObject().put("server_count", guildCount);
RequestBody requestBody = RequestBody.create(MediaType.parse("application/json"), jsonObject.toString());
Request request = new Request.Builder()
.url(DISCORD_BOTS_API + String.format("/bots/%s/stats", this.botId))
.post(requestBody)
.addHeader("Authorization", this.token)
.build();
try (Response response = this.httpClient.newCall(request).execute()) {
if (response.body() != null) {
log.info(response.body().string());
}
} catch (IOException e) {
log.error("something failed with posting stats to DiscordBots!", e);
}
}
the token that I provided was to 100% the right one
is it the dbl token or the discord bot's token
the one which I generated from DBL
the funny fact is, that it works perfectly with Bash
I mean curl, with that it worked perfectly fine
@lapis dagger unauthorized usually means you aren't sending the token at all
but how?
unauthorizaed can mean you are sending the wrong token too tho
why do I get dbl.errors.Forbidden: Forbidden (status code: 403): {"error":"Forbidden"} error ?
I've put the api key and I am using the example that's shown on the website
π€
@timber fulcrum the API key is probably wrong
Okay so idk wtf this error means. I have made a command for me to just update the server count rather than having it constantly update. I was getting the error Fulger up there was getting but I regened my token and put it in and got this error
Ignoring exception in command update:
Traceback (most recent call last):
File "/home/container/discord/ext/commands/core.py", line 62, in wrapped
ret = await coro(*args, **kwargs)
File "/home/container/cogs/dev.py", line 73, in update
await self.dblpy.post_server_count()
File "/home/container/dbl/client.py", line 100, in post_server_count
await self.http.post_server_count(self.bot_id, self.guild_count(), shard_count, shard_no)
File "/home/container/dbl/http.py", line 189, in post_server_count
await self.request('POST', '{}/bots/{}/stats'.format(self.BASE, bot_id), json=payload)
File "/home/container/dbl/http.py", line 164, in request
raise HTTPException(resp, data)
dbl.errors.HTTPException: Backend fetch failed (status code: 503): <!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 527597576</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/container/discord/ext/commands/bot.py", line 898, in invoke
await ctx.command.invoke(ctx)
File "/home/container/discord/ext/commands/core.py", line 611, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/container/discord/ext/commands/core.py", line 71, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: Backend fetch failed (status code: 503): <!DOCTYPE html>
<html>
<head>
<title>503 Backend fetch failed</title>
</head>
<body>
<h1>Error 503 Backend fetch failed</h1>
<p>Backend fetch failed</p>
<h3>Guru Meditation:</h3>
<p>XID: 527597576</p>
<hr>
<p>Varnish cache server</p>
</body>
</html>```
using python
Can anybody help me out
And I just didnt change anything and tried the command again and got the forbidden error
@restive otter 503 backend fetch failed means DBL broke
403 Forbidden means wrong token or ip banned
well now its giving me forbidden
That's dblpy for you
Outdated as hell, you may wanna use aiohttp and send the request yourself
thats really annoying
You could go deep into the source code of dblpy and find the function for your needs and copy it into your bot
Who is the one that made the dblpy
IPv4, iirc, but why do you need that?
