#topgg-api

1 messages ยท Page 136 of 1

restive otter
#

samething lmaooo

astral salmon
#

There is an Api trouble

ruby tangle
#

ye

#

my console

#

is fckin trash right now

rapid dome
#

^

potent bramble
#

Its the gateway timout dw

#

Theyll fix it soon enough

restive otter
#

TopGGAPIError [Top.GG API Error]: 504 Gateway Time-out

potent bramble
#

Scroll up a bit and read the chat

formal sparrow
#

Why am I getting "Gateway Timeout" when I try to post stats to the API?

#

oh nvm

potent bramble
#

Bruh lmao

#

Yeah

static kayak
#

How do I try to show how many server my bot is in... On top.gg?

potent bramble
hollow temple
#

"Error: 504 Gateway Time-out"

formal sparrow
#

Yea

Top.GG is currently experiencing a few difficulties on a few of our routes on our pages. Do not fear, this is known issue and our internal team are investigating and the site should be up shortly - please do remain patient!

willow spindle
scarlet cobalt
#

i keep getting 500 and 504 error codes so now and then

#

when either checking vote or sending bot stats

tender valve
#

there is a problem

#

?

restive otter
deep nova
#

what am I supposed to do if it spits out this error:
<title>top.gg | 504: Gateway time-out</title>

my bot only posts it per 2 hours
nvm

potent bramble
#

Please just scroll up and read what the others said lol

outer fractal
#

why this error come ?

18.02 13:49:01 [Bot] (node:42) UnhandledPromiseRejectionWarning: Top.GG API Error: 504 Gateway Time-out
18.02 13:49:01 [Bot] at Api._request (/node_modules/@top-gg/sdk/dist/structs/Api.js:74:19)
18.02 13:49:01 [Bot] at runMicrotasks (<anonymous>)
18.02 13:49:01 [Bot] at processTicksAndRejections (internal/process/task_queues.js:97:5)
18.02 13:49:01 [Bot] at async Api.postStats (/node_modules/@top-gg/sdk/dist/structs/Api.js:94:9)
18.02 13:49:01 [Bot] (node:42) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 23)
outer fractal
#

๐Ÿ˜… Thanks

leaden orchid
#
<script>
var url = "https://top.gg/api//bots/754402720663732395/votes";

$.ajax({
  method: "GET",
  cache: false,
  url: url,
  success: function(data) {
    document.getElementById('output').innerHTML = data.username;
  },
  error: function(error) {
    //What do you want to do with the error?
  },
});
</script>
```    im got "401" error in my website while using dbl vote api. what should i do?
rain heart
#

//

#

The URL, fix it

restive otter
#

TopGGAPIError [Top.GG API Error]: 504 Gateway Time-out

#

@rain heart

rain heart
leaden orchid
rain heart
#

Literally read what i just said

leaden orchid
#

change // to /

rain heart
leaden orchid
#

k

mental adder
#

so

#

this returns a user id

#

and not a user object

#

did i did something wrong?

restive otter
#

use the new library

#

ig

shy vortex
#

use the new lib

#

don't use the old one

wheat copper
#

how do i catch errors if i'm using the autoposter?
cant see anything in the docs and my console is dying every time it tries to post lol

rain heart
#

yes that is what the library is for

#

just read the docs

regal swallow
#

Is the api down? It seems my vote command isnโ€™t working atm.

rain heart
regal swallow
#

Ty ๐Ÿ‘‹

shell flax
rain heart
#

bot page settings -> webhooks

#

old one still works

#

if not, then just reset it

hybrid flume
#

Where do I get my API Key again? I don't remember how to get it (Code is borked and I am nowhere near my home PC)

rain heart
#

bot page settings -> webhooks

hybrid flume
#

Thanks

rocky basin
#

API is returning 504 Gateway Errors, related to #site-status?

rain heart
#

Yes

rocky basin
#

Sweet, ty

hollow owl
#

My dbl webhook server gives Unauthorized error but I'm sure I typed Authorization correctly

rain heart
#

otherwise test your webhook with postman for example

hollow owl
rain heart
#

You can't access it from your browser

#

you need to use a Authorization header

hollow owl
#

ohh sorry i forgot about that

glass cedar
#

Would it be possible to get a user vote time/user vote expiry time with the individual user vote endpoint?

#

I imagine it's the same lookup internally

rain heart
#

no there's not

#

you need to track it yourself with webhooks

glass cedar
#

I know it's possible to do and track myself with webhooks, I'm just putting this here as a suggestion for the endpoint

rain heart
#

embedding smh

glass cedar
#

aright sick

restive otter
#

Still down

uncut lintel
#

is there a issue with the page as im getting 505 - gateway timeout errors when my bot tries to update the servers in the bot logs

rain heart
uncut lintel
#

mb thx

woven adder
#

What's the node package for top.gg api?

rain heart
#

the one pinned in this channel

woven adder
#

Ok

#

How about the documentation?

rain heart
#

should be included in the npm repo

#

just read over it

woven adder
#

ok thx

#
{"error":"Failed to lookup view \"docs\" in views directory \"/var/botlist/views\""}
night fern
#

is there any way through which i can make a timeout for top.gg api in case it fails to check vote for the user, try/except doesnt seems to be working. i use python

scarlet cobalt
#

One message removed from a suspended account.

#

One message removed from a suspended account.

hearty lintel
#

api is experiencing issues rn

scarlet cobalt
#

One message removed from a suspended account.

hearty lintel
night fern
#

hey is anyone having any idea how much time api normally takes to check vote for a user

rain heart
night fern
#

ik abt that

#

im making a timeout in case this happens again

#

so i wana know how much time should i add in timeout

hearty lintel
#

you shouldn't really make a timeout. you'd be better off erroring to the user and telling them to try again later

night fern
#

uh

#

im not sure why u said so

restive otter
#

api is not working rn

#

?

hearty lintel
night fern
#

try/except doesnt seem to work if checking for votes is failed so i believe the best way to prevent the command from breaking is to make a timeout for checking the vote

hearty lintel
#

@sullen nymph how do you catch an error with dblpy

sullen nymph
#

sorry what

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.

night fern
#
            voted = await DBLClient.get_user_vote(self.dblpy, user_id=ctx.author.id)
        except:
            voted = True```

this is it.....
#
            async with timeout(2.0):
                voted = await DBLClient.get_user_vote(self.dblpy, user_id=ctx.author.id)
        except:
            voted = True```
#

will it be good to add a timeout like this

sullen nymph
#

Put the try on the line after the first ```

night fern
#
            voted = await DBLClient.get_user_vote(self.dblpy, user_id=ctx.author.id)
        except:
            voted = True```
sullen nymph
#

uh

night fern
#

uhhh

sullen nymph
#

I'll rephrase my point

#

Are the try and except indented with the same number of spaces?

night fern
#

well i wont make a mistake like that i believe

#

can u just tell me would it be fine if i use a timeout on the api and if yes what should the timeout be? @sullen nymph

sullen nymph
#

Interesting why it would timeout

#

What do you mean by "timeout" in this case?

night fern
#

use of async_timeout.timeout to throw a timeout error if the api fails to fetch vote in given time

crisp portal
#

API misbehaving? Getting a lot of 504s.

sullen nymph
#

I guess it would be fine

night fern
#

so what time should i put

#

are 1.5 or 1 seconds enough for api to check vote when its functioning normally?

sullen nymph
#

Might wanna set it to like 2 or 3 seconds

#

Or just to be safe, 5

grizzled mulch
#

How do we check to see if the user has voted in the past 12 hours?

night fern
#

the thing is the command gets delayed coz of greater time and it isnt very good

#

so i wanna keep it at minimum

green mantle
#

why dont you use a webhook for this instead

#

rather than the api pithink

night fern
#

im a beginner

#

not worked with webhooks ever before

lyric bay
#

i dont have a webhook url, but when i voted my bot, i got a 504 and then later when i tried again a 502 so im curious if we dont need webhooks anymore?

rain heart
#

you still need webhooks

lyric bay
#

thats what i thought but im surprised since i dont even have a url in there but my bot still reacted

#

i expected my bot to just do nothing and the error took me by surprise

wanton nymph
#

Currently, I've been using a manual request:

voteParse = await got(`https://top.gg/api/bots/695011795110461520/check?userId=${message.author.id}`, { headers: { "Authorization": process.env.TOPTOKEN } });

But I have heard that using a webhook might be better. However, I was wondering if I need to store the data from the webhook, and/or make it automatically delete after 12h? Is there any guide to this?

wanton nymph
#

Someone has answered ๐Ÿ™‚

lean raven
#

How would I make that when someone votes bot sends a DM to person who voted?

jaunty plank
#

vote webhooks and using your bots library

lean raven
#

I alr know for this but how do I make it to DM someone and to dm them a specific text

#
const Topgg = require("@top-gg/sdk");
const express = require("express");

const app = express();

const webhook = new Topgg.Webhook("your webhook auth");

app.post("/dblwebhook", webhook.middleware(), (req, res) => {
  // req.vote wil lbe your vote object, e.g
  console.log(req.vote.user); // 395526710101278721 < user who voted
});

app.listen(80);
lean raven
coarse cipher
#

does anyone know what this is?

warm pelican
#

Shards are basically multiple processes of the bot and each process manage a certain amount of guilds

jaunty plank
lean raven
jaunty plank
#

why are you fetching from top.gg if you are using webhooks

green wharf
#

how would i post shards correctly to the topgg api if i use internal sharding?

#

not sure how you can get shard id...

sour flame
#

Hi i keep running into this error 2021-02-18T21:14:56.591712+00:00 app[worker.1]: (node:4) UnhandledPromiseRejectionWarning: Top.GG API Error: 504 Gateway Time-out 2021-02-18T21:14:56.591726+00:00 app[worker.1]: at Api._request (/app/node_modules/@top-gg/sdk/dist/structs/Api.js:74:19) 2021-02-18T21:14:56.591728+00:00 app[worker.1]: at runMicrotasks (<anonymous>) 2021-02-18T21:14:56.591728+00:00 app[worker.1]: at processTicksAndRejections (internal/process/task_queues.js:93:5) 2021-02-18T21:14:56.591729+00:00 app[worker.1]: at async Api.postStats (/app/node_modules/@top-gg/sdk/dist/structs/Api.js:94:9) 2021-02-18T21:14:56.591737+00:00 app[worker.1]: (node:4) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4929)

lean raven
#

wait would this work? nvm i dont have an idea how to do it

warm pelican
sour flame
#

you are not helping me by telling me to read news they did not direct my problem at all

warm pelican
#

the api is still iffy and times out

sour flame
#

it`s annoying bc i get this error every secoend

jaunty plank
#

you should be handling errors

#

504 errors will sometimes happen

jaunty plank
#

you will need to fetch the user using whatever bot lib your using, then send, but yeah, that works fine.

#

you will also need to fill in the url and auth on the website

rain heart
#

use a less common one

#

such as 5000 or 8080

lean raven
#

ok

graceful merlin
#

I'm trying to send a message to whoever votes for my bot and this error is happening (Cannot read property 'id' of null)

glad merlin
#

I guess better to try and see ._.

graceful merlin
spice merlin
#

Where does one get an api token?

#

nvm found it

graceful merlin
#

@spice merlin go where you edit your bot and go to the webhook and here is your token

rain heart
#

wrong channel

daring void
#

aa

#

sorry

hoary brook
#

Y do I get this

rain heart
jaunty plank
#

its a good idea to catch potential errors

golden adder
#

Been getting 504 errors

rain heart
green wharf
#

this code should work for webhooks right?

#

i am not recieving anything in my console and am very confused, any help is appreciated

#

yes

#

apitester works

rain heart
#

Did you add the webhook url?

green wharf
#

yep

rain heart
#

Did you save before testing?

green wharf
#

tried using a bare express server as well, seems like nothing happening

#

yes

#

there's no reason why it wouldn't work with an AWS dns right?

#

oh I figured it out......

#

I never added http:// to the beginning of the webhook... feel stupid now lmao

#

Sorry about that

coarse crypt
#

Vv

restive otter
#

Does posting to the api still work the same as before?

nova pewter
#

Hey

pliant oak
#

anyone not able to test the webhook on discord servers

restive otter
#

question

#

do i need to worry about this error?

proud cloud
thorny thicket
#

Any idea what might be causing this err?

thorny thicket
#

what do I use then?

ruby kiln
#

how do we use webhooks to send guild count ? Idk how webhooks works

tepid walrus
#

help

restive otter
#

Can i link to news website auto post in discord?

steady cove
#

How do I post a bots shard count

restive otter
#

@restive otter

#

aga ben siteye login yapamiom

potent bramble
#

Yup still hasnt been fixed yet ig

violet panther
#
const client = new Discord.Client();
const AutoPoster = require('topgg-autoposter')

const ap = AutoPoster('topggtoken', client) // your discord.js or eris client
#

Can this work?

sullen nymph
#

try it and see

rain heart
#

try it and see

violet panther
#

Ok

#

I am using this

#

And it's not posting the stats

#

Is there any mistake on it?

restive otter
#

stop using dblapi.js

#

use @waxen widget-gg/sdk

#

discord istg

rain heart
#

this poor top dude KEKW

violet panther
#

Ah

#

Ok

restive otter
#

api is getting trouble ?.

rain heart
restive otter
#

yeah i've seen

rustic stirrup
#

Hi, how do I use the test button for webhooks

#

I have the webhook setup

wheat copper
rustic stirrup
#

Rip I hate Heroku

#

Cant wait to move to vps

shrewd burrow
#

just to clarify what is written in #site-status, is the api still completely broken? it says that api/v0 is working, does that include server count posting?

rapid kettle
#

server posting still fucked

#

at least I think

sweet hollow
#

I was gunna say came here after getting 5XX everytime I try to post to top.gg

wheat copper
#

votewebhooks are dead too it seems

sweet hollow
#

If there is a problem then no worries I'll hang fire until it gets fixed

#

rippppp

lean harbor
#

(node:36) UnhandledPromiseRejectionWarning: Error: 504 Gateway Time-out

#

I Am Getting This Error

sullen nymph
loud jewel
gilded orchid
#

TopGGAPIError [Top.GG API Error]: 504 Gateway Time-out

loud jewel
#

it is

uncut lintel
#

i also still getting a 504

#

rip

sullen nymph
sullen nymph
glad merlin
#

Hata var hata

sullen nymph
#

You wait until the issue is fixed on top.gg's end

glad merlin
#

APIda sฤฑkฤฑntฤฑ var

sullen nymph
glad merlin
#

I am explaining in turkish

#

He cannot understand

sullen nymph
#

Rules still apply, and no problem

teal wyvern
#

how do i add the servercount on the website?

#

how long will it take to display stats?

#

TopGGAPIError [Top.GG API Error]: 504 Gateway Time-out

#

just got this

#

nothing to worry about?

lyric bay
teal wyvern
#

keep getting it ๐Ÿ˜

#

like 100 times aswell

restive otter
shrewd burrow
#

but the simple answer is some of them are broken and some of them are not

#

is it related to the top.gg api

pallid forge
#

Whats up sorry?

restive otter
#

@restive otter they are aware of this issue.

pallid forge
restive otter
#

..

#

Yes

#

no idea

lyric bay
#

im having issues with posting stats (js)

const DBL = require("@top-gg/sdk");
const dbl = new DBL.Api(config.top_ggToken);
client.on('ready', async () => {
    dbl.postStats({serverCount: client.guilds.cache.size}).then(console.log);
}``` this results in a 504 timeout so is this a me problem or a topgg problem? the announcement did say everything *should* be fixed
rain heart
#

is related to announcements I'd say

lyric bay
#

oh is that what they mean by count is server count?

#

cuz shard count is a thing ๐Ÿ‘€

rain heart
#

server count if only server count is posted

#

because you can't post shard count without the server count

lyric bay
#

alright thanks

harsh hedge
#

Hi, I'd like to make a command like this.
When you type this command, I want you to vote.

jaunty plank
#

The api doesn't have votes like that. You can just link to the vote page

rain heart
#

yeah you can't vote in behalf of the user

carmine vessel
#

is giving this error TopGGAPIError [Top.GG API Error]: 504 Gateway Time-out

glad merlin
graceful merlin
#

``const Topgg = require('top-gg/sdk')
const api = new Topgg.Api('you token')

module.exports = async (client) => {
setInterval(() => {
api.postStats({
serverCount: client.guilds.cache.size,
shardId: client.shard.ids[0],
shardCount: client.options.shardCount
})
}, 1800000)
}``

#

this would be the best way to post your status on top.gg

#

@lyric bay

jaunty plank
#

the auto poster is the best way imo

#

its just 2 lines of code

lyric bay
#

im not sharding yet but thks

#

and i do have the interval i just didnt include it in my minimal example

lyric bay
#
const Topgg = require('top-gg/sdk')
const api = new Topgg.Api('you token')


module.exports = async (client) => {
  setInterval(() => {
  api.postStats({
    serverCount: client.guilds.cache.size,
    shardId: client.shard.ids[0],
    shardCount: client.options.shardCount
  })
 }, 1800000)
}```
#

๐Ÿ˜ฎ

graceful merlin
#

I prefer it so sincerely

graceful merlin
#

lol

lyric bay
#

you did two not three

restive otter
#

@bleak canyon I have a question that I'd like to ask you in a DM

inland widget
#

Is there any way to make a custom command that will trigger the bot to perform a command?

jaunty plank
#

are you looking for webhooks?(receiving when votes happen)?

inland widget
inland widget
jaunty plank
#

you can just use the has voted method, or keep track of votes yourself.

inland widget
#

That's what I've been doing currently

#

I got a could not find user today lol

jaunty plank
fickle zealot
#

i havent heard being able to run bot commands in other bot commands

#

you might have to change the structure of your commands and make them all functions

#

and work from there

restive otter
#

is there a api wrapper for python?

hot axle
restive otter
#

thanks

barren kestrel
#

My webhook keeps saying 401 unauthorized.

#

Its not authorizing

#

Ping me if you know thanks c:

restive otter
#
const Topgg = require('@top-gg/sdk')
const dblapi = new Topgg.Api(process.env.DBL_KEY)
dblapi.postStats({ serverCount: bot.guilds.cache.size})

its giving a error: Missing Server Count
ping me please

barren kestrel
#

Are you using bot or client in your discord.js

tawdry flax
#

In how many languages is vote counting api available?

#

Is there any way, i can log votes in any external space not in bot?

outer ferry
#

cats ok

#

cast ok

odd compass
#

how can i get api key ?

sullen nymph
#

API can have delays

#

Try again

sullen nymph
restive otter
#

@barren kestrel im using bot

restive otter
shy vortex
restive otter
#

What you'r mean ? @shy vortex

shy vortex
#

this

#

it automatically posts the stats to top.gg

restive otter
#

Ok let me see this

wild solar
#

is it possible to make server count on top.gg with discord bot maker?

#

not sure what i gotta type into : Webhook URL

upper spindle
zinc trail
#

.route 24

rain heart
barren kestrel
#

Im using repl to host

jaunty plank
#

The url seems fine

#

Your auth is the same in your code and in the bots edit page right?

restive otter
#

@rain heart is issues has been solved?

rain heart
restive otter
#

c'mon

barren kestrel
#

In my code where do I put that url

#

and thats the url in my bot eedits page

jaunty plank
#

No where

barren kestrel
#

ok

jaunty plank
#

I'm asking about the auth

barren kestrel
#

but it still says unauthorized

#

yes

#

I did

#

in a .env

jaunty plank
#

Double check its exactly the same

barren kestrel
#

It is..

#

Ill send code

#

Of the main part

#

and the eror

#

one sec

#

Error

#

@jaunty plank

jaunty plank
#

Oh not a webhook error

#

Its a request error

#

Use your top.gg token in your client

barren kestrel
#

?

#

Wdym

jaunty plank
#

The error isn't with the webhook

barren kestrel
#

oh

#

thrn what do I do

#

to fix

jaunty plank
#

Your top.gg token in your env isn't correct.

barren kestrel
#

Im using this

jaunty plank
#

@signal hawk is this a known issue with the api right now?
401 Unauthorized with the correct token

signal hawk
#

not as far as im aware

barren kestrel
#
TOKEN=fattoken
TOPTOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjgwMzk2OTQ5NDU4NTE4MDIzMCIsImJvdCI6dHJ1ZSwiaWF0IjoxNjEzODM0NjgxfQ.nx1Pk6TbKoad7QZgBpUIwPtBwhiIkafAR6fxIh6CWUk
WEBHOOKAUTH=bob```

the toptoken i have regened so that isnt my current
#

and my auth isnt the same

#

but thats how I formatted

#

Do I need to put a comma inbetween the lines?

#

its called

#

config.js

#

@jaunty plank

jaunty plank
#

Yeah but you already are.

barren kestrel
#

true

#

so idk

jaunty plank
#

Oml I'm dumb

#

Auto poster code

barren kestrel
#

?

#

Ok

jaunty plank
#

You have the string "topgg token" not the token

barren kestrel
#

wtdym

#

oh

#

im udmb

jaunty plank
#

Lol, we both missed it

barren kestrel
#

XD

#

Let me see if it wokrs now

#

@jaunty plank
:c

jaunty plank
#

Again? Ok one sec

barren kestrel
#

np

jaunty plank
#

just to be sure, you changed

const ap = AutoPoster('topggtoken', client)

to

const ap = AutoPoster(config.toptoken, client)

and changed your env variable to the new token right?

barren kestrel
#

Yes

#

Iโ€™m on mobile but I did do that

#

@jaunty plank ping me if you find a reason. Appreciate the help!

#

c:

jaunty plank
#

honestly, zero clue

#

the error is with the autoposter

barren kestrel
#

Hm yes

#

Maybe I take that out

jaunty plank
#

which is just two lines, so im not sure if the token is correct theres zero reason for it not to work

barren kestrel
#

And also how would I make my votecheck command work

#

Ok

jaunty plank
#

like checking if someone voted?

#

personally, I would track votes in your own database with the webhook, however you can use the has voted method to check if someone voted

barren kestrel
#

Yes

#

Ok

#

@jaunty plank so it didn't send an unauth error but after I run my votecheck it does this

jaunty plank
#

so, that error means the token is incorrect.

#

whatever is in your env variable is not right.

barren kestrel
#

...

#

Ok

#

Let me show you everything

#

@jaunty plank not real tokens

jaunty plank
#

so to me, everything looks right, the only thing I cannot validate is the token, which is what the error is about.

barren kestrel
#

hm

#

i took out the auto poster

jaunty plank
#

the auto poster isnt the problem, the token your using with the autoposter is

rain heart
#

what are you trying to do on the api?

#

just post servercount?

barren kestrel
#

Im posting server count and I want a vote check command

#
const Discord = require('discord.js');
const client = new Discord.Client();

const config = require('./config.js');
const Topgg = require('@top-gg/sdk')
const api = new Topgg.Api(`${config.toptoken}`)

const express = require('express')
const app = express() // Your express app
const keepAlive = require('./server.js');
const webhook = new Topgg.Webhook(`${config.topggwebhookauth}`)

module.exports = {
    name: 'votecheck',
    description: 'Check if the user has voted for News Agent on top.gg',
    execute(client, message, args) {
        client.hasVoted(message.author.id).then(c => {
      if(c) {
        message.channel.send(`Yay ${message.author.username}! You voted for me on top.gg! Go tell all your friends to vote as well!`)
      } else {
        message.channel.send(`:o ${message.author.username} you haven't voted for me yet! Go vote for me now!\nn!vote`)
      }
    })
    }
};```
#

Does this seem fine?

#

This votecheck

#

i dont need webhooks const tho

#

mb

rain heart
#

Are you familiar with using request clients? Just to make sure it isn't a problem on your code

#

such as postman?

barren kestrel
#

not really..

#

i got my server count working

rain heart
#

Is it just making the requests to get the vote?

barren kestrel
#

ye

#

thats my votecheck code

#

above

rain heart
#

alright lemme test on my end

barren kestrel
#

ok tysm

#

ive been in this issue for the past day and half

rain heart
#

though gonna test it myself first

barren kestrel
#

ok

#
const Discord = require('discord.js');
const client = new Discord.Client();

const config = require('config.js');
const Topgg = require('@top-gg/sdk')
const api = new Topgg.Api(`${config.toptoken}`)

module.exports = {
    name: 'votecheck',
    description: 'Check if the user has voted for News Agent on top.gg',
    execute(client, message, args) {
        client.hasVoted(message.author.id).then(c => {
      if(c) {
        message.channel.send(`Yay ${message.author.username}! You voted for me on top.gg! Go tell all your friends to vote as well!`)
      } else {
        message.channel.send(`:o ${message.author.username} you haven't voted for me yet! Go vote for me now!\nn!vote`)
      }
    })
    }
};```
rain heart
#

and it does not work at all?

barren kestrel
#

@rain heart my updated thing

rain heart
#

like not even once?

barren kestrel
#

I changed this

rain heart
#

yeah im testing it manually

barren kestrel
#

k

#

i get no errors when I run the bot

#

@rain heart I get this error when I run

#

How do I find if the user voted

rain heart
#

you seem to be using the wrong method

barren kestrel
#

hm

rain heart
#

what is client?

jaunty plank
#

hasvoted is used with topgg

#

not client

barren kestrel
#

oh

#

then what do I use

#

it said htta inthe docs

#

im dumb

#

Idk what to put there

#

topgg

#

?

#

or api

jaunty plank
#

op api

barren kestrel
#

?

rain heart
#

yeah i can confirm it is your code

jaunty plank
#

api.hasVoted(id)

rain heart
#

what is client

barren kestrel
#

ok

rain heart
#

check what you defined as client

barren kestrel
#

I defined it wrong

rain heart
#

it should be defined as the top.gg client, not your bot client

barren kestrel
#
const Discord = require('discord.js');
const client = new Discord.Client();

const config = require('config.js');
const Topgg = require('@top-gg/sdk')
const api = new Topgg.Api(`${config.toptoken}`)

module.exports = {
    name: 'votecheck',
    description: 'Check if the user has voted for News Agent on top.gg',
    execute(client, message, args) {
    api.hasVoted(message.author.id).then(c => {
      if(c) {
        message.channel.send(`Yay ${message.author.username}! You voted for me on top.gg! Go tell all your friends to vote as well!`)
      } else {
        message.channel.send(`:o ${message.author.username} you haven't voted for me yet! Go vote for me now!\nn!vote`)
      }
    })
    }
};```
#

does this seem fine

#

te

#

Oh ok

#

does that seem fine

rain heart
#

try it and see, if it still says hasVoted doesn't exist

barren kestrel
#

ok

#

@rain heart @jaunty plank I get this error

#

Code:

const Discord = require('discord.js');

const config = require('config.js');
const Topgg = require('@top-gg/sdk')
const api = new Topgg.Api(`${config.toptoken}`)

module.exports = {
    name: 'votecheck',
    description: 'Check if the user has voted for News Agent on top.gg',
    execute(client, message, args) {
    api.hasVoted(message.author.id).then(c => {
      if(c) {
        message.channel.send(`Yay ${message.author.username}! You voted for me on top.gg! Go tell all your friends to vote as well!`)
      } else {
        message.channel.send(`:o ${message.author.username} you haven't voted for me yet! Go vote for me now!\nn!vote`)
      }
    })
    }
};```
rain heart
#

is your token valid?

barren kestrel
#

so its my token now.

#

ye

rain heart
#

the config.toptoken

#

Enter it manually just for testing

rapid kettle
#

config.js

#

๐Ÿ‘€

rain heart
#

don't have it load through your config

rapid kettle
#
`${config.toptoken}`
barren kestrel
#

ok

#

Yay! i thinkit works. let me check my webhook.

#

Ok my votecheck works

#

my webhook doesnt send data when I vote

#

Any idea? @rain heart

rain heart
#

what webhook?

#

Discord webhook?

barren kestrel
#

Yes

#

I want it to send a message through webhook to a channel

#

I have webhook done

rain heart
#

did you enter it on your top.gg bot page settings?

#

under webhooks?

barren kestrel
#

ye

rain heart
#

DM me the url if you're comfortable with that

#

I'll make a test request

barren kestrel
#

Ok

#

There

#

is that the right url?

#

oir do I need the actual discord webhook url

rain heart
#

nah that should be fine

#

give me a minute

restive otter
#

how do i get a api key

rain heart
#

bot page settings -> webhooks

jaunty plank
#

repl expects a specific port, i dont think port 4000 works

#

its 3000 iirc

restive otter
#

thank you

rain heart
#

don't you have to set ports you want to use or something?

barren kestrel
#

Ok

rain heart
#

never used repl in my entire life

barren kestrel
#

Hm ok

brittle spoke
rain heart
#

though i can confirm the webhook is running as by the response

barren kestrel
rain heart
#

on your app.post

barren kestrel
#

But where in it

#

I donโ€™t see the docs for it

#

I usually donโ€™t use webhook through code so idk how to do that

rain heart
#

below this

#

though no clue what exactly

jaunty plank
#

discord webhooks have to go through your bots library

barren kestrel
#

Ok

#

So can you guys give an example xD. Idk what to put there my webhook irl?

#

Url

#

From the interactions page in my server

jaunty plank
#

depends on which bot library you use

barren kestrel
#

Djs

barren kestrel
#

Ty

barren kestrel
#

So can I not use anything else?

jaunty plank
#

i cant remember how many ports repl allows

hollow steeple
#

There is such an error when I write the total number of servers on the site.

jaunty plank
#

it might just be 1

barren kestrel
#

Eek

barren kestrel
#

-9000 might work

jaunty plank
#

ports dont go negative

barren kestrel
#

9000*

jaunty plank
#

if you absolutly need multiple things on the same port you can just put them on diffrent endpoints

barren kestrel
#

Ok

jaunty plank
#

just note you cant have multiple listeners

barren kestrel
#

How would I do that

#

Ok

jaunty plank
#

it kinda depends

barren kestrel
#

K

jaunty plank
#

the best way to explain it is building an api

barren kestrel
#

Ok

#

And then for webhook show would I use them here I saw that website but I know that much so far

#

How would integrate it into top.gg

#

Thatโ€™s what I need to know

#

Does anyone have an example?

jaunty plank
#

you can put your webhook intergration for discord in the post request of top.gg

barren kestrel
#

Bruh Ik that but what do I put there

#

The djs code and that donโ€™t seem to connect

#

Do I just send the variable?

jaunty plank
#

you can send whatever you want, personally I would send an embed with the data I want to send

barren kestrel
#

Ok

jaunty plank
#

which is covered in the page i sent

barren kestrel
#

K

#

@jaunty plank does this seem right

#
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
  // req.vote is your vote object e.g
  console.log(req.vote.user) // 221221226561929217
  dwebhook.send(`${vote.user} has voted for News Agent on top.gg!`)
}) 
#

havent tested

jaunty plank
#

did you initialize the webhook client anywhere?

rain heart
#

the url isn't valid

barren kestrel
#

yes

#

I did initialize

#

in dwebhook

rain heart
#

trying to make a request now to your webhook just tells me Hmmmm.... We Couldn&#39;t Reach Your Repl

barren kestrel
#
const dwebhook = new Discord.WebhookClient("812503692866748417", "ezduqzDkHNkfl-0E_0VWLzMTa3_2VKDNE3LKdRhKlDJniFBYdPgfvE6dKARdow6PnJrB")```
rain heart
#

What's the new url?

barren kestrel
#

wydm

rain heart
#

of your webhook

#

your vote webhook

barren kestrel
#

one sec

rain heart
#

not your discord webhook

#

your vote webhook

#

you can't use a discord webhook on top.gg

#

you need to have your own webhook that then sends data to your discord webhook

jaunty plank
#

hes not trying to is he ๐Ÿ‘€

#

hes trying to forward the top.gg webhook to a discord webhook, which is what this code does.

app.post('/dblwebhook', webhook.middleware(), (req, res) => {
  // req.vote is your vote object e.g
  console.log(req.vote.user) // 221221226561929217
  dwebhook.send(`${vote.user} has voted for News Agent on top.gg!`)
}) 
#

which looks correct to me.

rain heart
#

his webhook he has to enter on top.gg (the one they mentioned previously) does not work anymore

#

unless they changed something on it

barren kestrel
#

Oh

#

Ok here

#

Thatโ€™s my old message

#

Iโ€™m on mobile

#

But there is the link @rain heart

jaunty plank
#

the webhook is? or the vote is?

barren kestrel
#

Wdym

hushed reef
#

hopefully the link works

jaunty plank
#

whats your actual error

hushed reef
#

i'll see my way out now

barren kestrel
#

Thatโ€™s what I put in my webhook url on top.gg webhook page

rain heart
#

getting the same issue as before, cannot post dblwebhook

barren kestrel
#

Ok then idk. How do I create that webhook on replit

#

Port is 9000

jaunty plank
#

port 9000 doesnt work, i think only 3000 works

barren kestrel
#

Ok

#

Then how do I use 2 ports for this?

jaunty plank
#

repl as a free platform has a lot of restrictions

barren kestrel
#

Ye

jaunty plank
#

i dont think you get 2 ports

barren kestrel
#

8080 should work

jaunty plank
#

you can use 8080 or 3000 afaik

#

one or the other

barren kestrel
#

ok

jaunty plank
#

so, whats the other thing that needs a port?

barren kestrel
#

Can someone tell me whats wrong

#

?

#

Code

barren kestrel
#

but still when I go to

#

i get cannot get/dblwebhook

jaunty plank
#

you dont visit the webhook url

barren kestrel
#

ok

#

But it should show my replit

elder sonnet
#

Hi, Where go the votes rewards when the bot have 100 votes?

jaunty plank
barren kestrel
#

what is

#

i have no dup ports..

#

oh

#

ok

jaunty plank
#

the webhook is listening on that port

barren kestrel
#

so whats wrong with my code then

barren kestrel
jaunty plank
#

did you test your webhook on the site?

barren kestrel
#

yes

#

Got no message

#

Is my index.js look good?

#

WIth th webhook

jaunty plank
barren kestrel
#

nope

#

is my index good tho?

jaunty plank
#

probably because you have two things listening

#

you can only have one

barren kestrel
#

bruh where I have 2 diff ports

jaunty plank
#

a paid platform

#

or combine them with custom code

barren kestrel
#

but I can use 2 ports

#

im using 2 ports

#

@jaunty plank

jaunty plank
#

so does it receive the request then?

barren kestrel
#

i think so but it doesnt log anything

#

i think its my webhook

jaunty plank
#

then its not receiving the request

#

๐Ÿ‘€

#

it worked when you had only one thing on it

#

as tested by hope

#

lol

#

every time you changed the port it didnt work

#

every time you put it on the main port it worked

#

so ๐Ÿคทโ€โ™‚๏ธ

#

at this point i cant just keep saying the same thing

barren kestrel
#

When did it work..

jaunty plank
barren kestrel
#

I also never had it on 1 port only...

jaunty plank
#

ONE THING WORKS AT A TIME

#

WHEN YOU PUT IT ON 3000 it worked

barren kestrel
#

its on 3000 rn

jaunty plank
#

@rain heart do you mind testing the port

#

the url

rain heart
#

sec

jaunty plank
#

im too frustrated to do it

rain heart
#

cannot post

jaunty plank
#

remove your other thing

rain heart
#

adding 3000 to the request doesn't work either

jaunty plank
#

repl doesnt give front end ports

#

it always forwards 443 and 80 to the used port

barren kestrel
#

ok

rain heart
#

https://newsagent.develite.repl.co/dblwebhook tells me cannot post path

barren kestrel
#

so if I want my webhook to work I need to not have hosting

#

what if I made a nother replit file with my webhook in that

jaunty plank
#

sure

barren kestrel
#

ok

#

so would I make a new discord bot in that file or

jaunty plank
#

you can do whatever you want in that file

barren kestrel
#

just copy everything except my discord bot token for my config.js?

barren kestrel
#

cause then id need to login with my discord bot token

jaunty plank
#

then login? you can login on a bot multiple times

#

it would be smart to disable most intents on the second instance.

barren kestrel
#

ok

#
const fs = require('fs');

const Discord = require('discord.js');
const client = new Discord.Client();

const config = require('./config.js');
const Topgg = require('@top-gg/sdk')
const api = new Topgg.Api(`${config.toptoken}`)

const express = require('express')
const app = express() // Your express app
const webhook = new Topgg.Webhook(config.topggwebhookauth)
const dwebhook = new Discord.WebhookClient("812503692866748417", "ezduqzDkHNkfl-0E_0VWLzMTa3_2VKDNE3LKdRhKlDJniFBYdPgfvE6dKARdow6PnJrB")

app.post('/dblwebhook', webhook.middleware(), (req, res) => {
  // req.vote is your vote object e.g
  console.log(req.vote.user) // 221221226561929217
  dwebhook.send(req.vote.user `has voted for News Agent on top.gg!`)
});

app.listen(3000)```
#

This and my env and config is all I have

#

is that all I need

#

or do I need ot login with my bot?

#

@jaunty plank

#

Sorry for ping

jaunty plank
#

if your just using a webhook you wont need to login iirc

barren kestrel
jaunty plank
#

dont think you need to remove anythign

barren kestrel
#

ok

#

but when I run

#

I get this stuff

jaunty plank
#

theres no reason to load the webpage

#

since there is no webpage

barren kestrel
#

Ok

#

So I started my thing

#

it should work now?

#

Ill remove the webhook stuff in my main file?

jaunty plank
#

update the url to the new one on the site

barren kestrel
#

Ok

#

Nope nothing

#

wait

#

It sent an error!

#

@jaunty plank

#
const fs = require('fs');

const Discord = require('discord.js');
const client = new Discord.Client();

const config = require('./config.js');
const Topgg = require('@top-gg/sdk')
const api = new Topgg.Api(`${config.toptoken}`)

const express = require('express')
const app = express() // Your express app
const webhook = new Topgg.Webhook(config.topggwebhookauth)
const dwebhook = new Discord.WebhookClient("812503692866748417", "ezduqzDkHNkfl-0E_0VWLzMTa3_2VKDNE3LKdRhKlDJniFBYdPgfvE6dKARdow6PnJrB")

app.post('/dblwebhook', webhook.middleware(), (req, res) => {
  // req.vote is your vote object e.g
  console.log(req.vote.user) // 221221226561929217
  dwebhook.send(req.vote.user `has voted for News Agent on top.gg!`)
});

app.listen(3000)```
#

Ok so I got it I think

#

Thats the user id right?

jaunty plank
#

yeah

barren kestrel
#

ok

#

so do I need this repl to run 24/7?

#

or not

jaunty plank
#

for it to work yes

barren kestrel
#

ok

#

but the thing is

#

whenever i use my host

#

my webhook doesnt wpork

#

should I just use uptime robot to ping it every 10 min?

jaunty plank
#

that would keep it online yeah

barren kestrel
#

k

#

tysm @jaunty plank and @rain heart appreciate it!

green wharf
#

Would i just put this in my bot if i am going to be internally sharding? Or would I remove the serverCount line

jaunty plank
#

yeah, just use that iirc

barren kestrel
#

Im trying to say if the command contains a mention, find if the mentioend suer has voted

#
const Discord = require('discord.js');

const config = require('../config.js');
const Topgg = require('@top-gg/sdk')
const api = new Topgg.Api(config.toptoken)

module.exports = {
    name: 'votecheck',
    description: 'Check if the user has voted for News Agent on top.gg',
    execute(client, message, args) {
    api.hasVoted(message.author.id).then(c => {
      if(c) {
        message.channel.send(`Yay ${message.author.username}! You voted for me on top.gg! Go tell all your friends to vote as well!`)
      } else {
        message.channel.send(`:o ${message.author.username} you haven't voted for me yet! Go vote for me now at https://top.gg/bot/803969494585180230`)
      }
    })

    if (args[1] === mentions.members.first()) {
      api.hasVoted(args[1]).then(c => {
      if(c) {
        message.channel.send(`Yay ${message.author.username}! You voted for me on top.gg! Go tell all your friends to vote as well!`)
      } else {
        message.channel.send(`:o ${message.author.username} you haven't voted for me yet! Go vote for me now at https://top.gg/bot/803969494585180230`)
      }
    })
    }
    }
};```
#

But it doesnt work

outer mica
#

how do I even get an api?

rain heart
outer mica
#

do you need to have a bot on top.gg to be able to get an api?

rain heart
#

yes

#

your bot needs to be approved

outer mica
#

is there any other way?

rain heart
#

no

barren kestrel
night matrix
#

๐Ÿ‘‹ Hi, I'm waiting for my bot to be added but figured I'd set up my webhook endpoint in advance (using Postman to test it) and was wondering what body encoding the webhook uses?

I have the schema https://docs.top.gg/resources/webhooks/#schema - it just doesn't mention if it's application/x-www-form-urlencoded or multipart/form-data (or something else I haven't accounted for)

I'm assuming application/x-www-form-urlencoded for now and have it correctly sending a message to the user and giving them the 'reward' for it at least

rain heart
#

You would receive something like

{
 "user": "12345",
 "bot": "12345",
 "isWeekend": true,
 "type": "vote",
 "query": "1=2&3=4"
}

night matrix
#

Follow-up question: are IP addresses supported as webhooks? I.e. mine would be something like http://X.X.X.X:6969/voted-for-bot currently as I don't have a domain for it

rain heart
#

Yes

#

your webhook can have both ip addresses and domains

night matrix
#

Thanks again ๐Ÿ™‚

quaint torrent
#

does the webhook work with discord's inbuilt webhook feature?

#

like could i set up a channel for top.gg webhooks and itll be fine with that?

#

probably not m_clueless

kind path
#

on_dbl_vote get all new votes on my bot, right?

restive otter
#

in real time, yes

tulip ermine
#

Best way to do server count across multiple shards on different physical machines in python?

restive otter
#

ig you can post the server count of a specific shard, not sure if you'll get ratelimited. If that's the case, why not fetch the server count from all processes and make a single request?

cursive steppe
#

I'm trying to post server count to api with post request but even i give the server_count data, it saysjs {"error":"Required parameter server_count or shards missing"}
My data:

{
"server_count":100
}```
brittle spoke
#

top.gg is having issues right now which affects the api

restive otter
#

what is the python module for top.gg again?

#

nvm got it

kindred swift
#

Python related question, how can I check if a user has voted on my bot?
I know how to print the info and store it etc.
So I've been thinking to stamp when this person voted then check if more than 12 hours has gone by, but it seems like there's an easier way.
But I am not sure what that is, help?

sullen nymph
#

Webhooks

kindred swift
sullen nymph
#

๐Ÿ˜‚ You're welcome

kindred swift
sullen nymph
#

You can use aiohttp.web or dblpy to get a webhook running. Top.gg will send you vote data when someone votes to your webhook if you set everything up correctly

kindred swift
restive otter
rain heart
#

@heavy summit again that is just an example

#

it does not have any actual meaning

heavy summit
#

i see

#

but why is it included in the data provided from webhooks

rain heart
#

it can be used for something like where the user voted from

#

you could for example have a notification reminder, redirecting the user to https://top.gg/bot/botid/vote?votereminder, with which you can determine that the user voted through the reminders

#

if you dont need that, you can safely ignore it

heavy summit
#

well tbh, i do need it, i was just wondering if there was a way to correspond the webhook data to the api call of if someone voted (through some id mapping)

#

so i was wondering if the notrandomnumber was like an id i can verify to see if there was a way to fetch a vote_id of some kind for the last person that voted through the api and verify if a webhook data corresponding to it has already been stored, etc.

#

but, anyways, thank you

rain heart
#

you can use whatever you want, you just need to send the user the url with the query

#

then getting the query through the webhook data

jaunty steppe
#

So is there going to be a v1 of the API? If so, do you know of any major differences to v0?

#

also reviews API endpoint when

#

im tired of scraping

rain heart
#

review endpoints are possibly going to be a part of it, yeah

#

though there's no eta on when v1 gets released

jaunty steppe
#

rip

uncut granite
#

Save it into a database and make a cmd called vote and shows how many time left for next vote

kindred swift
graceful merlin
#

-botinfo 796490771452788736

abstract mothBOT
#

tickNo That bot wasn't found

graceful merlin
#

-botinfo 796490771452788736

abstract mothBOT
#

tickNo That bot wasn't found

graceful merlin
#

-bots @graceful merlin

abstract mothBOT
rain heart
#

Not in here

uncut granite
restive otter
#

@rain heart any progress?

rain heart
#

Has anything changed on the pinned messages or is there anything new in #site-status?

restive otter
#

ok

peak grail
#

#help

#

-help

rain heart
kindred swift
# uncut granite both

Do you have your own mysql database or? If so or whatever you use can you learn me please?

calm niche
#

I have a server and wish to give the voters some extra features. So i added a reward role but whenever i try to submit it the page reloads and shows this message. The bot is above all the other roles and has manage roles turned on, but my voters aren't getting the role.

willow spindle
calm niche
#

Ah thankyou

untold vortex
#

am I able to start posting stats to Top.gg before im accepted?

long grotto
untold vortex
#

okie

vapid scaffold
#

can someone help me with vote webhooks

#

btw

#

ping me when u reply

vapid maple
#

webhook still cant function right now?

turbid umbra
#

-botinfo 804295231838355466

abstract mothBOT
#

tickNo That bot wasn't found

turbid umbra
#

-bots 804295231838355466

abstract mothBOT
#

tickNo This user has no bots

turbid umbra
#

-bots 668740503075815424

abstract mothBOT
#

tickNo This user has no bots

shy vortex
#

@turbid umbra please use commands in #commands

vapid scaffold
#

hi can someone help me with vote webhooks for my bot

shy vortex
#

lol

fickle hemlock
#

-bots 812217484970557451

abstract mothBOT
#

tickNo This user has no bots

vapid scaffold
#

can someone help me with vote webhooks
python and discord.py
btw
ping me when u reply when a user votes how do i make it show on the command 12h is left like dank memer but in python

#

-bots @vapid scaffold

abstract mothBOT
fickle hemlock
#

-bots @fickle hemlock

abstract mothBOT
#

tickNo This user has no bots

cyan condor
#

-bots

abstract mothBOT
cyan condor
#

aa

shy vortex
#

@rain heart can you please tell them not to use commands here

loud jewel
shy vortex
#

apparently they don't understand

loud jewel
shy vortex
#

yes

loud jewel
fickle hemlock
#

sorry

loud jewel
#

why should i upgrade to the auto poster?

restive otter
#

hasVoted is working?

#

or are there still down

rain heart
shy vortex
#

makes it easier

#

and also because it works with sharding

#

remember this

gloomy sedge
#

HI

bright turret
gloomy sedge
#

thx

hushed reef
#

for my PHP friends, I have an API wrapper in the works for top.gg using PHP 8 that I hope to publish next month, currently tied up with other works.

neat wedge
#

If I query /api/bots without a search string, just limit=1 then why do I only get a total count of 710?

visual idol
#

hello, how do i get the api

golden cipher
#

-bots

visual idol
#

-bots

#

-api

golden cipher
#

-api

restive otter
#

-bots

trail sigil
abstract mothBOT
#

@restive otter

Hey! Bots aren't given permissions to send responses in this channel. Please use #commands to run commands.

trail sigil
#

next person to run commands in this channel will be muted

fickle zealot
#

-botinfo 711934102906994699

rapid kettle
#

@trail sigil claim your free mute

trail sigil
#

pog

rapid kettle
#

Itโ€™s like someone disabled read message history for that dude lmfso

trail sigil
#

-m @fickle zealot running bot commands in #topgg-api (the last message in the channel says 'next person to run commands in this channel will be muted', but still they ran a command) | 3 days

abstract mothBOT
#

๐Ÿค Muted justjude#2296 (@fickle zealot)

trail sigil
#

anyone else who would like to run commands, please use #commands

lunar wraith
#

Hello i have a question
Can i use the Top.gg Logo for Discord Webhooks like Votes

rain heart
#

sure you can

lunar wraith
#

How i can get the Logo?

rain heart
lunar wraith
#

And thank you

lunar plaza
#

when does the api/bot/id/votes reset

smoky steppe
#

Need answers for the administrator perm users to my server who cannot edit the server on top.gg, is it still due to the current API from the recent update.. questionE

barren kestrel
#

Maybe. Drk

chrome oracle
#

oh

#

sorry

smoky steppe
#

Okay

hushed reef
#

do you need to auth yourself first before sending requests, or is auth required per HTTP req?

rain heart
#

per request through the Authorization header

hushed reef
#

thank

#

additionally, for when you input value is this for a singular instance being passed, or can it handle multiple instances under 1 field? can I declare a list through this search feature as well?

mossy carbon
#

Hey there! Wich protocol is needed for vote webhook ?

hushed reef
#

most of the api reqs seem UDP based

mossy carbon
#

ok thanks, will try wit udp then tse

green mantle
#

WTF are you lot on

green mantle
mossy carbon
green mantle
#

yes you should use TCP

mossy carbon
#

hm ok :3

finite osprey
#

Hi! I have a question. Can I use the API from Top.GG in one bot, to record the votes from another bot? (Both bots are from my property)

rain heart
#

You are allowed to do that, as long as you're not rewarding users for voting for another bot

finite osprey
#

Okay. And if I want to reward the users for voting the other bot, from my property? That is not allowed, isn't it?

rain heart
#

No that is not allowed

#

You cannot reward users for voting for another bot

finite osprey
#

Okay, and if the reward is some money, from a fictional economy system, that will be the same?

#

I want to be sure to not break the rules, I'm sorry if I'm a bore

ancient plover
#

Is it only me or the API is not working?

#

it used to work, but now it isnt

#

it doesnt give my bot votes

#

just stopped doing it

ancient plover
#

oo

#

okay

harsh wadi
#

how can i show the guild count on the overview

rain heart
hidden marten
#

So does the /check endpoint display total votes or just daily votes?