#topgg-api

1 messages · Page 179 of 1

restive otter
#

also please dont edit this message to put your ip in it

dapper pivot
#

HAHAH

#

okey

#

😂

restive otter
#

also also i dont know if you know but okay is spelled okay not, okey

dapper pivot
#

I'm from balkan, sorry. My english is not best.

#

my bot didn't sent message for vote, and in console there is no errors

wooden vale
#

Scratch that. Apparently sending 0 is an invalid number for that parameter. Although I'm not sharding yet so it's valid to me 😛 - Was mapping to 0 as my DTO was non-nullable. Making it nullable resolved it.

#

I would expect 0 to be valid for that request.

plucky lance
#

shard_count isn't required if you only send server_count

wooden vale
#

My guess is the shard_id: 0 is what caused the shard_count required bit

rain heart
#

you wont need to post the other stuff except server count if you're not sharding

wooden vale
#

Yes, as I said I updated my DTO to be nullable.
Which would then map

{
     "server_count": 5,
     "shards" : null,
     "shard_id": null,
     "shard_count": null
}

I was just saying I would expect 0 to be fine.

#

w.e the matter. Resolved

plucky lance
#

Just post

{
     "server_count": 5
}
#

There's no need to post the other fields

vivid dagger
#
dbl_token = os.environ['dbl_token']
client.topggpy = topgg.DBLClient(client, dbl_token, autopost=True)

@client.event
async def on_autopost_success():
    print(
        f"Posted server count ({client.topggpy.guild_count})"
    )

Getting this error:

Ignoring exception in auto post loop:
Traceback (most recent call last):
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/topgg/client.py", line 151, in _auto_post
    await self.post_guild_count(
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/topgg/client.py", line 212, in post_guild_count
    await self.http.post_guild_count(guild_count, shard_count, shard_id)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/topgg/http.py", line 192, in post_guild_count
    await self.request("POST", "/bots/stats", json=payload)
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/topgg/http.py", line 163, in request
    raise errors.HTTPException(resp, data)
topgg.errors.HTTPException: Bad Request (status code: 400)
rain heart
#

what library are you using?

vivid dagger
#

Python (topggpy 1.4.0)

vivid dagger
rain heart
#

cant help then

woeful orbit
#

it seems like i am receiving the webhook from a vote multiple times, anyone have this issue?

rain heart
#

are you responding to the webhooks correctly?

#

refer to "retrial" on the docs

vivid dagger
rain heart
#

the library should handle that itself normally

vivid dagger
#

I can't seem to figure out what I've done wrong though...

rain heart
#

refer to retrial on the docs if you're using a non top.gg library

vivid dagger
sullen nymph
#

It is, yes

#

There's 2.0.0a on the GitHub, however. It has a few drastic changes in its structure

vivid dagger
#

@rain heart @sullen nymph well I regenerated my Top.gg token DogmaShrug fixed the issue. Strange it wasn't giving me an authorization error though

sullen nymph
#

What the fuck

#

That's... what

#

How

#

Okay...?

rain heart
#

then you likely got an invalid token before since cache do be like that

sullen nymph
#

Why not 401 is what I'm curious about

#

Why 400 specifically

jaunty sable
#

I always receive 401 unauthorized when posting my bot's stats even though I use the right token

rain heart
#

Then you're not actually using the right one

#

Regenerate your token, refresh the page and copy it then

tidal idol
#

also make sure you are using your Top.gg token, and not your Discord Bot token

unique ruin
#

why this error is coming it was alright 1 hour ago

jaunty plank
unique ruin
#

oh ok

full mesa
#

I'm trying to regen my bot token, but pressing "Click here" does nothing

rain heart
#

refresh the page afterwards

tender elm
#

kinda think the api is broken... for some reason the auto poster isen't updating and my vote webhook is complet broken

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

tender elm
#

nope

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

tender elm
#

i lookt in docs. and i think it should all be set up since it worket before when i had other host but a got a new one. and i set the ip up and i use the app port in the webhook port aswel..

#

well i have had this problem since like 4 weeks back. :)

#

nvm fixed it.

#

thanks anyways xd

#

can't belive it took me 4 weeks to fix LOL

ionic lantern
#

where can I find my api key?

#

(nvm)

plucky lance
#

Topgg > edit your bot > menu webhook

vale stump
#

-upto

granite mist
#

i somehow cant reset my api token and if i use my current one i get a unauthorized

rain heart
#

refresh the page after regenerating the token

granite mist
#

worked, tysm7

grim fractal
#

@ebon nacelle

dapper pivot
#

Can someone in my dm help me to make vote tracker (Step by step)

dapper pivot
#

why this didn't working....

jaunty plank
dapper pivot
#

good?

jaunty plank
#

0.0.0.0 isnt a public ip.

dapper pivot
#

I set my own and it still doesn't work

#

?

#

what's wrong bro

plucky lance
#

Do you run the code locally at home or on a server?

dapper pivot
plucky lance
#

Also there's no need to hide the port

dapper pivot
plucky lance
#

Well when running at home you have to make sure to add a firewall wall on your PC to allow incoming requests on that port.

#

Also need to setup port forwarding in your router.

#

And you need to actually have a real public IPv4 address and not a DS lite tunnel.

plucky lance
#

No ISPs I know yet support port forwarding for IPv6

#

So yes, without a real public IPv4 you can not receive anything your ISP is filtering out

dapper pivot
#

okey i puted ipv4

dapper pivot
#

what to define

plucky lance
#

TCP

dapper pivot
#

Source port

#

what to put there

plucky lance
#

and the port you defined

#

source port and local port are your defined port

dapper pivot
#

app requests ip adress

#

what IP addres i need to put

plucky lance
#

You actually don't need to put an IP in there

#

As no other service will contact you on that port

#

If you want to you can whitelist the IP topgg doing requests with

#

159.203.105.187

dapper pivot
#

invalid ip address

#

i'm correct ptued

#

puted

#

but the saying: invalid ip adress

plucky lance
#

Show me a screenshot how your GUI looks without the IP addresses

#

(only if it is in English)

dapper pivot
#

i can't save without IP

plucky lance
#

Ahh

#

That's your local device IP

#

You should have a list of network devices in your router showing the devices IP addresses

#

The one you're running your code on is the one you need

dapper pivot
#

yes

#

i have

#

okey wait

#

finished

#

port forwarding finished

#

what next

plucky lance
#

You need to create a firewall rule on the PC you're running the code on

#

Probably Windows?!

dapper pivot
#

yea windows

#

I'm here, what next

plucky lance
#

Follow this

#

You can edit/delete and see the firewall later on in your GUI

#

You must open the Windows command prompt as Administrator

#

Keep in mind to adjust your port

dapper pivot
#

this will not affect my network?

plucky lance
#

No

dapper pivot
#

to localport

#

i need to put my port

#

?

plucky lance
#

The one you defined

dapper pivot
#

what next

#

BROOO IT'S DONEEEEE

#

OOOOOOO

#

THANK YOUU

plucky lance
#

you received the webhook?

dapper pivot
#

yea

plucky lance
#

Ok now the bad news

#

Your public IP isn't static, means that wont work forever

#

The local IP (your network IP) isn't static, too means that wont work forever, too

#

(as long as you didn't set it as a static one)

#

That means it's possible the stuff doesn't work anymore in a few hours, days, weeks etc.

#

You will have to update both IPs whenever they change (most likely daily) or use a server to host the code on with a static IP

dapper pivot
#

@plucky lance hm

#

My IP didn't change every day

#

or something like that

jaunty plank
#

it depends on your location, my ip has been the same for a few years and we dont pay for a static ip.

#

some places it does change often

dapper pivot
#

My ip can't change without permission

#

I have on mobile app all settings

#

for my router

earnest bramble
#

where do i get my dbl token?

jaunty plank
#

your bot page, edit, webhooks

plucky lance
#

That can happen at any time if you don’t have a static address

#

However it’s not guaranteed it doesn’t change means your port forwarding won’t work anymore some day

#

(as well as your local network address)

#

Which isn’t static in your router by default, too

#

So.. you should at least keep that in mind is what I wanna say

rain heart
#

just fyi

#

I suggest reading through it

manic gorge
#

Pls rich

plucky lance
dark parcel
#

how long does it take for the data to update after posting data to the api?

rain heart
#

On the API, instantly

#

On the site visually, 30 minutes or so depending on cache

harsh badger
#

What would you all recommend for the best way to set up vote reminders for a bot?

#

I have the webhook working great and the database is fine as well, just not quite sure how to go about the 12 hour reminders

rain heart
#

Track the time yourself

Either on execution:

  • store epoch
  • user tried voting
  • check if the time between first epoch and now epoch is 12 hours apart. If not, tell them to wait (possibly state how long until then), if yes, tell them they can vote again
#

If once can revote:

Start a timer from when they voted to 12 hours, DM them once it expires

harsh badger
#

Ahhh okay thank you

#

That makes sense

rain heart
#

Basically the theoretical way on doing it

harsh badger
#

Just took a look at epoch the other day and got a good sense of how it works so should be easy enough to implement

#

Ty again ^^

rain heart
#

Yup yup

sharp moat
#

<req>.vote.isWeekend() will work?

tidal idol
#

not a function so no

#

<req>.vote.isWeekend would work though

jaunty plank
#

just a small note, isWeekend isnt defined for test buttons currently only actual votes.

sharp moat
sharp moat
#

That it doesnt return with it

buoyant gust
#

how do i get my webhook token for my bot? it's not showing up when i go to webhooks?

#

also it asks for webhook destination and i have no clue what to put there

#

please ping when reply

plucky lance
#

You need to use the button to generate a token if you haven't done already

#

The destination to enter basically is your endpoint

#

You're listening for topgg sending requests (webhooks) to your endpoint

#

Means they need your hostname (FQDN) or most likely your public IP address (and port if specified) of the device your code is running on, listening for incoming requests

plucky lance
#

ping

jaunty plank
#

Pong

plucky lance
#

damn... Woo always watching

#

you can't do shit here

jaunty plank
#

Lucky timing

plucky lance
#

nsa really is everywhere

#

@buoyant gust ☝️

buoyant gust
plucky lance
#

Where do you run your code? Locally or on a server?

plucky lance
#

errr okay

buoyant gust
#

its probs all wrong

plucky lance
#

sure why not

buoyant gust
#

i forgot the ending

plucky lance
#

oh gosh

buoyant gust
#

yeh :/

plucky lance
#

just the related code, please

#

without your auth key

buoyant gust
plucky lance
#

I'm not interessted in your embeds

#

don't need to see your messages to the user

#

we just wanna figure out your webhook url for github

buoyant gust
#
 /**
     *
     * @param {Client} client
     * @param {Message} message
     * @param {String[]} args
     */
run: async (client, message, args) => {

app.post('/dblwebhook', webhook.listener(vote => {
  // vote is your vote object
  console.log(vote.user) // 221221226561929217
})) getVotes() {
    if (!this.options.token)
        throw new Error("Missing token");
    return this._request("GET", "/bots/votes");
}
/**
 * Get whether or not a user has voted in the last 12 hours
 * @param {Snowflake} id User ID
 * @returns {Boolean} Whether the user has voted in the last 12 hours
 * @example
 * ```js
 * await api.hasVoted('205680187394752512')
 * // => true/false
 * ```
 */
async hasVoted(id) {
    if (!id)
        throw new Error("Missing ID");
    return this._request("GET", "/bots/check", { userId: id }).then((x) => !!x.voted);
}
/**
 * Whether or not the weekend multiplier is active
 * @returns {Boolean} Whether the multiplier is active
 * @example
 * ```js
 * await api.isWeekend()
 * // => true/false
 * ```
 */
async isWeekend() ;{
    return this._request("GET", "/weekend").then((x) => x.is_weekend);}
exports.Api = Api;

app.listen(3000) // your port
module.exports = {
    name: "vote",
    aliases: ['v'], //aliases are optional
    /**
     *
     * @param {Client} client
     * @param {Message} message
     * @param {String[]} args
     */
    run: async (client, message, args) => { 
          
            
        {"Authorization"; "token here"} 
          }
}```
plucky lance
#

errr you might wanna use source bin or related

buoyant gust
#

okay how do i do that?

plucky lance
#

Just hammer in the code, send the link here, delete it after we done

buoyant gust
#

okie

buoyant gust
plucky lance
#

errr that confuses me quite a lot

#

did you copy something from the start to the end?

mental bane
#

Does this api work with dpy?

buoyant gust
plucky lance
#

ok well let's just talk about the webhook listener

buoyant gust
#

okie

plucky lance
#

alright I'm back

#

app.listen(3000)

#

you created your webserver on port 3000

#

didn't even know you can run things on github

#

but now you need to find out the hostname or IP that server is binding to

buoyant gust
#

actually i dont understand what the 3000 part was for? i thought that was supposed to be there. bare in mind im a total newbie to all of this...

plucky lance
#

well and I unfortunately can't really help you with github

#

do you have a console where you run that stuff?

buoyant gust
#

I have visual studio code if that counts

plucky lance
#

how do you execute your code on github?

buoyant gust
#

what i do is type in the code and commit it to the main branch

#

which was entirely set up for me by this friend of mine who hasn't been too helpful

restive otter
#

Do you use something like Heroku to use that code?

buoyant gust
#

Yehhh i use heroku

plucky lance
#

ahh there we go

#

that's where you run your code

buoyant gust
#

it is? okay so is that the key to this code?

plucky lance
#

iirc you have some project url on that platform

buoyant gust
#

whats iirc?

plucky lance
#

if I remember correctly

buoyant gust
#

okie so these are my options

#

overview, resources, deploy, metrics, activity, access and settings

restive otter
#

On Heroku you should be able to link a GitHub repo

buoyant gust
plucky lance
#

on the dashboard problably overview

#

there should be something showing your proiject url

#

idk like your-project.heroku.idk.com

buoyant gust
#

in settings there is a heroku git URL

#

with my bots name in url

plucky lance
#

your github url is not needed here

buoyant gust
#

its not Github its git only

#

hopefully you seen that

#

its a heroku link to my project im pretty sure

plucky lance
#

huh what?

buoyant gust
#

i sent the link but deleted it cause idk what kind of access that gives lol but its a heroku link not github

#

is this link what i put in the webhook url on top.gg?

plucky lance
#

your hroku project url is the webhook url you have to enter on topgg

#

As well as the path you specified (probably /dblwebhook) and the port you set (3000)

buoyant gust
#

okay so url goes by the dblwebhook and in place of 3000?

#

right i get what you meant now

#

i do appreciate all of your help.. is there a part of the code that needs to be taken out? its still throwing an error. i understand if you cant give this information though

plucky lance
#

You should probably go with the example from topgg if you're really unexperienced

#

That will just create a webhook listener on the specified port

buoyant gust
#

okay thank you

plucky lance
#

The parameter vote contains anything you need to know

#

You can user the vote.user to fetch a Discord user through your bot's client

#

Then send him a message or whatever you like to do

buoyant gust
#

send a dm? i don't know how to put DM in my code yet

woven orbit
buoyant gust
smoky marten
plucky lance
#

that doesn't work

buoyant gust
#

in the spot of userID what do i put? cause any one can vote

plucky lance
#

fetch returns a promise

woven orbit
smoky marten
plucky lance
#

you need to resolve the promise first

buoyant gust
#

i still don't know what a promise is and no one will explain D;

plucky lance
#

fetch().then((user) => user.send(..))

#

Well tbh at this point you're missing the Basic knowledge of the language, webhooks etc.
You might wanna learn that stuff before working with it

#

All requires at least some fundamental knowledge to work with

sullen nymph
#

A promise is something you shouldn't break

plucky lance
#

It's like impossible to explain the basics when you're not aware of them

simple bloom
#

Hello, I seem to be having a problem with the Top.gg Java library:

dbl = new DiscordBotListAPI.Builder()
   .token("insert token")
   .botId("insert id")
   .build();

dbl.hasVoted("my user id").whenComplete((hasVoted, failure) -> {
  System.out.println(hasVoted);
});

hasVoted just recently started to return null. It was working fine for a few months prior to this, and I hadn't made any changes to my code. Any help would be appreciated, thanks!

rain heart
#

Try catch and see if you get any exceptions

simple bloom
tidal peak
#

probably an api change?

rain heart
#

Nope, would've been announced

#

Regenerate your token, refresh the page after doing so

#

Catch exceptionally instead

#

. exceptionally

simple bloom
#

regenerated my token already, and what does it mean to catch exceptionally / how would I do it?

#

I used:

try {

} catch(Exception e) {
  e.printStackTrace();
}
rain heart
#

Use . exceptionally on the hasVoted method

simple bloom
#

like this?

dbl.hasVoted("454773340163538955").whenComplete((hasVoted, failure) -> {
  System.out.println(hasVoted);
}).exceptionally(ex -> false);
rain heart
heady furnace
#

is this how you send to dms? client.channels.cache.get(vote.user).send({embeds:[votedm]});

restive otter
#

yes

stone cobalt
#

good day, i tried to get user async from my new bot (still not present in search results cause issue with it apparently) but i get thiss "issue". Anyone can tell me if its because of the misssing bot in the search results or maybe not yet active? or if its something i did wrong?

restive otter
heady furnace
#

Very helpful I want to know the way to send dms to a user with id I already have the vote.user from topgg also I found it yesterday

restive otter
#

what

plucky lance
#

Well his answer is indeed the way how you do it.
You fetch the user ID via. your bot connection to the Discord API you got from topgg and send the fetched user a DM.

#

Means you need your API connection instance (client) to do an user fetch.

#

<client>.users.fetch(vote.user);

#

fetch() will return a promise here, keep that in mind

stone cobalt
wide walrus
#

where I will get my topgg token?

rain heart
#

refer to the pinned messages

tidal idol
#

you need an approved bot to get the token

restive otter
#

anyone knows why I have no connection to the api?

rain heart
#

am sure you got ratelimited then

restive otter
#

but how lol

#

I just saw my bot is sending the stats every 3 seconds :D

rain heart
#

ask your code idk

#

yes

#

thats basically it

restive otter
#

yes

#

ded

rain heart
#

so you got globally ratelimited

restive otter
#

forever?

rain heart
#

check back in 24 hours while not posting anything to the api

restive otter
#

okay

#

and so not every 5 seconds anymore

#

every 12h should be good

rain heart
#

just honestly do every day

#

I doubt your servercount fluctates so much

restive otter
#

100+ a day so idk if every 12h is possible I'd do it

rain heart
#

ehh, still nothing you'd need to post every 12 h

#

I mean as long as it follows the ratelimit stuff, you aight

#

just generally suggest something more high

restive otter
#

can I just change the token to prevent the bot sending the stats?

tidal idol
#

Also as a quick note as the /resources/ratelimits page states you'll recieve a 429 and you're getting a 418:

HTTP 429 return code is used when breaking a request rate limit.

HTTP 418 return code is used when an IP has been auto-banned for continuing to send requests after receiving 429 codes.```
restive otter
#

well it's for sure bc of the every 3 seconds lmao

#

I'll just wait a day then

#

and try to send it slower

vestal jackal
#

So I am basically switching my bot from javascript to java cause I feel like I understand java better and the discord api for java more… anyways I was looking through the docs for top.gg for the java api but I can’t find the way to trigger something when someone votes, I can only find how to detect if someone is voted, and to check if it like the weekend vote.

jaunty plank
#

I dont think the java library supports webhooks currently.

vestal jackal
#

Sadness.

rain heart
#

There's unofficially maintained ones right now that might work

#

One by me and one by someone else

#

There's one made by me https://github.com/Hopeful-Developers/topggwebhooks4j
And one made by another developer
https://github.com/JoshiCodes/TopGGWebhook

There's another one made by someone else that supports different botlists, can't find it rn though

Copy pasting what I sent a few weeks ago

GitHub

Java Webhook Library for Top.gg. Contribute to Hopeful-Developers/topggwebhooks4j development by creating an account on GitHub.

GitHub

Simple Webhook Listener API for the Top.GG Webhooks. - GitHub - JoshiCodes/TopGGWebhook: Simple Webhook Listener API for the Top.GG Webhooks.

vestal jackal
#

Ty.

meager meteor
jaunty plank
meager meteor
jaunty plank
#

What endpoint are you using?

meager meteor
jaunty plank
#

Are you using the topggypy lib or writing it yourself? Or using someone else's library.

jaunty plank
#

Strange 👀

meager meteor
#

yah

#

it started like last week

jaunty plank
#

🤔 I'm having a hard time seeing the topggpy library using aiohttp

#

op i found it

meager meteor
#

oop

#

do u own or have access to the lib?

jaunty plank
#

If you are sure the error is coming from topggpy youd probably be best off reporting the issue on github

#

I dont work on the py library no

meager meteor
#

oh ok

jaunty plank
meager meteor
#

ok ill report it

sullen nymph
#

@meager meteor do you use the webhook

restive otter
#

so i used my eval command and did this

#

and when i go onto the stats page for the api it returns ```json
{"server_count":25,"shards":null,"shard_count":1} // correct

#

but when i go onto the top.gg page it still says that the server count is 2(on my beta bot it was 2 but now the eval is using my main bot) instead of 25

#

does it take long to post or did i do smth wrong yup it just takes long

stone cobalt
rain heart
plucky lance
#

Give it some time, maybe up to an hour to update as it’s cached

restive otter
#

got it

#

it eventually changed so i could tell it just takes long

plucky lance
#

Yeah the caching behavior is just crap

#

But to be fair it’s also not really important to have an up to date count at any reload

stone cobalt
rain heart
#

In here, waiting for someone who can actually help

stone cobalt
#

i see. then ill wait i guess and repost every once in a while

smoky marten
#

nvm

lime rock
#

TopGGAPIError: 403 Forbidden (You don't have access to this endpoint)

rain heart
#

Basically what the error tells you

surreal niche
#

Does someone has a c# bot example for interaction with API, or documentation using c#?

fringe edge
jaunty plank
hazy forum
#

Hello, is there any API that tracks server vote count per member on topgg?

rain heart
#

Not on top.gg no, track it yourself using webhooks

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

well more specifically trying to get data from the user that uses the vote commndn to check his last vote/date of vote and see if he did another vote.

#

since the bot is not yet indexed or in the search results...

#

i guess that is the issue, but i cant be sure for now tbh...

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

i mean i have the bot approved, its present in the topgg but it does not appear in the search results.

#

altho the vote page appearss in theory

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

well...if i try to "get" the user data on my bot i get that message

#

well..try to check what the object has available to know how to handle it more specifically.

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
#

hm...then what am i doing wrong?

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

sure a sec

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
#

AuthDiscordBotListApi DblApi = new AuthDiscordBotListApi(799667058673319957, "token got from the webhook page of the bot");
object bot = DblApi.GetBotAsync(799667058673319957);
object user = DblApi.GetUserAsync(ctx.User.Id);

#

the token is the "secret" one that you get when you click reveal

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
#

for now, the rest is internal stuff. i wante to see what user has in terms of fields and data available

#

so i know how to proceed

#

but with a breakpoint i find only "waiting foor activation"

#

as a result

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
#

sure i can send you image again imma use it give me 1 sec

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
#

ok O.o..so i have to do like object user = await api.GetUserAsync()?

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

sure

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
#

i do get id and other stuff

#

but nothing about the vote but i guess it is another "function" of the user object

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

cause, since i have not much knowledge yet of webhooks and i could not create one, i wanted to get the "last vote datetime" so i can check if its different from the last one saved

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

and then save the new one 🙂

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

i see.

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
#

yeah apparently.

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

thank you very much for your help and support 🙂 in case i have other issues ill make sure to messages you in case you allow me ofc.

scarlet cobalt
stone cobalt
#

oh..

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

good thing i did not started on it then XD

#

well i can use otther wrappers or create an API

#

not an issue there.

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

but thats for the future. for now i wanted a easier and simpler voting thingy

#

and this is what i found

#

which property gets last vote datetime? if you dont mind sharing since i got ya here 🙂

#

is there also a property for "number" of total votes or like monthly total votes and similar?

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
#

topgg ones or the git ones? if you dont mind send me the link

#

ill save it

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

stone cobalt
#

noice, thx a lot 🙂 for help as well for the support.

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

nope you have been essential and more than enough help to me 🙂 had to wait couple days but worth it to solve this issue, thx a bunch 🙂

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

🙂 thank you i will remember to do that next time.

hazy forum
meager meteor
sullen nymph
#

Try to disable it

#

Run the bot without it

meager meteor
blissful sluice
#

Can we use this api for a vote tracking bot??

sullen nymph
#

Weird shit

blissful sluice
sullen nymph
#

Not you

blissful sluice
#

Ohk

blissful sluice
sullen nymph
#

I'm not sure how you want to do that

meager meteor
smoky marten
smoky marten
#

I can't code the entire thing yk

#

I'll be happy to help tho

blissful sluice
#

As right now some bots needs some kind of authorization and something other too

iron zenith
#

Can I buy personal bot

rain heart
#

-api

abstract mothBOT
#

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.

iron zenith
#

To be able to be give WL

rain heart
#

we're not a server that provides bots

#

consider hiring a developer through fiverr or freelancer

iron zenith
#

Any idea where

rain heart
#

-needdev

abstract mothBOT
#

You seem to be asking for something you don't have experience for or something that hasn't been done yet, but really need for your bot/server.
You can hire developers from Fiverr or Freelancer to code the things you need for your bot/server.

iron zenith
#

Okay

#

Thank for your support

#

I appreciate

teal nymph
#

what is this err for ?

rain heart
#

Cloudflare timeout

#

What endpoint

teal nymph
teal nymph
rain heart
teal nymph
#

is the problem from my code ?

#
const Topgg = require('@top-gg/sdk')
const topgg = new Topgg.Api(process.env.ggToken)
const mMember = message.mentions.members.first() || message.member
const voted = await topgg.hasVoted(mMember.id)
restive otter
#
  const { AutoPoster } = require('topgg-autoposter')
    const ap = AutoPoster("key", client)
    
    ap.on('posted', () => {
      console.log('Posted stats to Top.gg!')
    })

stone cobalt
#

so i have one question, in the c# api, or in general i guess, i see no field that contains the voting date/datetime, i guess there is no such info?

#

which means the "hasvoted(userid)" becomes false after 12 h?

#

@scarlet cobalt

scarlet cobalt
#

One message removed from a suspended account.

stone cobalt
#

well...the hasvoted yes

#

but i cant find any datetime field for the vote

#

so i guess there is no such thing?

rain heart
#

Not a thing nope

stone cobalt
#

darn...

rain heart
stone cobalt
#

i am not using webhooks tho

#

not yet at least.

#

i am basically trying to get if the user has voted after he did vote on the website.

#

and now the only way is the hasvoted i guess.

#

which i guess becomes false after the 12 h has elapsed

#

so the user has to vote again for it to become true again

#

at least i hope it is like this cause otherwise i have no other clue on how to check if the user voted and when :S

#

sadly not an expert on web nor webhook, i will learn to do it eventually but for now i must settle for a simple solution...

vestal jackal
rain heart
stone cobalt
#

teapot, just for confirmation, can you confirm that the voted bool becomes false after 12h? (aka when they can vote again)

tidal idol
#

It does

stone cobalt
#

oh good. thx 🙂 at least there is that. not the best solution but will do for the time being until i complete a webhook

tidal idol
#

I wouldn’t recommend sending requests Everytime to check

#

That would result in ratelimits

stone cobalt
#

i only do it when the user uses the command

tidal idol
#

If someone spammed, it would spam the api

stone cobalt
#

i get a getmeasync and then check for voted.

#

hmmm i could make a timer.

#

so let them sue this command once every 1h at best.

#

if needed be.

#

or do it ONLY if 12h passedx

tidal idol
#

Do you have a database?

stone cobalt
#

stopping them before.

#

yes

#

i can save the datetime when they use the command

#

and check if 12h elapsed

#

🙂 so i avoid spamming

tidal idol
#

Create a simple webhook that gets the userid and the timestamp of them voting and stores in DB

#

Not hard to make at all

#

And would mean no cringe ratelimits

stone cobalt
#

i dunno how to do it. i dont doubt it might be simple..

#

but i simply have no clue how to make the webhook how you told me, i would so happily use a webhook

#

but i have 0 knowledge of it.

tidal idol
#

What language?

stone cobalt
#

c#

tidal idol
#

Ah

stone cobalt
#

using DSharp plus...

#

so yeah...

#

i need to set up an API, make the settings...etc

#

and after create a httppost receive i guess.

tidal idol
#

Sadly not a lib for that

stone cobalt
#

yeah...

#

i know.

rain heart
vestal jackal
rain heart
#

Correct

hazy forum
#

Hello, I wanted to create server vote counter feature on my bot using top.gg webhook. Do I need to register my bot first on topgg? My bot is a private bot and currently running for a specific server. Any help would be appreciated. Thanks!

smoky marten
neat lotus
#

Does the test button for voting not show "isWeekend" when the data is sent?

jaunty plank
blazing sage
#

how do I get the token from topgg?

rain heart
#

read pins

trim dock
#

Has anyone created an application that parses through all of Top.GG bots, gets the prefix of of each one, and create a Most Common Prefix chart?

#

Thought it would a cool stats thing to look at, but not sure what the rate limiting is like for the API

smoky marten
#

I wonder how many bots are on top.gg

#

And how useful that chart would be

azure agate
#

@rain heart Pls Can you tell me how to make Vote Require command

rain heart
lone sun
#

How do i add bot count update to a subclassed d.py bot?

#

Nvm found it

trim dock
#

But, I guess now everyone's moving to slash commands, so maybe not so much in modern times

smoky marten
restive otter
#

Hello im very very very new, how to make it so everyone someone votes the bot, a webhook sends a message in a channel that this person voted

#

how do i even set this up lmao

tidal idol
restive otter
#

thank you

restive otter
#

Is there a way to give someone a role when he vote for the bot?

tidal idol
vale jasper
#

Hi a question, ¿How do I connect my bot to the top.gg API so that it sends a message to a channel when a user has given my bot a vote?

wise onyx
#

my bots seem to have lost the ability to update their server count on top.gg - is this a bug or did something change with the top.gg api about a week ago?

wise onyx
#

I'm using the java top.gg api library, after calling setStats the server count on the website has always updated fairly quickly

#

over the past week or so, none of the updates have taken effect

#

on either of my bots

tidal idol
#

any errors logging?

wise onyx
#

I don't see any errors no

tidal idol
#

Might just be caching on the bot pages then, that always happpens

wise onyx
#

ah, looks like I asked at the wrong time - I ran a manual postman request the other day and the bot that I'm most concerned about it updating was updated overnight 😆 but it's still not updating through the library in the bot oddly enough

#

yeah I've always noticed some caching

#

I haven't confirmed the inbuilt library working for ~1 week

restive otter
#

it was working fine, then all of a sudden it returns 401. I refreshed the token and it still doesn’t work, yet when i send a request using insomnia i get 200. something is broken in the library

#

(same with checking votes)

tame dome
#

When someone upvotes my bot on top.gg, it looks like it sometimes just doesn't send any http request to my webhook at all, but when I send a request to my webhook endpoint manually, it always works. Am I the only one who currently experiences this?

rain heart
#

Do they get the "thanks for voting" message on top.gg?

tame dome
#

Yeah

#

My user accounts seems to be affected by the issue, too. When I upvote my bot, my webhook endpoint doesn't receive any incoming request, but when I edit my bot and send a test request, everything works fine all of a sudden

smoky marten
#

seems like firewall issue

tame dome
#

Yes, I noticed that too. It can only be Cloudflare though, so now I've tried everything to make sure that it doesn't intercept with top.gg webhooks, and we'll see whether the issue has been fixed now think

tame dome
#

UPDATE: when I upvote on top.gg, I get a confirmation ("Thanks for voting!"). But when I refresh the page afterwards, it will tell me that I can upvote again

#

So it looks like top.gg doesn't really register my vote and for many other bot users

rain heart
#

if it doesnt tell you you already voted, the vote did not go through

tame dome
#

Nothing has changed unfortunately, the vote still does not go through

tidal idol
#

are you using a vpn

tame dome
#

Yes

tidal idol
#

disable it

#

even if its just temporary to vote, it seems to fix it

tame dome
#

It has worked now, thank you

tidal idol
#

Good 👍

raven birch
#

Can I use this channel for the topgg sdk module?

scarlet cobalt
#

One message removed from a suspended account.

restive otter
#

I cant regen Bot’s token in Topgg

raven birch
#

like I create the requirement in d.js and if I run a command from my bot from python, if I have not voted, it says to vote.

brazen marlin
#

You need use webhook server

#

Because ratelimit

raven birch
#

wym webhook server

brazen marlin
#

It's plugin for vote requirement

#

It's for gcommands framework

#

You can check code

raven birch
#

so I just add this to my current bot code?

hybrid bridge
#

so i have this right now using d.py, my friend said he already added the password to the topgg guild page webhook area or something like that (i don't have access to it), but it's not triggering it (send the "Received vote" to the channel) nor printing it. i installed the topgg package through git (git+https://github.com/top-gg/python-sdk/). what did i missed?

restive otter
restive otter
#

Is someone going to help me

rain heart
#

Press regen, refresh page, press reveal

#

Boom new token

hazy spindle
#

hello there! I want to know can I give direct discord webhook url for post request? for example, if I put https://discord.com/api/webhooks/956150216699027466/omiC...., looks like it doesn't sending any info whenever click on vote either test webhook button, if this is incorrect way, which way should I use for it?

rain heart
#

If you wish to reward users for voting, you need to make your own webhook setup

hazy spindle
hybrid bridge
jaunty plank
hybrid bridge
#

i've only told him to put the "password"

jaunty plank
#

https://[name of app].herokuapp.com/dblwebhook

#

youll also need a web dyno enabled on heroku

hybrid bridge
jaunty plank
#

we only support one webhook at a time, if you need to communicate between two heroku instances youll need to setup your own ipc.

hybrid bridge
#

ah alright, also you said "webhook url and auth", that is the url (...herokuapp.com) and what is the auth?

jaunty plank
hybrid bridge
#

ahh alright i'll try that, thank you so much!

deep basin
#

can anyone help about tht?

urban edge
#

Hi, I use the JAVA top-gg api for my bot, for over a year I've used the template provided on github

api.hasVoted(userId).whenComplete((hasVoted, e) -> {
if(hasVoted)
System.out.println("This person has voted!");
else
System.out.println("This person has not voted!");
});

To work out if a user has voted, but it no longer works despite neither the token or botId changing and when I manually go to the URL which gets built it does display

{"voted":1}

However, when I run the code I get back a 401 unauthorized trying to access the response (therefore hasVoted is now Null and it doesn't execute anything)

smoky marten
rain heart
#

Regenerate it, refresh the page and use it

#

Going directly to that URL on your browser gives you the correct response as the site is just using your credentials to use the API

urban edge
rain heart
#

It does not, you provided an invalid one

urban edge
#

I haven't changed the code in over a year and it's broken in the past 1-2 weeks

#

I'll still try regen though

urban edge
rain heart
#

Then you might be trying to get the data from a bot that the token doesn't belong to

#

You cannot enter a different bot id from a bot that the token doesn't come from

urban edge
upbeat mantle
#

How can I update server count using nextcord (python), and no the official library doesnt support nextcord

jaunty plank
#

generally youd post the stats using whatever http request method works with nextcord

upbeat mantle
#

oh damn

#

I didnt see the rest of the document

#

bruh

deep basin
rain heart
#

There's only one on bots

viral egret
#

Why I'm getting this error?

chilly sphinx
#

i have same issue too

wise onyx
#

are the staff at top.gg aware their libraries (as a minimum the java library) have not been working for over a week?

jaunty plank
wise onyx
#

well they don't let you post the stats

#

and I've heard from someone else the votes aren't working

#

from the sound of it, they aren't working at all

jaunty plank
#

I dont think the java library supports vote webhooks.
unless you mean making a request to the vote endpoint

wise onyx
#

if I were to guess, since t he library hasn't updated at all - some site update with user agents or something caused the requests from the libraries to no longer be allowed

#

yeah I don't use that, apparently it does

#

at any rate, setStats does not set the stats

jaunty plank
#

any errors?

wise onyx
#

and it's definitely the library, I've heard the same thing from a minimum of 5 developers, all with the same timeframe

#

manual api requests work

#

no errors either

jaunty plank
#

If we had any changes to the api I wasnt informed.
I'm not a java dev, but looking over the libraries source code I dont see anything that would cause it to not function.

wise onyx
#

in my opinion, the most likely cause is cloudflare blocking the request

#

due to user-agent stuff or other firewall related blocks

#

because nothing changed on the library obviously, it's been working all along

#

the site seems to simply not be accepting the requests from it though

jaunty plank
#

that's really strange.
I'll stick it in a staff channel, hopefully xet/cassie gets a chance to look at it.

wise onyx
#

at any rate, I think I speak for most of us developers who use the library instead of simply making the requests manually, it would be nice if you'd let a developer know, I'm sure it's a very simple fix if they know what's wrong

#

awesome, thank you!

#

update: another developer says the requests from the library are returning a 401 unauthorized - I haven't personally confirmed if this is what it's returning for all my bots as the requests are all done in the background with the library but it might help narrow the search down

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

I've only used java

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

the token is definitely valid, postman works

#

the thing is, nothing changed with the library

#

it feels to me like the site simply isn't accepting the request

#

for some reason

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

yeah, that's why I feel like it's the website itself

scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

or maybe just a website update that didn't get applied to the java library

scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

if you guys aren't seeing any issues with the other libraries it could very well be just the java one in that case

scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

it seems like the issues happened just over a week ago

#

started happening*

#

if that narrows the search down for what's likely causing it

scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

ah, have you tested it to be sure it works in the past week?

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

sounds good, hopefully it's limited to just the java library malfunctioning

sullen nymph
scarlet cobalt
#

One message removed from a suspended account.

sullen nymph
#

Haven't had one for years

scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

I can try regenerating the token - though the issues happened to multiple people at the same time, and both of my listed bots stopped posting at the same time

sullen nymph
#

You never fucking know with top.gg

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

scrolling up through this chat, looks like everyone who has the issue uses the java library

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

alright nice

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

I'll try to find the specific issue with postman requests in a bit, though it looks like the website just went down for maintenance

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

yeah they're practically the same language syntax-wise anyway

#

I'll send you a ping if I can find the issue when the sites back

scarlet cobalt
#

One message removed from a suspended account.

small scroll
#

I wonder where the lightning bot is voting

teal nymph
#

Top GG vote check disable all of my vote needed commands ;-;

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

lol

scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

made it quite a while then

#

I was wondering why there was never any updates to it every time I imported it in gradle is was always 2.0.1 😆

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

sullen nymph
#

Only like half the libraries have active/any maintainers funnily enough

#

As far as I recall, even the Python one has been ditched

scarlet cobalt
#

One message removed from a suspended account.

buoyant mist
#

.vote

scarlet cobalt
#

One message removed from a suspended account.

buoyant mist
#

sg!vote

scarlet cobalt
sullen nymph
#

Works but there's no maintainer

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sullen nymph
#

Are you sure you wanna take over 3 libraries

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

sullen nymph
#

🤣

#

Oh wait I still have access to the package and shit don't I

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

cunning nimbus
#

Hi

sullen nymph
#

Hell no thanks

scarlet cobalt
#

One message removed from a suspended account.

restive otter
#

Hi offerte parrot?

fierce cradle
#

Scd

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

yeah I'm going to have to wait until the website is back online

#

to run any tests

scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

it's likely only going to be a single line of code to fix it

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

I've never worked with github or open source projects at all, so at any rate between the two of us we should be able to find a solution lol

sullen nymph
#

P.S. You may want to check which domain it works with, Faith

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sullen nymph
#

Ah

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

sullen nymph
#

Good opportunity to learn bbg

#

😉

scarlet cobalt
#

One message removed from a suspended account.

upbeat steppe
#

!join

#

!ciear

#

Clear

#

!cleae

signal gazelle
#

!clear

scarlet cobalt
#

One message removed from a suspended account.

upbeat steppe
#

!clear

#

!join

young steeple
#

!vote

restive otter
#

..

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

rain heart
#

@signal gazelle same to you

silver bolt
#

is there an endpoint for topgg to return the total amount of votes my bot has? I looked at the docs are it only appears to return the last 1000 votes, but I just want an agregate.

smoky marten
wise onyx
#

@scarlet cobalt so I believe I found the issue - the library is apparently in fact trying to access discordbots.org, it should be a very easy fix (line 27 & 28 of DiscordBotListAPIImpl.java)
Found at: main\java\org\discordbots\api\client\impl\DiscordBotListAPIImpl.java

#

it's possible the previous maintainer fixed it in one place but missed it there

jaunty plank
wise onyx
#

at any rate, all of the requests appear to use that base URL, which when executed returns a 401 unauthorized

sullen nymph
wise onyx
#

that's the request it's making, simulated in postman

jaunty plank
#

And it works when using top.gg?

wise onyx
#

yep

jaunty plank
#

Alright, I'll let them know

#

Thanks for investigating

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

jaunty plank
wise onyx
scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

for some reason it returns that for top.gg, but it always takes effect

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

jaunty plank
scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

hang on, the source code I just downloaded for the library has discordbots.org in there

scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

github

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

jaunty plank
#

seems like it

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

lol

#

you're right

#

just went to the master branch and it's top.gg in there

scarlet cobalt
#

One message removed from a suspended account.

hearty lintel
#

who previously published the java sdk

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

hearty lintel
#

you wont have access to publish

restive otter
#

how to post server count btw 💀

scarlet cobalt
#

One message removed from a suspended account.

hearty lintel
restive otter
#

js

scarlet cobalt
#

One message removed from a suspended account.

hearty lintel
restive otter
#

ty

rain heart
#

read the pinned messages

viral egret
jaunty plank
#

that seems related to the site being down

cunning sonnet
#

Did anyone mess with api because sometimes broke my bot

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

cunning sonnet
#

Well you must know otherwise you wouldn't be called very smart

#

Which library did you write out of curiosity?

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

cunning sonnet
#

I see well I'm using the java one

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

cunning sonnet
#

about what?

scarlet cobalt
#

One message removed from a suspended account.

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

cunning sonnet
#

It's okay

reef void
#

hi can someone help me to use the top.gg api for a "premium" command im trying to make
in discord.py

smoky marten
# reef void hi can someone help me to use the top.gg api for a "premium" command im trying t...

Create a webhook server

When someone votes:

  • Save their id
  • And probably time

When someone uses the premium commands:

  • Check if the user has voted before (from database)
    • if the user has voted before execute the command
    • else show an error saying "vote to use this command UwU"
sullen nymph
#

Hey Akio

#

I think I told before but /stable is for pre-last version of topggpy

sullen nymph
smoky marten
#

ohh

sullen nymph
#

For the version before 2.0.0

#

Latest is for the alpha version

smoky marten
#

kk

#

done

sullen nymph
#

Ehh I mean something to note. You never know what version they use

smoky marten
#

I thought the python lib was dumped

sullen nymph
#

Kinda

#

There's no active maintainer

smoky marten
sullen nymph
#

Plz take over

smoky marten
sullen nymph
reef void
smoky marten
smoky marten
reef void
scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

rain heart
#

read the docs

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

rain heart
#

it does state what it is

#

it is in json form

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

neat lotus
#

Does the api return any data when you make a post request for the server count? (like a success or anything)

scarlet cobalt
#

One message removed from a suspended account.

neat lotus
#

Is it a json or status code

scarlet cobalt
#

One message removed from a suspended account.

neat lotus
#

200?

scarlet cobalt
#

One message removed from a suspended account.

restive otter
#

any way to do smth like this?

topGG.on(`posted`).then(() => {
  console.log(`[Top.GG] Posted bot statistics!`);
}).catch((error) => {
  console.log(`[Top.GG] Failed to post bot statistics! ${error.message}`);
});
scarlet cobalt
#

One message removed from a suspended account.

smoky marten
wise onyx
scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

wise onyx
#

ah, I see

#

so then the library will likely be updated to 2.0.2 soon with the changes?

scarlet cobalt
#

One message removed from a suspended account.

wise onyx
#

I think I'll probably wait it out myself, 132k servers vs 136k won't affect peoples view of my bot that much lol

#

at any rate, thanks for working on it - I'm glad it's being fixed/already fixed if you change the url

hushed bough
#

hey

spark bronze
#

i’m putting my token in and i keep getting this

rain heart
#

Your token is invalid, generate a new one, refresh the page, then copy the new token

spark bronze
#

i am

rain heart
#

it may seem like the old one at first, but the first part of the token is the same on your bot

spark bronze
#

it fixed

void dirge
#

do you guys think the api will be able to stay up for 2 days in a row without giving a 503?

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

teal nymph
#

how can i see when can i vote again?

smoky marten
teal nymph
#

tnx