#topgg-api
1 messages ยท Page 166 of 1
can you access the port from other devices ?
I went to router settings and made port forwarding just for my device


How do I send back a 200 status?
res.sendStatus(200)
tnx
hello im chatting in here because no one cares about my predicament when i type my question in general, so i have a 1.2k server and have 123 roles, i would like to give the upvoter a reward role however on the dashboard i cant scroll much and thus can't get to my desired role, is there another way to give an upvoter a reward role without using the dashboard?
idk how to use those lol :<
omg, why cant one just type in letters and then the corresponding letters from the roles listed in your server will pop up like others
damn my 123 emojis lol
yus i selected a role on the list, selected that, went back to discord server settings, changed its name and vola
im so smart
oh really? that sucks. Still though its alright. thank you for giving me your time ^^
How do I add server count?
const client = Discord.Client() // Your discord.js client or any other
const { AutoPoster } = require('topgg-autoposter')
AutoPoster('topgg-token', client)
.on('posted', () => {
console.log('Posted stats to Top.gg!')
})
I use python ๐ฆ
I wish you good luck
can I ask one more question pls
sure
we are talking about this right?
yes
ok thanks
I will check for python than
ok thanks a lot
not python
but you can try this
https://docs.top.gg/api/bot/#post-stats
(It's the api docs btw)
oh thanks ๐
How can i make if someone voted takes a role in the support server
dsl automatically does that I guess
What is dsl๐ฌ
@wild lantern
but that's for servers only, you'll need to completely make your own bot if you wish to connect that with a custom webhook
Yeah so my bot needs to be verified in top.gg so i can connect it with a custom webhook.
The average up-to-date approval times are stated [here](#support message).
This does not mean it will take the same amount of time someone else's bot took to be reviewed and does not mean your bot is guaranteed to be reviewed within that time frame.
There is no exact time for how long bot approval will take.
There is a queue and you're not first, nor are you last.
I wanted to know that if I make a vote only command that requires the user to first vote my bot on top.gg website otherwise he won't be able to use that command. Then is it okay ?
What am I doing wrong? The webhook isn't doing anything.
class Top(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.dbl_token = "token"
self.dblpy = topgg.DBLClient(self.bot, self.dbl_token)
self.topgg_webhook = topgg.WebhookManager(self.bot).dbl_webhook("path", "pass")
self.topgg_webhook.run(0000)
@commands.Cog.listener()
async def on_ready(self):
print(f"TopGG Loaded")
@tasks.loop(minutes=30)
async def update_stats(self):
try:
await self.dblpy.post_guild_count()
logger.info(f'Posted server count ({self.dblpy.guild_count}), shard count ({self.bot.shard_count})')
except Exception as e:
logger.exception(f'Failed posting server count on top.gg: {e}')
i can't load the cog and idk why
Ewww ! Be careful ! We can see your token !
And this is not for Discord Webhooks
I was trusting people not to use it.
Regen it
https://docs.top.gg/libraries/javascript/ you can learn how to use webhooks here: https://docs.top.gg/libraries/javascript/
heelo!
so I have:
topggpy = topgg.DBLClient(self.bot, self.token)
if await topggpy.get_user_vote(ctx.author.id):
doStuff();
await topggpy.close()
```But I still get `unclosed client session` error 
my bot says "N/A" instead of "server amount"
how can i open
this feature
make a post request to the top.gg api https://docs.top.gg/api/bot/#post-stats
how? do you have a code sample
Not unless you happen to be writing in lua
Can we only get API keys when Bot is accepted?
lua?
Its just another language, I'm not sure how http requests are made for any other language. If you can figure out how to make an http request, it shouldn't be too hard
is there a way to get a users bot via the api im only asking cause i dont see how via the docs
not that im aware of.
damn
A transformer has 1200 primary turns and 200 secondary turns. The primary and secondary resistances are 0.2 ๏ and 0.02 ๏ respectively and the corresponding leakage reactances are 1.2 ๏ and 0.05 ๏ respectively. Calculate (a) the equivalent resistance, reactance and impedance referred to the primary winding, and (b) the phase angle of the impedance.
@jaunty plank
what even is this ๐
@brittle stratus no random copy pasta's in random channels please
somoene plz help me ^ ๐
how i make to show the votes in the bot?
Do you just want to show when someone votes? Or are you just looking to get the number of votes?
number of votes
for me to mention the person who voted for the bot I use vote.user?
and for id vote.user.id
Don't suppose anybody knows what this error means? It seems to happen when testing the voting webhook from the website.
@hearty lintel
Seems to definitely be related somehow, it doesn't show up until I press the "test" button on the website.
It's something with mongo, nothing to do with the API. Could ask someone in #development that maybe knows about mongo
Managed to fix the Mongo issue though now it seems the webhook isn't being sent.
Nothing is logged to console and I've tried it like 10 times, all credentials are correct and I've even reset them multiple times.
It definitely should be listening:
https://www.youtube.com/watch?v=11WE2_sIZTE followed along with this tutorial. Not sure how outdated it is but I assume it isn't that old since it was only a month ago.
Yes, yes im not dead, i just took a 2 week long break ๐
Anyways, Here is a highly requested one, i thought of leaking my methods ๐
Like, sub and share to other fellow coders :D
Code(s) used in the video: [ #public-codes In the discord server]
NPM Package used - https://npmjs.com/package/@top-gg/sdk
Discord server: https://discord.gg/S2GGa23
So...
Are you logged in?
yeah
Replace it with your bots ID
ok
:botid = your bot id
all good lol
how to make vote forced commands
#development for that
ok thanks
how do i make a command for only who voted to my bot using py and replit?
Get the users who voted from api and then check if the message author in the votes
Use aiohttp
And just read the top gg docs
That issue was solved
like looooooooonnnnnnnggggggg ago
in #development
thanks for helping tho
is there a way to get, from the token, the bot id this token is attached to ?
ok I found, decode the second part of the token in base64
Hi there,
i need help..
i am trying to check my webhook setup on the server by clicking on 'send test' button but it is showing something went wrong for both me and my friend.
Would this affect the Webhook in any way?
test isn't working for servers.
Click save and then vote (fore real) to test it
ok thanks!
๐
can anyone help ^
Can anyone say how to host the bot 24/7 online??
I suggest if your using replit use โUptimeโ
No am not using that am using python application on laptop
@unkempt yew it costs money but you can do that
Bot hosting sites
How Im keeping mine up 24/7 rn
Im using pebblehost
Version? When does it happen?
Ok
Whenever I try to post my bot's stats to topgg I get a 403 response code. I know I have the right token in the authorization so what could it be? Just decided to use the node module, it works
Randomly lol
I use the command... and then minutes/hours later, it prints... and then minutes/hours later, it prints again... over and over..
Version... I just installed the most up-to-date one
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000163D64400D0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x00000163D61B4D00>, 3144144.921)]']
connector: <aiohttp.connector.TCPConnector object at 0x00000163D6440D90>
with code:
class Vote(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def vote(self, ctx):
token = 'token'
topggpy = topgg.DBLClient(self.bot, token)
if await topggpy.get_user_vote(ctx.author.id):
doStuff()
await topggpy.close()
Just have an object and reuse it, why bother making one and closing it on every command call
That'll also cause the rate limiter to not work
well, originally i had it as:
class Vote(commands.Cog):
def __init__(self, bot):
self.bot = bot
token = 'token'
self.bot.topggpy = topgg.DBLClient(self.bot, self.token)
@commands.command()
async def vote(self, ctx):
if await self.bot.topggpy.get_user_vote(ctx.author.id):
doStuff()
but it also errored
Huh
Does the warning message (yes, it's a warning message) show up only if you reload the cog? If so, you can either:
- Not overwrite the
topggpyattribute if it exists, simply by having ahasattrcall. This will preserve the rate limit buckets; - Keep it as it is, but close it on cog unload.
oh, so it's ok to keep it open 24/7 then? i thought that was causing the errors.
and i have never gotten myself familiarized with attributes and hasattr haha i'll have to look into that.
Hi, I recently switched over to the official @top-gg/sdk package and after 24 hours, I got my first duplicate vote. ( An issue I've been experiencing since the new web hooks system in March ) I'm not sure what else could be causing this issue CC: @elfin solstice
please do not ping me for such questions anymore, feel free to ping any other team member or whatever
Do you get only 2 messages for each vote?
It doesn't happen for each vote, just randomly happens
I thought it was my own routes, but apparently not because even using the official package it does it after some time
this is the first duplicate in nearly 48 hours
but this never happened until March when the system was changed
Latest versions should be responding to requests so it's strange
You sure the requests just didn't delay themselves?
I'm not sure, I guess I can check in the nginx logs
i did make vote async but I doubt that could be the issue
webhook.listener(async vote =>
Doubt it
I've had about 100+ votes since switching to the package and this is the first duplicate, took almost 48 hours
very strange
would looking at nginx access log help?
there is a possible issue regarding double webhooks caused by a bug on the vote page
have added it to our issues, though not anyone who could reproduce it so far
[23/Aug/2021:01:14:07 +0000] "POST /topgghookHTTP/1.1" 204 0 "-" "Top.gg Webhook/1.0.0"
oh man
I've been telling you guys this for months lol and Yukine kept saying it was on my end
It was not related to your previous issue, this is something different
this happened just recently
oh ok
It's hard to reproduce it as well as Hope claims so I'd say it seems that it's hard to really pinpoint it
Well on my system, sometimes it wasn't just duplicates. It was nearly 4-5 requests sometimes.
but ever since switching to the top gg package, i've only had 1 duplicate and it's just been a duplicate, not like 3-4+ requests.
are you possibly using some sort of proxy between it, maybe that's sending duplicates through it
because this issue here is so rare that only one user seems to have encountered it
melmsie was the one to experience it
nevermind
that's an older one lol
well on my old system, I wasn't using express directly, it was a routes api plugin built in the framework I'm using for my bot. On the new system, I am just using the ready event basically
Otherwise, not sure what the issue might be
And you're saying it never happened when using your old system when using express directly?
Have you changed anything else apart from the system such as already said a proxy?
that could possibly cause double requests to somehow generate
what's odd is it, I've kept logs of my votes since last year 6/2020 the first ever duplicate was 3/18/21
was that before or after the new vote system you have implemented?
Because the only thing that might cause double vote requests are you not acknowledging requests on your webhook
one day after the announcement for the re-write
such as a random 5xx error happening from a proxy for example
But are you using some sort of proxy like cloudflare or no?
such as a ddos protection etc
Nah bad idea, wouldn't suggest
but I'd suggest using some sort of app on cloudflare that logs traffic to proxy-based stuff
to see if either top.gg is sending double votes or your webhook receiving double votes through the proxy
but I was using this same system since last year with no issues
lol
I showed this earlier when I was getting duplicates
yeah I know, still could be caused by something else if you're saying that you're acknowledging requests
because the only thing that can cause these double votes is retrial stuff like timing out or a 5xx
I'd suggest enabling an app on cloudflare to log incoming traffic through the cloudflare network and check them occasionally
[02/Apr/2021:19:48:04 +0000] "POST /api/votes/topgg HTTP/1.1" 200 24 "-" "Top.gg Webhook/1.0.0"
[02/Apr/2021:19:48:04 +0000] "POST /api/votes/topgg HTTP/1.1" 200 24 "-" "Top.gg Webhook/1.0.0"
[02/Apr/2021:19:48:06 +0000] "POST /api/votes/topgg HTTP/1.1" 200 24 "-" "Top.gg Webhook/1.0.0"
But these are your logs behind the proxy, I'm referring to cloudflare's end
ok
because requests go through cloudflare first and if cloudflare isn't able to transfer that request to your webserver, it responds to the webhook with a 5xx
causing retrial, thus possible double webhooks
Enable some sort of logging app on cloudflare, check the traffic for a few weeks or so and check it specifically if you've gotten another double vote
This should tell you if that's top.gg's fault, actually sending double votes to your webhook
or some sort of issue between cloudflare and your webhook causing timeouts or 5xx codes, thus retrials
Or if you're actually comfortable with that, letting requests go to the ip directly rather than cloudflare
you think that could resolve the issue?
Well might not resolve, but seeing where the issue might originate from
but you're saying the nginx logs wouldn't show this 5xx you're talking about?
only top gg would get that?
also, you guys have no way to keep your logs? based on my webhook url or something?
Because Cloudflare is the one to respond with a 5xx, not your webserver
Not sure if there are
top.gg probably does have logs about activity and errors, but not sure
which one?
any will do probably
did you mean this is a bad idea to use the IP as teh webhook URL?
I mean you're essentially exposing your servers ip unless you don't really mind
;start
dblbotcommands
Hey! Bots aren't given permissions to send responses in this channel. Please use #commands to run commands.
Can anyone tell me how to start?
dblwrongserver too
Hey! We think you have our server mistaken. We do not provide support, help, or advice for any bot. You need to click on the "Discord" button on the bot's page of the bot you need support for, not the "Join Discord" button at the top of our website. If there isn't a button that says Support Server, the server invite is invalid or you were banned from the bot's support server, then we can't help you. Sorry :(
@next pendant logflare might help with it
ok
This will for sure help to find the issue
just use that for a bit to see if you're getting double requests
Easily access your Cloudflare, Vercel & Elixir logs in a centralized web-based log management solution.
Is it possible for the webhook to be sent to a different port? because no matter what way of hosting I use, I have problems using port 80
English
of course
you'll have to define the port in the url though
k
My bot will save my nation
so like http://url.com:800/webhook ?
Tnx
yes
just to make sure
top.gg currently requires you to reply with a 200
200 specifically?
?
I'm using the top gg package right now
v3.1.2
I've only had 1 duplicate in over 100 votes
yes
The js sdk responds with 204 apparently
Can't confirm
I respond with 200 so hell yeah
yeah it does
its a 204
on the stk package
even on my routes I responded with 200 and still has duplicate alerts
not sure anymore lol
the webhooks don't seem to be working after i upgraded to dj13 and node 16
does that have any effect?
if i run it on the same code but node js 14 it works
^
yes but they are 2 different projects and listening to different ports
And you adjusted the port on topgg, pressed save and then test?
Thereโs a webhook tester around the web.
Try to send a webhook to your endpoint using anything else than topgg.
If that doesnโt work as well, the issue is on your side.
I mean I dunno your environment but if you host that service on a server you may have added firewall rules for the node v14 process in the past to pass your firewall.
If so did you repeat that for the new node v16 process/executable as well?
yup same code same steps
yea ill try that
Again give it a try with logflare or using your actual IP for the webhook, I still think it has something to do with between cloudflare and your webserver
Cloudflare can think top.gg is a bot and restrict access with default pagerules.
You'll really want to configure cloudflare for an api if you are using a webhook behind it.
@smoky swift
where can i get the api token?
ok thank you
np
top.gg does not use cloudflare's ip to make requests to webhooks.
oh?
any errors?
yeah "help me" doesn't describe the issue you're facing
#-- Description ----------
A short 1-2 sentence description of the issue
#-- Date ----------
DD/MM/YYYY (the date the issue was seen on)
#-- Steps to Reproduce ----------
(A list of steps with Request/Response copies for each step)
1.) Perform a step with a given purpose
2.) Do next step to produce outcome
#-- Expected Result ----------
(A short 1-2 sentence description of the result expected)
#-- Actual Result ----------
(A short 1-2 sentence description of the result that occurred and why that is incorrect)
#-- Relevant Links ----------
(Links to any relevant messages, articles, outcomes or results with titles)
Fill that out and send it here ๐ Iโm sure you will get a better response from their team if you do
YES PLEASE
Dont mind
YIS
Lol
Hey. Some votes are currently sent twice, is this a known issue?
What is the event with someone vote my bot (i am using event handler)
There isn't any
You have to set up webhooks
Can you tell me the steps ?
Documentation for @top-gg/sdk
@smoky marten In index.js right ?
in any file you want
@smoky marten So
const express = require('express')
const { Webhook } = require(`@top-gg/sdk`)
const app = express()
const wh = new Webhook('webhookauth123')
app.post('/dblwebhook', wh.listener(vote => {
// vote is your vote object e.g
console.log(vote.user) // => 321714991050784770
}))
app.listen(80)
I didn't setup webhook before
So what should i change here
mostly nothing
Now go to https://top.gg/bot/YOUR_BOT_ID_HERE/webhooks
scroll down and fill the Webhook URL to http://YOUR_IP_ADDRESS:80/dblwebhook (If you're running the code on your pc) or else the URL
and Authorization to webhookauth123 (The value you put in new Webhook()
Click Save > Click test
It should log who voted on your pc
(For test I guess it's Xet)
My bot is on heroku
Thep put the heroku link/dblwebhook
like
https://appname.herokuapp.com/dblwebhook
Don't forget the /dblwebhook
oh okay
Hi all
Bye all
How ?
From the dino tab
I can't find it
oh yea
I found it
@smoky marten
2021-08-24T10:59:24.995450+00:00 app[web.1]: npm ERR! missing script: start
2021-08-24T10:59:25.004845+00:00 app[web.1]:
2021-08-24T10:59:25.005440+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-08-24T10:59:25.005754+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-24T10_59_24_996Z-debug.log
show your package.json
Put
"start": "node ."
under scripts
wow
@smoky marten
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
change the code to app.listen(process.env.PORT || 80)
@smoky marten Same thing
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Show code
const express = require('express')
const { Webhook } = require(`@top-gg/sdk`)
const app = express()
const wh = new Webhook('webhookauth123')
app.post('/dblwebhook', wh.listener(vote => {
// vote is your vote object e.g
vote.user.send(` Thanks for supporting our bot!`)
console.log(vote.user) // => 321714991050784770
}))
app.listen(process.env.PORT || 80)
process.env.PORT || 80
just use 5000 instead
He's on heroku
The web process won't run if he doesn't use the port they gave him
also
vote.user.send() won't work
because vote.user is just the user ID
You have to fetch the user first
Try this
//const client = Your Discord.js Client
const express = require('express')
const { Webhook } = require(`@top-gg/sdk`)
const app = express()
const wh = new Webhook('webhookauth123')
app.post('/dblwebhook', wh.listener(vote => {
console.log(vote.user)
client.users.fetch(vote.user).then(u => {
u.send("Thanks for voting")
}).catch(console.error)
}))
app.listen(process.env.PORT)โ
oh okay
javascript
Try this
const fetch = require("node-fetch")
const name = "Dyno" //The one to search
const token = "YOUR_TOPGG_TOKEN"
fetch(`https://top.gg/api/bots?limit=10&search=${name}`, {
method: "GET",
headers: {
"authorization": token,
"content-type": "text/json"
}
}).then(r => r.json()).then(bots => {
//Bots is the list of bots
console.log(bots[0])
}).catch(console.error)
@fierce dove ^^^^
thanks
app.post('/vote', webhook.listener(vote => { //ending url
console.log("User with id - " + vote.user + " Voted!")
let value = JSON.stringify({
embeds: [
{
title: "New Vote!!",
description: `<@${vote.user}> (${vote.user.tag}) Just Voted For \`The Real\`!!`,
author:``,
footer: `You can vote again after 12 hours`,
color: "2461431" //Hex -> Decimal
}
]
})
this is correct or not plz tell me
<@${vote.user}> (${vote.user.tag})
for this tag #pukhraj0581
you miht wanna cache the userid
oh
so that if there not in any mutuals you still get the tag
so what i need to do for topgg sdk
user is the id not actually User
dbl.webhook.on('vote', async (vote) => {
let testserver = client.channels.cache.get('828148248131665941');
let oh = client.channels.cache.get('820851306595352597');
console.log(vote)
const userID = vote.user;
const votedfor = vote.guild ? `oh 2.0` : `<@${vote.bot}>` ;
let type = vote.guild ? `servers` : `bot`;
const id = vote.bot || vote.guild ;
const user = await client.users.fetch(`${userID}`, { cache: true });
const userTag = `${user.username}#${user.discriminator}`;
const embed = new Discord.MessageEmbed()
.setColor('#FFE082')
.setTitle('New UpVote')
.setDescription( `<@${userID}> Just Voted For ${votedfor}`)
.addField(`Username`, `\`\`\` ${userTag} \`\`\``)
.addField(`Website`, `[Top.gg](https://top.gg/${type}/${id}/vote)`)
// If the channel to send messages in exists, we send a message in it with the ID of the user who votes
if(testserver) await testserver.send(embed)
if(oh) await oh.send(embed)
});
something like that
thats what i do
for vote logging
i can send my full code for my vote tracker if u want
That's essentially spoonfeeding what you're doing
That's not understanding
that's plain spoonfeeding
You can explain them how it works, but not simply provide code that causes them to not learn anything from it
well some proplr learn better from seeing what you are talking about then just hearing it
having a visual example
but yea i see where you are coming from sorry
@smoky marten
2021-08-24T16:58:19.988473+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=POST path="/dblwebhook" host=my-botjs.herokuapp.com request_id=dd9e878c-e121-4dbf-8d50-91f5ede9aae7 fwd="159.203.105.187" dyno= connect= service= status=503 bytes= protocol=https
this isnt karuta support
i tried contacting them but they lead me here
How the fuck
they said to contact the developers of the bot
then i went to top.gg
then press the Developers there
then lead me here
but i can ask here cant i?
i mean theres no problem at all about asking about an issue
am i right?
You always can. Just don't expect anyone to answer you as we don't know shit about that bot
Plus wrong channel as it's not related to Top.gg API at all
sorry my bad
i've been contacting supports for a whole day now
@nova cedar
@magic star
? you getting blacklisted from karuta has nothing to do with top.gg, nor did anyone direct you here
i was just trying to find a way to contact any support out there
is there any way that i can play karuta again?
@nova cedar
even if it means starting from scratch again
stop using this discord as a means to contact them, it has nothing to do with karuta
okie sorry for the trouble
If you have any inquiries about Karuta, visit their support and not bother their staff through this server
dblwrongserver
Hey! We think you have our server mistaken. We do not provide support, help, or advice for any bot. You need to click on the "Discord" button on the bot's page of the bot you need support for, not the "Join Discord" button at the top of our website. If there isn't a button that says Support Server, the server invite is invalid or you were banned from the bot's support server, then we can't help you. Sorry :(
The router will enqueue requests for 75 seconds while waiting for starting processes to reach an โupโ state. If after 75 seconds, no web dynos have reached an โupโ state, the router logs H20 and serves a standard error page.
Your app was put to sleep for no request for a long time and when it was waking up It took more than 75 seconds. To prevent this keep pinging your application using uptimerobot or something.
Hey my bots server count isnt updating even while im posting its statistics, why is that
in earlier versions of the Python lib of Top.gg api (v0.4.0), I was able to listen to the same webhook port from different applications/bots. Now I get error while attempting to bind on address ('0.0.0.0', 5000): address already in use. How do I get around this?
You can't re-use a port while it's occupied
of course
but isn't it possible to listen to it by multiple applications? @sullen nymph
Negative
Heyy, so how can my bot Dm the person who voted for my bot? Basically - person votes for bot, they recieve Dm from bot saying thanks for voting and here's a reward.
You'll want to use webhooks for that.
https://docs.top.gg/resources/webhooks/
Kk tysm
Ping me if you need more help.
Kk
@jaunty plank so I'm new to express / js how can I have embeds in it and make the bot Dm the person who voted. I used some tutorials but it only was like a channel log
At that point it's just using your bots client.
Fetch the user, and send a message to them like normal
I am getting 403 from https://top.gg/api/bots/193431106647883776/check?userId=90076279646212096 with a proper header (my token is valid). why could this be happening?
What's your bot id
its in the url
topgg python library debug log: topgg.http: GET https://top.gg/api/bots/193431106647883776/check with None has returned 403
that's not your bot id
wait
its true
its not my bot id
its 212783784163016704
why is it using a different id
because you have provided it that id
193431106647883776 is not a bot on top.gg, if thats even a bot
does the 403 response explain this? I didn't fully check
yes it does
like in its content
193431106647883776 is not a valid id, at least none on top.gg
your bot id is 212783784163016704 according to the logs
yes
I just have a second bot, and was trying to pull votes using my main bot's top.gg credentials
I understand the issue now, thank you
@rain heart please, review my bot quickly.
dblupto @stuck plume
@stuck plume
The average up-to-date approval times are stated [here](#support message).
This does not mean it will take the same amount of time someone else's bot took to be reviewed and does not mean your bot is guaranteed to be reviewed within that time frame.
There is no exact time for how long bot approval will take.
There is a queue and you're not first, nor are you last.
So that, I am requesting you specially.
No, wait for your to to be reviewed
Thanks!
@rain heart hey so I took of proxy off cloudflare, still had a duplicate today lol
Lol
It has to be something in the new webhooks
how do I go an entire year without a duplicate
and suddenly duplicates since then
Yeah try that
i tried to post my bot server count and i got an error
Unauthorized: Unauthorized (status code: 401)
This error
no u need to set it up in ur code
@golden adder
dont ping mods for this lol
I am not using java
wat are u suing
๐ญ๐ญ๐ญ
i put my bot token instead of top.gg token is that truth or ?
where did u put ur bot token? lol
instead of top.gg token
so what is top.gg token how can i get it ?
thanks bro 
dont kiss him lol
its the number of shards your bot uses, if you dont know what a shard is you dont need to use it.
Accept my bot
you must wait in queue
yeah i have no idea what is the shard :) thank you any way
So...After getting the token...?
copy it and use it for ur project
i consoled bots, it said undefined, when I consoled bots, i checked the console but no bot name called dyno
idk what is wrong, sometimes the votes keep coming and then suddenly stop, how many ever times i click on test the vote does not count
read the apidocs about retrial: https://docs.top.gg
I did not understand, this doesn't seem to be the issue. Like for arround 6-7 hours the vote counting works properly then suddenly stops and automatically resumes after 12 hours or so
it is very likely something with your webhook if you receive votes inconsistenly
Hmmmmm but I'm using the exact same code as mentioned on the docs
so im trying to test my webhook which isnt really working, im making it print the data but nothings happening, im hosting my bot on a vps.
Why did i get pinged
because there was a raid
also im using the python-sdk
Make sure to have specified port open
Make sure specified port is forwarded to your device if hosted locally
Make sure webhook is running
Got the vote log running for js but how do i give them reaards now?
I allowed port 5000 with ufw
Webhook is running
Saved url and password in bots page
Anything I'm missing?
get the user id from the user vote
use in your rewarding system (such ad updating an entry in your database)
Thanks btw
const { Webhook } = require(`@top-gg/sdk`)
const app = express()
const wh = new Webhook('astrexauth')
app.post('/dblwebhook', wh.listener(vote => {
// vote is your vote object e.g
console.log(vote.user) // => 321714991050784770
}))
app.listen(process.env.PORT || 80)```
This isnt working im using heroku btw
https://www.npmjs.com/package/top.gg use this module
@abstract yew help me
thats the unofficial module
bot.topgg_webhook = topgg.WebhookManager(bot).dbl_webhook("/dblwebhook", "password")
bot.topgg_webhook.run(5000)
someone help?
TOKEN = os.getenv("token")
dbl_token = os.getenv("topggtoken")
client = commands.Bot(command_prefix=commands.when_mentioned_or('?'), intents=discord.Intents.all(), case_insensitive=True, description='Best moderation bot ever!')
client.topggpy = topgg.DBLClient(client, dbl_token)
client.topgg_webhook = topgg.WebhookManager(client).dbl_webhook("/dblwebhook", "password")
client.topgg_webhook.run(5000)
client.remove_command("help")
```These are the variables
can someone help me
i am using discord.py for my bots
from discord.ext import commands
import os
import dbl
#using webhooks
from discord import Webhook, AsyncWebhookAdapter
import aiohttp
#For Intilizations
dbl_token = os.getenv("dbltoken")
dbl_webhook = os.getenv("dbl_webhook")
dbl_auth = os.getenv('dbl_auth')
url_for_dbl_vote = os.getenv('dbl_webhook_for_vote')
class TopGG(commands.Cog):
"""
This example uses dblpy's webhook system.
In order to run the webhook, at least webhook_port must be specified (number between 1024 and 49151).
"""
def __init__(self, bot):
self.bot = bot
self.token = dbl_token # set this to your DBL token
self.dblpy = dbl.DBLClient(self.bot, self.token, webhook_path=dbl_webhook, webhook_auth=dbl_auth, webhook_port=5000)
@commands.Cog.listener()
async def on_dbl_vote(self, data):
"""An event that is called whenever someone votes for the bot on top.gg."""
print("Received an upvote:", "\n", data, sep="")
async def dbl_vote(data):
async with aiohttp.ClientSession() as session:
webhook = Webhook.from_url(url_for_dbl_vote, adapter=AsyncWebhookAdapter(session))
await webhook.send(data, username=f'{self.bot.user.name}',avatar_url = self.bot.user.avatar_url)
await dbl_vote(data)
@commands.Cog.listener()
async def on_dbl_test(self, data):
"""An event that is called whenever someone tests the webhook system for your bot on top.gg."""
print("Received a test upvote:", "\n", data, sep="")
async def dbl_vote(data):
async with aiohttp.ClientSession() as session:
webhook = Webhook.from_url(url_for_dbl_vote, adapter=AsyncWebhookAdapter(session))
await webhook.send(data, username=f'{self.bot.user.name}',avatar_url = self.bot.user.avatar_url)
await dbl_vote(data)
def setup(bot):
bot.add_cog(TopGG(bot))
this is my code
but it's not working
dbl_vote and dbl_test doesn't work
btw i am using the dbl module since i am coding in python
Use topggpy
Wtf
Just have the dbl_vote function in the class and call it
Why recreate it
What URL did you set on Top.gg and do your Auth keys match?
Help with what
it was frm the top.gg bot edit webhook sections
oh yea i tried that but then i thought i did it wrongly so i
resorted to this
so like this right?:
import discord
from discord.ext import commands, tasks
import os
import dbl
import json
#using webhooks
from discord import Webhook, AsyncWebhookAdapter
import aiohttp
#For Intilizations
dbl_token = os.getenv("dbltoken")
dbl_webhook = os.getenv("dbl_webhook")
dbl_auth = os.getenv('dbl_auth')
#To Inform Developer that the bot has been voted
url_for_dbl_vote = os.getenv('dbl_webhook_for_vote')
class TopGG(commands.Cog):
"""
This example uses dblpy's webhook system.
In order to run the webhook, at least webhook_port must be specified (number between 1024 and 49151).
"""
def __init__(self, bot):
self.bot = bot
self.token = dbl_token # set this to your DBL token
self.dblpy = dbl.DBLClient(self.bot, self.token, webhook_path=dbl_webhook, webhook_auth=dbl_auth, webhook_port=5000)
async def dbl_vote(data,self):
async with aiohttp.ClientSession() as session:
webhook = Webhook.from_url(url_for_dbl_vote, adapter=AsyncWebhookAdapter(session))
await webhook.send(data, username=f'{self.bot.user.name}',avatar_url = self.bot.user.avatar_url)
@commands.Cog.listener()
async def on_dbl_vote(self, data):
"""An event that is called whenever someone votes for the bot on top.gg."""
print("Received an upvote:", "\n", data, sep="")
await self.dbl_vote(data)
@commands.Cog.listener()
async def on_dbl_test(self, data):
"""An event that is called whenever someone tests the webhook system for your bot on top.gg."""
print("Received a test upvote:", "\n", data, sep="")
await self.dbl_vote(data)
def setup(bot):
bot.add_cog(TopGG(bot))
the variable
url_for_dbl_vote is a webhook created in a discord channel
dbl_token,dbl_webhook,dbl_auth are from https://top.gg/bot/:my_bot_id:/webhooks
Can you DM me the URL you have set?
Anyone?
test it using a request client like postman or reqbin
Hi can anyone help me to add embeds, say and add reaction on bot created in discord bot clint
quick question, where do I get a dbl token
dblapi
@restive otter
This channel is ONLY for the Top.gg API!
This channel is only for: suggestions/help/bugs to do with official API libraries and API docs found at: https://docs.top.gg
Any Off-Topic conversation may get deleted and muted.
If you need help with development about your bot or development in general, feel free to use #development.
By going to your bot page settings -> webhooks
Oki thx
I didnt really get what you mean
test your webhook using postman or reqbin
alright
Does not seem to work
how do i add server count?
dblservercount
servercount To have your bot's server count displayed on Top.gg, please read the documentation on server/shard posting.
Then your code is faulty or you have not portforwarded / added the port to the firewall
What would the protocol be? Tcp or something else?
tcp
Alright
p
Nvm it's data["user"]
Was supposed to work on that PR further, fuck
prefix is dbl, you only have access to the commands: bots, owner, prefix, botinfo
const Topgg = require('@top-gg/sdk')
const webhook = new Topgg.Webhook('E_E')
app.post('/dblwebhook', webhook.listener(async(vote) => {
hook.send(`<@${vote.user}> , **has voted for ${client.user.username}!**๐`)
}))
app.listen(4069, function() {
console.log('Listening to port ' + port)
})
``` This supposed to work right?
i am a bit dumb, can someone help me out with setting up the server count feature
giv more info
Like which language you're using, which package
i am jusing javascript.
discord.js library
@lament talon ```js
const { AutoPoster } = require('topgg-autoposter')
AutoPoster('topgg-token', client)
.on('posted', () => {
console.log('Posted stats to Top.gg!')
})
thank you so much!
np
hey, can some tell me what that mean ?
On the edit page you can see another input for Authorization. Here you can provide a shared secret that you can check for on the server side.
To verify requests are coming from us, look for the value in the Authorization header and make sure it is the same as the value you provided in the form.
this one
oh okay thanks
thaanks
i put this on webhooks url
https://myapps.herokuapp.com/dblwebhook
at=error code=H14 desc="No web processes running" method=POST path="/dblwebhook" host=myapps.herokuapp.com request_id=48521e2c-53a2-45d2-94fb-ea2458d800ee fwd="159.203.103.184" dyno= connect= service= status=503 bytes= protocol=https
any solution?
replace my apps
With your heroku url
i have do that, and got the error
Oh
what?
how do i post server count to my bot's topgg?
i read the docs but i dont reallt know how the code would look like
const Topgg = require('@top-gg/sdk')
const api = new Topgg.Api('topgg_token')
setInterval(async() => {
api.postStats({
serverCount: client.guilds.cache.size,
})
}, 60000 * 60 * 24);
wow thank you
but somebody could just set it to like 9999999 ?
i imagine that it would be against the rules tho
You are not running a web process. I guess you're running a worker process. Stop the worker and use the web. It should start working
@sacred shell
suuuuure
ty

i already banned them but their message didnt get bonked๐
how to change that?
i change into npm start? that's will be ok?
i try to use web but still same error
Hey! Bots aren't given permissions to send responses in this channel. Please use #commands to run commands.
In the dino section
*dyno / dino nit sure
Like this
yup but still same error
still h14 ?
@uncut kelp
This error is thrown when a process in your web dyno accepts a connection but then closes the socket without writing anything to it.
From official docs https://devcenter.heroku.com/articles/error-codes#h14-no-web-dynos-running
this is right?
app.post('/dblwebhook', webhook.middleware(), async (req, res) => {
}
app.listen(process.env.PORT || 80)
just app.listen(process.env.PORT) is enough
And this error has nothing to do with your code
It's an error caused because heroku web dino isn't running properly
Also webhook.middleware() is deprecated use webhook.listener()
And you didn't close a )
ok i'll try later, thanks btw
use /dblwebhook or /webhook ?
Up to you
TypeError: webhook.listener is not a function
app.post('/webhook', webhook.listener(), async (req, res) => {
console.log(req.vote.user)
})
app.listen(process.env.PORT)
bruh
see the first code in the pins @uncut kelp
Top.gg Node SDK has been updated
In v3.1.0
The Webhook.middleware() still works, however there's a new method to work with webhooks,
using the Webhook.listener() method
Here's an example
const express = require('express')
const { Webhook } = require('@top-gg/sdk')
const wh = new Webhook('Top.gg webhook password')
const app = express()
app.post('/webhook', wh.listener((vote) => {
console.log(vote.user) // 172075838806818817
}))
app.listen(80)โ
As you can see Webhook#listener() takes a function that is ran whenever a valid vote is passed
You can also error in this function in order to have the webhook re-queue the payload by passing back a 500 (via the retrial flow https://docs.top.gg/resources/webhooks/#retrial)
Docs for the new listener() method:
no
you have to put it in package.json
yes works! thanks!
OwO
i got this message
at=info method=POST path="/webhook"
and userid
i think thats work right?
show full error
Does it console.log anything ?
thanks!
i have another question. when i'm use web, i got this and bot offline
Use uptimerobot
And set the time to 10 minutes
that will always restart or just pinging?
It'll never sleep if it's receiving a ping every 30 minutes
We're being cautious and doing it every 10 minutes.
Add this to your code
app.all("/", (req, res) => {
res.send(200).json({ status: 200 })
})
Then
wherever you have put ^^^^^ this code
add that code
okk thanks

thats uptimerobot.com right?
yes
F u c k
Use this code sorry
app.all("/", (req, res) => {
res.status(200).json({ status: 200 })
})โ
ok2 i'll try
btw how long u have been running the bot on heroku?
this log always show for a few minutes, it's normal?
for votes can u use a discord webhook
Not directly
you need some sort of bridge that converts the requests from top.gg for a discord webhook
because top.gg does not send a webhook as data
not data in form of a webhook per se
if I vote now, will the vote reset after 24 hours?
like are the counted votes permanent or do they reset?
resets every 12 hours
aka every vote cycle
if they have voted within the last 12 hours, shows 1
if they haven't, shows 0
thank you
It's not error
It shows every time a request is sent to your server either it's a vote or a uptimerobot ping
app.all("/", (req, res) => {
res.status(200).json({ status: 200 })
})
@violet spire can you help me
How
How can I help you
Mmmm wait
can someone help wit applicaiton bot?
@restive otter tell prob
idk hot to work it
wrong server
oh ok
i want to see my bot in how many server@smoky marten
@violet spire @violet spire
Please stop pinging users randomly
You were already told to read the documentation on how to use the API and post your server count
Where is documentation
I have sent you the link twice now
Go to the "Libraries" section and select your language
I read
It will tell you how to use it if you read it
My lang is node.js
@jovial kiln which one i use webhbook
How i get top.gg token
Or its bot token
@jovial kiln bro its on which website
Hi
Ok
const DBL = require('top.gg');
const dbl = new DBL(my dbl token, {webhookPort: 2025, webhookAuth: 'topgg123' });
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!`);
});```
In console when the bot runs then it shows - Webhook running at http://0.0.0.0:2025/dblwebhook/
but when I do test vote then it does not give any error and does not work
can anyone help ?
Now its fixed
Clear cache and try again
Depends on your browser, CTRL + F5 or SHIFT + F5
If that doesnโt help, navigate through your browser settings, and delete the cache for topgg
Well then itโs your mobile browser settings
Named website data on iOS
Probably similar on Baddroid
How do i obtain my api key on the the theme? can't seem to find it.
Hello. I have question. In the java api something exist called: api.setStats(shardId, shardCount, serverCount); but how can i post how many servers my bot has and many shards my bot have?
I dont test this example but i dont want to post stats for just one shard
why it does not work ?
Now I'm gonna read your mind read your code fix firewall check if the port is correct and then tell you what's wrong
also check if nginx is configured correctly
where I find my port
in your code
you're already putting 2039 without knowing what port is ?
const Topgg = require('@top-gg/sdk')
const fetch = require('node-fetch')
const app = express()
const webhook = new Topgg.Webhook('topggauth123')
app.post('/vote', webhook.listener(vote => {
console.log("User with id - * + vote.user + * Voted !")
let value = JSON.stringify({
embeds: [
{
title: "Top.gg - Votes",
description: ` <@${vote.user}> a votรฉ pour Eclix, merci ร lui !
[Vote toi aussi !](https://top.gg/bot/870653313559957504/vote)`,
color: "BLUE"
}
]
})
fetch("my webhook", {
method: 'POST',
headers: {
'Content-type': 'application/json',
},
body: value
}).catch(e => console.log('Error occured while posting webhook : ' + e))
}))
app.listen(2039)
console.log("Your app is ready to log vote :D")```
hi how can i set that the user have to vote to access a particular command do we have some docs like structure ?
@jovial kiln where can i get the section of it in the docs
What lang are you using
djs
I need need help setting up webhooks inside of My bot
f you need help setting up webhooks inside of your bot don't be afraid to ask in our discord server in the #topgg-api channel.
Has your bot been approved?
nope
You can't set up webhooks until your bot is approved
Who approves the bots?
Bot reviewers
Your one of them
Yes all Moderators and CMs are also bot reviewers.
lol are any of you all avalible ?
I am available what's up @west narwhal
Dbl zendesk how your bot gets reviewed
How to use Top.gg
How your bot gets reviewed
staff only
One message removed from a suspended account.
oH
One message removed from a suspended account.
One message removed from a suspended account.
Xd
dblapi
This channel is ONLY for the Top.gg API!
This channel is only for: suggestions/help/bugs to do with official API libraries and API docs found at: https://docs.top.gg
Any Off-Topic conversation may get deleted and muted.
If you need help with development about your bot or development in general, feel free to use #development.
One message removed from a suspended account.
One message removed from a suspended account.
I know cog_unload can't be a coroutine... so how do I close my connection with await topggpy.close() in def cog_unload(self): since i can't do await def cog_unload(self):
Also, is there a cog_reload form of a function?
im only asking because i am getting this error: Unclosed client session
and i was told its because i need to close my connection when i unload the cog
asyncio.run(topggpy.close())
Or get an event loop with asyncio and run_until_complete
It's unimportant, the issue is probably somewhere else
Well, "issue"
@jolly hornet
how to check if user has voted in last 12 hrs
I have made a vote tracker event in my bot which is hosted on heroku. So the problem comes that my bot goes on idling if there is no vote for 30min
Any solutions ?
You will have to store the data when the user votes and then use it to see whether the user voted in last 12hrs or not
ping your bot with uptimerobot
I did but then whenver the uptimerobot pings then my bot sends server count on top.gg page many times
asyncio.run should be used as an entry point, so https://docs.python.org/3/library/asyncio-task.html#creating-tasks
Does it work with heroku?
I mean how do u setup the webhook
I used top.gg package
and did it
And for database you can use mongoDB or anything else you like
hm
FYI it's not official
how can i put server count at my bot page ?
dblservercount
To have your bot's server count displayed on Top.gg, please read the documentation on server/shard posting.
i didn't understand with that thing that why i came here
Language?
bot language ?
programming language
Js
is there a way to get reviews yet through the api
a way to get a list of reviews and a review by id or something
by discord user id for example
yes
wait lemme get the endpoint because its not documented (ig)
https://top.gg/api/client/entities/:botid/reviews?page=1
how do i make when someone votes it sends an ty message in an spesific channel?
ohh okayy
is there a way I can do a test vote for a bot?
click test vote on your bots edit page in the webhook section
thank you
is there any way to stop the webhook from running? because everytime i reload my code it gives me error while attempting to bind on address
Exit the CLI your webhook code being fired in
dblauctions
What are auctions? What is #bids for? Click here to find out and click here to apply for access.
@jovial kiln wdym-
https://docs.top.gg/ for how to make a webhook
Because that is how our API works
@jovial kiln I think that wasn't why they asked in support
the server said widgets need to be enabled which is an issue atm iirc
Why can't I edit the bot page on top.gg?Every time I log in and enter the bot it says you must log in
Is aplication id is client id?
yes
But why i cant add bot to top.gg?
Is sth wrong or i havenโt done sth
How do I make it so it shows how many server my bot is In
btw why my server count not update?
i put this code
setInterval(async() => {
api.postStats({
serverCount: client.guilds.cache.size,
})
}, 60000 * 60 * 24);
i dont know how to get webhook url
I have my cog for the bot set up like follows:
class TopGG(commands.Cog):
"""Handles interactions with the top.gg API"""
def __init__(self, bot):
self.bot = bot
self.dblpy = dbl.DBLClient(
self.bot,
os.getenv("dblwebhook_key"),
webhook_auth=os.getenv("dblwebhook_auth"),
webhook_port=5000,
autopost=os.getenv("environment") == "main",
)
But the server count is not being updated - is autopost not working, or have I set something up incorrectly?
Trying to post manually I get the following error:
Traceback (most recent call last):
File "/bot/modules/cogs/forbidden.py", line 347, in evaluate
ret = await func()
File "<string>", line 2, in func
File "/usr/local/lib/python3.9/dist-packages/dbl/client.py", line 160, in post_guild_count
await self.http.post_guild_count(guild_count, shard_count, shard_id)
File "/usr/local/lib/python3.9/dist-packages/dbl/http.py", line 168, in post_guild_count
await self.request('POST', '/bots/stats', json=payload)
File "/usr/local/lib/python3.9/dist-packages/dbl/http.py", line 93, in request
async with rate_limiter: # this works but doesn't 'save' over restart.
File "<string>", line 6, in __aenter__
TypeError: object Lock can't be used in 'await' expression
how do I authorize myself?
I'm using node.js and node fetch
and I have my token but idk what to do here
As the docs describe you have to specify the header called Authorization as option of node-fetch
headers: { "Authorization": "your-topgg-token" }
can someone help me out understanding this bit?
I have a feeling that my lib is ratelimiting this incorrectly
right now I've interpreted it as sending 60 requests to ANYTHING under /bots to be a ratelimit
however the wildcard suggests to me that it may be per resource under /bots
so like
60 requests to /bots/ + random_user_id would be ratelimited? (how I'm currently handling it)
60 requests to /bots/ + singe_user_id would be ratelimited (how I think it's meant to be handled)
Those 60 requests/min apply to all resources of /bots, yes, no matter it's /bots/stats /bots/whatever
Different (child) ressource can have tighter restrictions but not necessary have them
Requesting 30x /bots/stats and 31x /bots/whatever will get your rate limited
I see, thank you
Requesting 61x /bots/stats as well
and so on
All requests within the /bots resource will be added sum up
No matter it's a sub (child) resource or not
So 60 requests to /bots/1 will be fine, but sending a request to /bots/2 after that would ratelimit?
If /bots/stats would have a ratelimt of 10/min and you would be rate limited after calling 11x /bots/stats you can still use other resources of /bots but not /bots/stats any longer
Yes requesting 60x /bots/1 would be okay, 61x = rate limit
Requesting 30x /bots/1 and 30x /bots/2 would be okay, too but requesting any resource within /bots another 1x would cause a rate limit
hey i am having some difficulty in using the top.gg api
so i am trying to use the individual user vote to give them access to some features
but i am not aware on how to use the api
can someone pelase help me out
tyvm
Are you using a library or making the requests yourself?
If you're making the requests yourself, take a look at https://docs.top.gg/api/bot/#individual-user-vote
doesnt work
If you terminate the webserver's process it's (guess) terminated
The app will no longer listen to the port
hmm but even after a complete restart of my pc it still gives the error when i launch it for the first time
It will be a free available port again, may takes asecond but it will be free again
Which port do u use?
not even aware of the error anymore, can u send the error, pls?
5000
OSError: [Errno 10048] error while attempting to bind on address ('0.0.0.0', 5000): only one usage of each socket address (protocol/network address/port) is normally permitted
Do you manually start the webserver or is the process automated?
it attempts to run it when the bot starts
btw it still works correct i just dont like to see errors
But does this process (bot) starts automatically if the system boots up?
i am thinking of using an API as that would be easier
no because this is the dev branch that i only use when adding new features
but i am confused about one thing, so i would like to give access to a user to a certain set if commands. So would i need to have backend for it?
And no other process is using port 5000? Did you try another port on the startup?
ill try but i dont think that port is used
btw do i have to use a webhook to get the on_vote event?
Send a GET to https://top.gg/api/bots/(YOUR_BOT_ID)/check?userId=(USER_ID)
if response.json["voted"] is true, they voted
if it isn't, they haven't voted
12 h
ok
i tried a different port and the same thing happens, once it runs it basically always runs
so i will simply add a command to run the webhook
Try to bind it to your system's IP address instead of 0.0.0.0
topgg.WebhookManager(self.client).dbl_webhook('ip/webhook', 'password')
hmm actually can't help u out with python, don't speak snakish 
But the webhook service will continuesly listen to incoming events, it's not something u wanna start via. a command
You wanna init it's process
(events = POST requests)
/webhook not ip/webhook
yeah i got that
i figured out the problem apparantly the __init__ function gets called twice on startup
alright
bruh what a server is that w 7 millions ppl ?
never saw bigger than 500 000
that is bot's server count
ok okand wich bot was that ?
dank memer
What should I add to Webhook URL ?
Read node.js's express.js documentation, they got examples on how to build one, and I your using smth else read how to make a webhook on that language
I asked smth else
Your endpoint topgg will send the requests to.
Probably your webhook (webserver) IP and port.
ok
this not working now?
That would be you instantiating it twice
So /shrug
im really not tho, ig its something with dpy
but i found a couple different solutions
Yea... But if you have more than one that I recommend doing this:
(https/http)(ip or your bots domain):(port if you have an IP)/(your webhooks name)
You mean route not webhook?
Oh yeah that's how they call it ๐
First of all, SSL isn't supported by topgg,
a valid URL always contain the protocol (aka. scheme),
the bot can't "have" a domain but your webserver can have one assigned as target,
there's no "webhooks name" - that's the path your webhook service (webserver) is listening to, it doesn't represent a physical path

Not needed tho
SSL is supported though
Looks like an issue on my end unable to verify the first certificate
nvm yeah an issue on my site
challenge accepted, Sir
Roger



thanks for giving me their profile picture