#topgg-api
1 messages · Page 61 of 1
@dim halo You can look further for a traceback to the place the error is at, then you can change your code
I'll try it without the port and see what happens, it's something I've not tried yet

Traceback to it, and show the piece of code the error is in
const Discord = require("discord.js");
const client = new Discord.Client();
const DBL = require("dblapi.js");
const dbl = new DBL('token', client);
// Optional events
dbl.on('posted', () => {
console.log('Server count posted!');
})
dbl.on('error' => {
console.log(`Oops!`);
})
I removed e
Put your dbl api token in 'token'
That's not the issue
I'm not stupid, I entered
so what?
Can you show the exact line the error is at
No like, the exact line of your code the error is in
error event returns an item
from the docs
dbl.on('error', e => {
console.log(`Oops! ${e}`);
})
did you put the comma
try to put (e)
yes
sooo what
the problem is the code doesn't work @hearty lintel
wdym
but the error shows in the console
whats the error
third time's the charm
at eval?
what are you evaling
^^
but what should I mean?
um
Ok well, this doesnt seem to be a dapi error, this is on your end i think because as far as im aware there's not emitting/anything having to do with the evalling of an error or posting stats
Look at line 307
according to the first line in the stack trace you are using eval()
what code did you place inside eval
so if it's not a mistake, why does not it work
probably cuz its not running?
if your code errors out like that your client wouldnt fire a ready, and wouldnt post stats
I know that
Ok then this issue isn't api related. Look at your line 307 and fix your code and if you get stumped on that somehow ask in #development
🤔 '

they're trying to set up stat posting
help with the API / libraries belongs here
theyre providing an error that has nothing to do with api-- idk what to say really
the only way the client would post undefined is if you didnt login, and manually emitted a ready event
or if it never posted ig
just gotta know what they're evaling
the only way the widget can say undefined is if you never posted
@dim halo paste the code you evaled
yes
I want to know the code supplied to eval, either through a command or by another function
so what should I change in this line?
bot.js is literally no use for debug purposes
show the code of that line and on until the func ends
im telling him where to get the code to show u tonkku 
uh
show the full thing around that
no send the code u used in ur eval command
send the code you put into the eval command
You are running an error event through an eval?
is that the whole code
why arent you putting that into your code originally? dont put it in the eval what
are you setting up dbl in an eval command at this point idek
this is the whole code
const Discord = require("discord.js");
const client = new Discord.Client();
const DBL = require("dblapi.js");
const dbl = new DBL('xd', client);
// Optional events
dbl.on('posted', () => {
console.log('Server count posted!');
})
dbl.on('error', (e) => {
console.log(`Oops! ${e}`);
})
youre putting that into eval?
That code is correct, don't move it to into an eval
no
Just put it in your bot file on it's own
ok gud so whatre you doing with eval
if youve already added a listener for ::error
wat
so, youre, setting up the dbl post. in an eval.
and when he enters the command and then the error is shown
And you are evaluating that string of code above?
what?
You put that code you sent a minute ago, into that eval?
so confusing
indeed
what a fck eval, I have no idea what it is
Just, the code you sent above. Move it outside the eval, into your bot's main file
the command
Outside of any events
did you send that code in discord to run it?
to bot.js, where? for what?
Yes
That will trigger once your bot is online
No need to run any command to active it
Just move it to the bot.js file, and when your bot is online it will automatically post it to DBL
and you can not give an interval that will refresh every few minutes?
you do not run the dbl stuff over discord, it should already be in your code as it is. not through a command
the module will automatically add an interval
30m
place the code into your main file
dont spam and did it say it posted?
I did it

no
did it say "Server count posted" in console
just "Bot is ready"
Give it some time
if it didnt say server count posted it didnt fire ::posted
so
no not time, just broke again, send the whole new beginning of your code please
does bot.js start with something like
const Discord = require("discord.js");
const client = new Discord.Client();
I would suggest you learn the basics of JavaScript first, then come back
and yet you dont understand how to use code without throwing it through an eval script.
what's your native language?
pl
polish?
ye
hm
where have you pasted the script
in bot.js
you're not supposed to paste the first two lines since those should already exist in the file
wut?
eyeyey id say just drop it and come back another day or another year tbh cuz you dont understand basic js
wh*re, how many times do I have to tell you that I know discord.js but I just can not speak English and I do not understand what you write to me.
anyone know any polish people?
disrespectful too i see
@dim halo Przenieś kod, który masz do głównego pliku, upewnij się, że nie ma żadnych zdarzeń i nie definiuj rzeczy dwa razy, a następnie uruchom ponownie bota i powiedz nam, co to jest nowy błąd.
can you understand it or not
with the actual token yes
Any further logs?
@hearty lintel what the heck are you talking about
bruh he just said to still use client
even with the client it does not work
also id suggest getting something better than mspaint black highlighter because at this point i could literally ocr your token rn
^
what?
One sec
yes and use something that isnt a damb highlighter
show your full code please
at the very start
with all the dbl shit
const Discord = require("discord.js");
const client = new Discord.Client();
const DBL = require("dblapi.js");
const dbl = new DBL('xd', client);
no dbl.on?
??
hastebin your code
This
dbl.on('posted', () => {
})
ok
ok
@hearty lintel options is an optional argument
and that means the client can be the second argument
Bots should stay on bot accounts, and you should use proper channels
uhm selfbots..
Selfbots are against the TOS
^
I mean I made a selfbot that isnt a selfbot at the same time. Image recognition and events supplied by @remote star
Uses default client, and types it out using pynput
Tos = Term of security
@young copper tos is terms of service

How do I get my API token?
Got to Discordbots.org, go to your bot, click edit, scroll down to this and click "show token".
i think your bot needs to be approved first
yes
Oh
Okay
When I have my bot approved, how would I make it so that when someone votes, they get a role 12 hours?
did you read thedocs?
Can i somehowe get information who acctually talk on my channel via bot or smth?
@late mesa this channel is only for help with the DBL API, as it says in the channel topic
Mea culpa

Can i inv my bot here
How @amber dune

Submit your bot on https://discordbots.org/newbot, wait until it is reviewed and if it gets approved, congratulations
does anyone had an issue where the gateway closes websocket connection for one single shard with close code 1011 which means internal server error?
this happens only for one specific shard, a lot of others are working fine
The server list looks like id, id2, id3
forgot a space
Where
Is it just me or does the api take a while to register votes ?
Idk
Usually when people don't know the answer they ignore it and not reply.

DBL should register the vote nearly instantly. What are you using to get the vote?
A webhook?
I never have ignored anyone in my life if i know the answer or not i always rep
Directly getting it from the api /check
@clear kayak If you use a webhook its slow asf
I use a webhook and it's instant for me. So are the votes
https://discordbots.org/api/bots/botid/check?userId=id
Might have to, was just checking if I was the only one experiencing the slow registration of the votes.
Thank you.
@restive otter There is no need to reply, idk doesn't help and just pushes the question further up in the chat.
From idk it will not go so much further @clear kayak
@restive otter It does when we start arguing about it.
Either way thanks for your answer was really helpful, have a good day.
Np
Does anyone know why the test vote isn't arriving to my webhook server? I've used the dblapi.js and followed the guide on the docs.
Oh nevermind, I had to manually edit dblapi.js to use the correct IP.
u sure there's no config
Are you sure the cog is even loaded 
I'm looking at the /bots endpoint
How could I get all the bots?
Over the 500 endpoint
I'm considering the offset param but idk exactly how that works
get the max you can then offset by that max
how can I tell when i've gotten all of them
ok
or be empty
the vote check is really slow
takes about 2-3 mins for me
might be a cloudflare thing idk
It does take 2 - 3 min for that method to update. Use the dbl api to get info when someone votes and check if someone voted instant and accurate
How do I check if a user voted for my bot in the last 12 hours?
(discord.js library)
hasVoted(id)
How do I setup the full thing?
@eternal charm https://discordbots.org/api/docs#jslib
Webhooks are used to receive realtime events on your webserver when a user votes
You need to be able to listen to http requests
Uhh.. what does that mean??
Nvm me just follow the page lol
Sooo what website URL does it want me to put in @full socket
I just wanna make it so the bot sends a message when someone votes
Surely it shouldn't be this hard
You're hosting your bot on a VPS or something else?
Then it's your glitch project's public url
Oh
Plus the endpoint at which you're listening to the webhook
Something like https://projectName.glitch.me/webhook or something
How do I get that
You're probably not even using your webserver for anything but hosting the bot so don't worry about that. Just follow the tutorial
@eternal charm on the js lib page that I sent you above
It's not there
Where do I get the password from tho
You set the password and check for it on the server. It could be anything
Or you could just leave it empty
It's just there to make sure than no user sent the request manually to your webserver to fake a vote
So what are the downsides if I don't put it?
anyone can fake votes
So I need a password?
You don't need it, but it's better to have one
Ok how do I set it up
It gets sent with the webhook message. Then you should check with your code if the password matches the one you set on the website
You see this line: const dbl = new DBL(yourDBLTokenHere, { webhookAuth: 'password', webhookServer: server });
Set your password there
Yeah then how do I check
Also use the same password on the bot's page on DBL
The library does the check for you
Edit your bot
Wait.. but I've already defined DBL
On the website discordbots.org
🤦
Click edit
I'm on a new subject now xD
Okay change 'password' to whatever you want
Didn't you say put password as the DBL password
Then go to your bot's page on discordbots.org and edit your bot and use the same password in the webhook password field
Read this ^
Did you scroll all the way down to the webhook section?
There's URL and Authorization
use console.log() to test if the webhook works first, then hit the Test button on the bot's edit page under Authorization
Oh.. I'm having another issue
On the weekend event
I did bot.channels.find("id").send("hi") and it's saying:
DeprecationWarning: Collection#find: pass a function instead UnhandledPromiseRejectionWarning: Error: Value must be specified.
use .get instead of .find
Cannot read property 'send' of undefined
Is there anything you need to await?
I don't think so
Advaith can you take over? Idk js lol
what
Do you know the event that checks if it's a weekend
there is no weekend event
theres a method that you can manually check whenever you want
dbl.isWeekend
Returns a Promise
Whatever it is then xD
Is quick-db apart of the lib
And I guess promises are JS's async objects that you await somehow
and, is it inside the client ready event
Uh.. no?
me?
Show us the code @eternal charm
if(weekend) {
bot.channels.get("id").send("hi")
}
});```
Um hello?
Yes carma?
@vast elk its not
ok
@full socket My code is above.
Idk js honestly
Can you send the full code?
Not all of it, but just a bit before and after those lines
How do I get it to send the message every weekened
you dont
.
It's a function not an event
you would need to code that with an interval or someting
Like advaith said
but clearly you don't know js
You have to call it yourself
:/
I do know js
Don't bully me :(
You're certified so a higher level than me
But I guess Kef is better than me cos I don't even know the difference between a function and an event
Did you even replace "id"?
Yes lmao
Idek JS dude lol
Well just asking just in case you forgot 
I assume that's discord.js
Yes
Fix the error first then worry about the interval later lol
Also I'd suggest making the check every time a user votes instead of a timer for now
yeah thats a good idea
No "intervals" needed
Wdym? I'm on about sending a message every weekend
you would need to check it every x time
The reason the weekend check exists is because votes are doubled during the weekend
Yeah..
So you only need to know if a vote counts as double or not, that's all
So, make the bot check if it's weekend or not with every single vote
-User votes
-Check if it's weekend
-If true do something. Otherwise do something else
-Repeat
Ohhhhh
I forgot about that lol. You don't even need to call the method anymore then
https://discordapp.com/channels/264445053596991498/412006692125933568/597493280166510613 @sullen nymph wouldn't this be done via bot.add_cog(DiscordBotsOrgAPI(bot))?
Yes last time I checked
I wasn't thinking about that. I was thinking that the @commands.command decorator was needed for each background process
But stupid me I guess
My bot has 70 monthly votes atm, but running dbl.getVotes().then(r => r.length) only return 43.
That's for commands 
Oh alright
How do I make it display the amount of users on the website? (I already have it displaying the servers.)
You can't
What else can I list?
are ther any girls ??
Oh, ok. @sullen nymph
@fiery maple Wrong channel
why
okey
js
ah
well api calls can work, and check if the user ID is in the list
That's what I do. Obv delay, but webhooks are needed for instant, and idk how to set up webhooks ;-;
;-;
dblapi.js has hasVoted function
Since the built in webhook didn't work for me i wrote my own one
Basically set up an express server and then parse the data using body parser and there, you have your data
hmm
?help
- Wrong channel
- Don't use common prefixes

What's the difference between id and clientid fields in JSON response for GET /bots?
¯_(ツ)_/¯
im surprised there isnt a seperate input on the add bot page
hello is this discord for Icarus bot? if so im having issues with Icarus leaving my VC after i performed a countdown. when i disconnect it, it pops back in almost instantly. was wondering if anyone can help and tell me what im doing wrong 😅
ahhh gotcha, keep getting an invalid link when i click it. finally got into this but i see now its for discord bots. thank you anyways @calm zodiac 😁 i will try to see if i can find a valid link
thank you so much @plain timber !!!!!!!!!!!!! 🤗 🤗
yw

Invalid link? I'll have it fixed
Stupid question, is my token also changed when it was kicked?
no
Kicked from the website I mean?
Yeah
if it was deleted, no data is stored so yeah
Ah thx
Wow
Is there a quicker method to checking if a user voted without the api or webhook? i've tried using aiohttp.clientsession.get and it's taking up to a minute to check and sometimes it's not even accurate as in it takes 4 times before it registers a user had voted
on discord.py
Faster than API: webhook
Faster than webhook: only assuming
alright well I got the dblpy now I was wondering with the on_dbl_vote will it auto say if a user hasn't voted say if I add in a db where it saves the output for vote would it auto output as false after the 12 hours are up? or?
Nope, it's up to you to handle that
on_dbl_vote is only called when someone votes for your bot (including yourse;f) :p
Hi
how do i get dblapi.js to work with ts??
lol for me they are basicly the same lol
ts is js with typing
the webhook methods just dont work or not included in the code??
nvm i was using the wrong version
what url do i put when editing my webhook
wha
webhook i ment
the url your webhook is listening on basically
is that including the port and path?
ill just try it again
@runic grove still nothing...
i set up a live code session https://codesandbox.io/live/rkJBww
you can see the dev url and the port
...
@worthy quail please don't
@worthy quail how old are you
@spiral tree
Yes?
o
O
Imagine calling yourself bot developer
lmao
I just joined

OP
And already have the role lmao
imagine not keeping the api channel on topic
Hi Everybody , " Your bot has a publicly available token. " I get this error . "Heroku" Hosted Me . Please help me .
Whoops
👀
@restive otter is your code on github?
Yeah.
great
A few minutes
I'm trying to get the webhook to work but I'm still having issues, it's not a function?
DBL.webhook
@hot portal send code
@plain timber should I send you the GitHub?
Mmm okay, my code is heavily customized. I'm using typescript.
It's the exact same one that is in the API docs.
It just says that dhl.webhook.on... is not a function
They might need to add it in their typing folder
Plus what exactly is spos to happen when you hit the test webhook btn?
you probably didnt include the webhook settings in the const dbl line
and the test webhook button sends the data with your id and the type is test https://i-pinged-everyone.today/jY.png
@runic grove
yes?
Let's not forget that this channel is #topgg-api
of course
I need help setting up the webhook.
idk If the code is the problem because it worked when I used it on glitch, now in my new vps this problem is occuring when I try running my server.js
oof
are you using a node version which supports async/await
node -v
v6.11.0
uh
sudo apt-get install curl python-software-properties
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install nodejs
I need help setting up the webhook please help
@restive otter one more command after those 2
it said sudo cmd not found
@restive otter what OS is it
Please help someone
whats the issue
debian needs to have sudo installed
How do i do the webhook?
can't spell
@flint lava what language
send output of cat /etc/os-release @restive otter
Thanks
yw
turtle that didn't work
save then test
1. hostnamectl
2. lsb_release -a
whats the full updated version?
try one of those
me?
yes
No lsb modules are available
the other one didn't work
only lsb
I UPPDATED
Updated
all I did was n 12.6.0
Is the website down?
what was the error
it needs sudo permission
how do I give it sudo permission?
how do I get sudp
Thats never happened to me
before
I mean it has
but all my cmds came off of glitch
when I inputted them into vsc
and my bots still online no errors
for glitch
How do you know if the webhook Test worked?
@flint lava it will run whatever you coded?
const DBL = require('dblapi.js'); const dbl = new DBL('SECRETCODE', bot);
That’s what I have
change the second line to
const dbl = new DBL('SECRETCODE', { webhookPort: 5000, webhookAuth: 'password' }, bot);
password should be the same as the Webhook Authorization you set in the edit page
Ok
I looked through all my cmds ant there wasn't a error
Ive just voted for my bot
But it hasn’t posted anything in the log
It’s supposed to post that I have voted for my bot
But I’ve got nothing
server count is seperate
But nothing for the vote bit
This is the code
console.log('Server count has been sent to Discord Bot List!');
});
dbl.on('error', e => {
console.log(`Oops! ${e}`);
});
dbl.webhook.on('ready', hook => {
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted for Cryptonox!`);
});```
Why isn’t it working
@plain timber
This is my code for the vote bit:
let embed = new Discord.RichEmbed()
.setColor(0x0000FF)
.setThumbnail("https://cdn.discordapp.com/avatars/560942447488794628/57a6cc87eafda490610284c6982a8918.png?size=2048")
.setTitle(`New Vote`)
.setDescription(`${vote.user.username} has just voted! Thanks!`)
.setTimestamp()
return votechannel.send({embed});
console.log(`User with ID ${vote.user} just voted for Cryptonox!`);
});```
Nothing seems to be working
But everything else works
I’ve got no errors
Hi, I have all of the api code in my index.js, but in my bot's profile page in discord bot list, the status part is still ???
@restive otter ??? means the bot isnt in this server
@restive otter it was probably kicked by a mod, you need to find the reason in #mod-logs, fix it, then ping the mod who kicked it
@plain timber his bot wasnt reviewed yet
he has the bot dev role
not for me he doesnt
he just deleted his bot

Hello guys. I would like to get a list of users in a specific server. do I need to create a bot for that or i can use public rest apis?
ok thanks
Hi, i dév' my admin panel but i have try for test this folder : https://github.com/orels1/discord-token-generator how i modify for have the id of the personne because this system give the token of the personn
wrong channel
Of ?
Getting a user token is a no no
I do not want the token but the id of the person
@hasty patio
This system give the token of the personn who have registered but i want just the id of the personn, no her token
No offf
Or in a lang, <class>.user.id
OOfffff you have not understand
What are you trying to get then
Are you sure this is the correct channel to discuss that
^
Xuse me i do go where @sullen nymph
#development at the very least
^
#topgg-api is for DBL API related things
Oh ok
Ye
Xuse me go developpement
Petition: rename this channel to dbl-api
Put ur all information in this libk and then wait for approval
https://discordbots.org/newbot
@outer kettle
How to get my WEBHOOK Url?
http://serverip/dblwebhook
hi how to get dbl api

discord.js libray
dblapi-js?
when I create a new DBL webhook, what am I supposed to do with the port and auth/secret exactly?
const dbl = new DBL(config.dblToken, { webhookPort: 5000, webhookAuth: "secret" }, client);
nevermind sorry I fixed it
@restive otter https://discordbots.org/api/docs#jslib
Does DBL API not send the amount of API calls left until ratelimit?
Unfortunate
but the ratelimit is a global 60 requests/60 seconds tho
Thought about implementing it instead of local ratelimiter in dblpy but no luck
you can store the amount of times you've sent a request in the last minute
dblpy stores that in cache
Hallo, is there any way how can i get my github readme and directly use it on my bot description ?
so for example like if I updating my github readme, so my bot description also updated because it fetched from my github readme
hmm I see some bot using the description that same like in their website,
uh confused 
you can use html and markdown in the long description
and therefore you can iframe a site
alright lemme search how can I do that :P
oh github doesnt allow iframing
rip
@solar crypt you could make it a github pages site and iframe that site
then it should sync with your readme
set source to master branch, and choose a theme
you can import a readme but it won't auto-update
how to import it 
fill in the "Github repository" field and the button should appear next to "Long description"
nevermind, it should appear there
Alright got it thank you very much
but as tonkku said, it doesnt auto-update
wut 
lmao what
lmao
maybe because the repository is private?
yeah probably
alright got it thanks for your time and help UwU
can I get the api about how many servers my bot is on?
https://discordbots.org/bot/598476233549938739

why
why
why
Don't spam, especially outside of #memes-and-media (and don't spam even there)
@restive otter thanks
is there an issue with the .NET library where IDblBot.IsCertified always returns false?
Np
Why there is a timeout for the Discord Bot ?
What's the easiest way of knowing how many times a user has voted without using /bots/<id>/votes?
Use webhooks
Save votes to DB
Query DB
Hallo, is it safe to use my vps IP directly for making webhooks?
just make sure you have a static IP and it should be fine
idk what you mean with static IP, can you explain more please?
if your modem(or vps) reboots do you get the same IP
@spiral steeple your home ip does change
since when mine has been the same for some time
alright
What it means by yourdiscordbots.org token
For JavaScript
Does it mean client id or bot token
@restive otter the token you get from the dbl site
Your bot needs to be approved first
It's different from your discord token
Ok
anyone code there bot in c#
Does this have to do with the dblapi?
Perhaps. You never know
I am updating the server count of my bot but its status is shown as this
what should I do to send the status of my bot 🤔
Midorina#6900's bots:
@velvet meteor
I know, I said the status
But dbl cache takes a bit, so wait a moment
You dont send that.
@abstract moth does it
Server count and shards are the only things you can post I think
ok ty
I may be wrong as usual
Why does my boy says 191 guilds when i don't even send that data to dbl?
Does it automatically get it from the client parameter in the dbl class constructor? (dblapi.js)
it will auto post if you provide a client, yes
How did i get 191 guilds then
When dblapi.js posted the guild count /shrug
What about sharded bots?
The client object only has the amount of guilds on that shard
Does dblapi.js automatically use fetchClientValues?
Might wanna dig around in dblapi.js source code for that 👀
afaik each shard posts it's data and dbl adds it up
const { log, error, success, load, debug } = require("/app/assets/main.js");
module.exports = (client) => {
client.on('ready', () => {
setInterval(postStats, 1000000)
success("Loaded postStats.js backend file.")
function postStats() {
debug("Posting Stats to bot lists.")
const DBL = require("dblapi.js");
const dbl = new DBL('my token is here', client);
dbl.on('posted', () => {
console.log('Server count posted!');
})
dbl.on('error', e => {
console.log(`Oops! ${e}`);
})
}
})
}
I have this code for posting the stats, and it logs the "Posting stats to bot lists", but I never get the log for dbl.on post.
Is there smth I am missing?
you shouldnt make a new dbl every time you run that
you should have one then use the postStats method, or just provide a client, as you did, in the dbl constructor and it will auto post for you
how do i track who voted on my bot?
or
i mean how do i set up the webhook?
python
dblpy has built-in webhook
AttributeError: 'Client' object has no attribute 'get_bot_upvotes' hmmm
@arctic arch can you guys update dblapi.js snekfetch@3.6.4: use node-fetch instead
Update or use the correct Client
Is there a python example for logging votes?
So I've seen this one but I can't test it here unless there's a website that run python and can import dbl
Also I'm not sure is the example implying it's run with your bot or by itself? Maybe it wouldn't matter
@hot portal you are using an old version of the module
2.3.0 is the latest on your GitHub
Does it provide you with a public URL for your app? Or at least an IP address?
Heroku is what im using. there is a public Url in your deployment setting
version 2.3.0 doesn't use snekfetch anymore
im on the latest from pypi
Doesn't seem like it
unless you are using get_bot_upvotes on your discord.py Client
okay thanks
There was some minor updates on Github repo
yeah 24 days ago
maybe not too minor but yeah
XD
some to the client 
I should get back to it ngl. Anyway, get_bot_upvotes is still a thing :p
hmmm
Found existing installation: dblpy 0.1.6
Uninstalling dblpy-0.1.6:
Successfully uninstalled dblpy-0.1.6
Running setup.py install for dblpy ... done
Successfully installed dblpy-0.3.1
that explains
Yep
is this still correct? https://github.com/DiscordBotList/DBL-Python-Library
A simple API wrapper for discordbots.org written in Python - DiscordBotList/DBL-Python-Library
why dont you use code sand box and set up a live share? thet put the setting to classroom
maybe im doing some bs then
sd = self.dblpy = dbl.Client(self.bot, self.config.discordbotsorg)
slap an import dbl into your code and then print dbl.__version__
You in a venv?
nope
So this code can just be added to the code block in https://discordbots.org/api/docs#pylib ?
As long as port is open and tokens are correct?
async def on_dbl_vote(data):
print(data)```




