#development
1 messages ยท Page 1497 of 1
let no = db.fetch(`haha_${message.author.id}`)
if(no === 1) return message.channel.send("ok uhhhh submit ur quest in order to get here boi!")
is on and you have 1
of the thing
ill just say that]
Why would the db part restrict
bc its checking
The command
bc its checking if you have 1 of the db.fetch number
basicly 1
if you have 1
then u cant use that command
hmmmm
wait
Hm idk
nvm that did not work
Does anyone know why my redirect url for my bot is not working? I am trying to make the oauth2 redirect to my website once the bot has been added to the server instead of the confirmation page, but instead nothing happens.
whats the name for the css thing when something is clicked but not hled
so confused
like if a textbox is selected
i installed the module and received this error
Error: Cannot find module '@top-gg/sdk'
not sure what to do
:hover?
\u200b
@hidden lynx i dont understand
is it possible to type there
is there a way put text in undefined
.addField("text", "") ._.
i got an error
do you have a youtube api to get information about the video?
how else are you supposed to do it
add \u200b
or if you want it to say something, put text there
.addField('\u200b', 'Text here')
Question: How would this be written when 0 stars are clicked to do the hover effect too all of the stars?
I have the css for each star depending on what rating is checked, but not when the page is loaded and 0 is selected by default
.comment-stars-parent[data-stars="1"] .selectable:nth-child(-n+1) svg .svg-star:hover {
fill: white;
cursor: pointer;
stroke: #d78088; !important;
stroke-width: 1px !important;
transition: 0.3s !important;
}
hey guys
umm quick question
so, my bot approved, but i still dont see a tick on it
i see, so whats the game here? how do i get that? and the developer badge ofc
btw i forgot what im supposed to do to give rewards to my bot voters
dlb something?
developer badge is no longer possible to get, discord doesnt allow anyone to get it.
you can find more about verification here https://support.discord.com/hc/en-us/articles/360040720412-Bot-Verification-and-Data-Whitelisting
questions about discord bot verification should be asked in their server. https://discord.gg/discord-developers
rewards for votes can be anything you want as long as #rules-and-info isnt broken.
i know that
but how do i get the event?
i mean how do i know someone voted
i checked the rules before for that
using the api. https://top.gg/api/docs
discord doesnt give it anymore, too many people made bots just to get it.
which ruins the point of it.
lol
congrats. you're annoying as fuck!
some tips to sclale up my discord bot it's written in djs and I'm having hard time
how far are you scaling @cinder stratus
I'm kind of new to this so maybe you could talk simple maybe
how far are you scaling?
how far do you want to expand that shit
thats literally a simple question
@crystal wigeon are you coding with python or js?
oh
nah hes emulating djs in a py engine @stark abyss
I should just shut up. Sorry. Continue.
2.3K sounds funny but it's true
I need help too 
I'm already sharding
ah. i see.
using Kurasuta
then just make shard count bigger
there shouldn't really be any scaling necessary
apart from changing shard count from 2 to 3
or somethin like that
use 3 shards
Hmm okay
that should be as much scaling as you need rn
But my responds after 10 seconds
where is your bot hosted
Azure
what specs
4gb ram 2cpu
where is it located?
us east
but once I switched the code of my Bot with my friends one and my bot was working really fast with sharding
my Bot ram usage was always stuck on 350mb
Hey there
fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png')
.then(res => res.buffer())
Will this return me a buffer ?
using node-fetch
currently I'm using my friends code for my bot
yeah it's same bot but different code
you could use that code
this was answer to me?
Ok
wdym
the code that works
both of the code is fine but mine one is making the Bot slow like very slow
I just made some changes in the new code using some code from the previous code and it made the new code also slow
idk what's really the issue
with my code
what changes did you make
like I added some functions in my client file like log and fetch command and use those in my message event added a mention Prefix feature so you could mention the Bot and use the command, added Owner only boolean value in commands and small things like that
js
๐ญ
no it's just commands.get
do some debugging
Hey @quartz kindle
It doesn't allow buffer either
(node:8521) UnhandledPromiseRejectionWarning: Error: pixels passed to tf.browser.fromPixels() must be either an HTMLVideoElement, HTMLImageElement, HTMLCanvasElement, ImageData in browser, or OffscreenCanvas, ImageData in webworker or {data: Uint32Array, width: number, height: number}, but was Buffer
idk wtf i am doing
what?
import discord
from discord.ext import commands
from discord import Embed, File, DMChannel
intents = discord.Intents.all()
client = commands.Bot(command_prefix = '!', intents = intents)
guilds = client.get_guild
@client.event
async def on_ready():
print("The bot started!")
client.run("")
this is the bot i sumbitted ๐
what are you doing @delicate shore
its not
@misty sigil I wanna use https://npmjs.com/package/nsfwjs
if its literally useless
lol
in discord
bots need a function to be accepted
oh wait
a function bot reviewers can see
to put it simply, it needs commands
It does
it doesnt
okay
yeah
You need it to be useful.
How can I turn the attachment into something out of the following things
that code you sent does nothing but tell you in console "The Bot started"
doesnt have to be a command, it just needs to do something
hey woo, it says dblapi.js has deprecated
yeah
cuz it has
use the new node-sdk
yeah
node-sdk?
for votes?
I know
it does somethign tho
๐
lemmee make a commmand rq
@crystal wigeon for the api wrapper https://github.com/top-gg/node-sdk
we bot reviewers cant see that @earnest phoenix
Alright
Ok so I will wait till this query is finished because my question is a damn long one
^^
^
Make the bot fairly useful, upload it to top.gg when you think people would want to add it to their server
Create a bot, finish it, polish it, then submit it.
ahh
thanks a lot!!
np
any weebs wanna try rpg bot? xD (jk not advertising)
Token leak
lol
reset it
We aren't going to help you build your bot.
your token gone
Don't create a bot just for it to be on top.gg. Find something you're actually interested in, and then create it.
One command won't be enough to deem it "useful" I don't think.
yes im firing my botnets
that's what i'm trying to do
It looks like you're trying to get on top.gg.
Not create a bot for the sake of creating one.
simp you gonna be flooded (hentai reference)
unless it won't work
yeah
Think of an idea.
it does
An idea that hasn't been done before.
cmon man i wanted that discord bot dev badge
or I can't test webhook
Then code to it.
unless it's on topgg
Why?
delete your bot
he wnats to use the api
for votes
I can't
I gotta test out the votes ๐ญ
yeah
You can push an update once it's approved.
your bot cant be approved if it is.
No you don't, push an update once it's approved.
you cant upload a bot to be approved that does nothing
wym?
Create your bot.
like
hEY! >:(
"oh, approve my bot, it cant work until you guys aprove it so i can use ur API"
I won't be able to make the bot, unless I know what I can test it 
isn't programmming trial and error
like
and that wont work
How am I suppose to know if it works or not ๐ญ
woo made me sad
next thing i need to learn is sharding
So
you simply cant do it the way you want
to get approved you need to have your bot do SOMETHING first
Then focus on the API once it's approved. But first create the bot.
if you bot CANT work without the api, it wont even get approved
Implimenting the API comes later on.
this
Oh my god
no
dang
you're asking them to approve a bot that does absolutely nothing
You aren't getting the point.
Use the API AFTER YOU'VE FINISHED THE BOT
You don't need a voting API until your bot is on top.gg.
You can push an update once it's on top.gg.
A bot who's main purpose is to use the voting webhook is not a good bot. Have it do something other than using the top.gg API
I mean
one of my bot's main purpose is to use the voting webhooks
Honestly, I was making it for my server
and just to practice too
working with apis
If it's just for your server, you shouldn't put it on a bot list.
I am trying to use https://npmjs.org/package/nsfwjs with Discord
I get the Image URL using attachment
But I can't directly use it
I need it to be either of these -
HTMLVideoElement, HTMLImageElement, HTMLCanvasElement, ImageData in browser, or OffscreenCanvas, ImageData in webworker or {data: Uint32Array, width: number, height: number}
So how Can I use any one of these
Please help Thanks in advance
what is it even going to do after you get the API working?
have a command that says if you voted or not? thats it? Vote api is just for votes, it isnt something useful for the user
all 3 of us are telling you, it wont work the way you are going at right now
Exactly.
for server webhooks
if thats what you're aiming for
you need something BEFORE it gets approved
You don't need that on a private bot.
You also don't need that before it's approved.
For the billionth time. Add that feature after it's approved.
I'm just trying to make a voting bot tho ๐ญ
the point of being in topgg is to be used in other servers, private bots, as i mentioned, SHOULD NOT BE ADDED ON TOP.GG
A bot which has the only purpose of telling users to vote for it isn't being approved.
It's not supposed to be
Then what's it for?
Aren't there like 3
If it has any other purpose, code the commands first.
no?
I think you know by now that your bot won't get approved unless it actually does something without the API
Bots that post messages when other people vote don't require an API key.
Yep
Doesn't require API.
THATS FUCKING MINE
ITS MINE
Basically
BRO
You tell them to set a URL.
ARE YOU SERIOUS?
And auth
YES
And code the webhook.
IM 100% SERIOUS
You don't need anything else.
NO WAY
It's not hard lol
your best option is get some basic commands working and some basic functions. like !avatar, !help, !meme or some random shit like that to get it approved, THEN you can test it @earnest phoenix
and I got like
need help with it?
oh lol
yea i know
logo is ugly ๐ญ
i know
@earnest phoenix You don't need an API key for that.
but it works
Yea
You tell users to set a webhook URL that you manage.
You don't?
And an auth key you generate.
And then it'll send a POST request to your API.
You then find the auth token
i have no idea how to do that ๐ญ
Check the DB
damn this sounds too much like my bot
@earnest phoenix The API wouldn't help with that lol
wait what the heck?
I think it would
You basically create an API.
that bot doesnt ask for ANY permission?
bots who ask for perms, ew ;p
What you do is you create an API.
bruh
So learn Flask.
Then from there, give users a token.
token?
Tell them to set the voting webhook to that
Tell them to set the URL to your API, and the auth token
I'm not giving you the code.
This is just how you'd do it.
It's not too difficult lol
Just learn Flask
And learn pymongo
And learn Discord.py
Then ddone
The API has nothing to do with this lol
Please don't spam ping me lol
please dont spam ping anyone, or ping anyone without their permission really.
when I nee help*
Here's a basic flow of how it would work no code lol:
User runs a command like -link {ping bot}
You create an auth token for them in a DB.
Tell them to set the webhook URL for votes to that, and the auth to the auth token.
Then tell them to click on "test". If you get a request sent, confirm everything.
All the data you store under them like role to add should be under that auth token, as it would be unique to the bot.
When someone votes, find the auth token, then search the DB for the channel to send the message in from that auth token.
Send the message.
There are tons of bots that do this already, if you think this is too complicated, maybe try another idea?
I honestly suck at Flask (like can't do a single line), so I can't really help you lol
I am trying to use https://npmjs.org/package/nsfwjs with Discord
I get the Image URL using attachment
But I can't directly use it
I need it to be either of these -
HTMLVideoElement, HTMLImageElement, HTMLCanvasElement, ImageData in browser, or OffscreenCanvas, ImageData in webworker or {data: Uint32Array, width: number, height: number}
So how Can I use any one of these
Please help Thanks in advance
I do believe ImageData or the Uint32Array would be something you get from Discord
though you might have to convert it as it start off as a buffer
how can I
Since you're server side the first thing to do is to fetch() the image itself
ok
then figure out how to convert the return of that fetch operation to the format you want
hi
@staticmethod
def user_join(access_token, userr):
#user_json = Oauth.get_user_json(access_token)
url = Oauth.discord_api_url + f"/guilds/768019392596017164/members/{userr}"
headers = {
"Authorization": "Bot {}" .format(access_token)
}
user_object = requests.get(url = url, headers = headers)
user_json = user_object.json()
return user_json
shouldnt this function work?
for joining a user to a server
on oauth2
I tried to get imageData usning canvas
didnt work either
you don't need Canvas
did you read the docs on their page?
they have a nodejs example with urls.
Yes
well, the express example is receiving the image via a request
no you don't
const axios = require('axios') //you can use any http client
const tf = require('@tensorflow/tfjs-node')
const nsfw = require('nsfwjs')
async function fn() {
const pic = await axios.get(`link-to-picture`, {
responseType: 'arraybuffer',
})
const model = await nsfw.load() // To load a local model, nsfw.load('file://./path/to/model/')
// Image must be in tf.tensor3d format
// you can convert image to tf.tensor3d with tf.node.decodeImage(Uint8Array,channels)
const image = await tf.node.decodeImage(pic.data,3)
const predictions = await model.classify(image)
image.dispose() // Tensor memory must be managed explicitly (it is not sufficient to let a tf.Tensor go out of scope for its memory to be released).
console.log(predictions)
}
fn()```
that is what you need
should be simple enough to just change to node-fetch
Ok
which comes with d.js
wdym?
Thanks
yo can someone help me
nothing
plz
no
whats your issue?
DUDE
stop linking that all the time
i literally asked the question above
where ๐ค
npnp
[
{ className: 'Neutral', probability: 0.9698688387870789 },
{ className: 'Porn', probability: 0.015575909987092018 },
{ className: 'Drawing', probability: 0.009302130900323391 },
{ className: 'Hentai', probability: 0.003626859514042735 },
{ className: 'Sexy', probability: 0.00162628130055964 }
]
It logs this
Now

'Sexy', probability: 0.00162628130055964 how did you get an image of me

๐ณ
but blocking best
ok so I have a question
Promise is a collection of objects
{ className: 'Neutral', probability: 0.9698688387870789 },
{ className: 'Porn', probability: 0.015575909987092018 },
{ className: 'Drawing', probability: 0.009302130900323391 },
{ className: 'Hentai', probability: 0.003626859514042735 },
{ className: 'Sexy', probability: 0.00162628130055964 }
]```
that's an array
with using aggregation in mongoose, what's the best way to add up values from each document (a document like { stat: 57 } - add together stat from every document)
aggregate returns something like [ { stat: 61 }, { stat: 96 }, // ... ]
What?
Like, there's no lib for only that feature
You'll use fully featured libs, like djs, dpy or jda
help
With?
help me make a guid_create feature
he was talking to me tho ๐ค
can u help?
what language
i mean
I think you want the guildCreate event
it will send a message when it joins a server
where do i change it
Idk, where you're calling that path
can u help
@lyric mountain can u help?
thats all the error (photo i sent)
Yeah use the guildCreate event
how to use it?
Um
can u give code?
Again, check the places where you're calling that path
Just like any other event
i m new to this stuff
Read second line of the error for the path
Your doing scandir at that path
And it doesn't exist
it doesnt say any file in where should i change
client.on('eventName', () => something)
bot.on("guildCreate", guild => {
let defaultChannel = "";
guild.channels.cache.forEach((channel) => {
if(channel.type == "text" && defaultChannel == "") {
if(channel.permissionsFor(guild.me).has("SEND_MESSAGES")) {
defaultChannel = channel;
}
}
})
//defaultChannel will be the channel object that the bot first finds permissions for
defaultChannel.send('Hello, Im a Bot!')
});```
Why
thnx
You just spoonfed
Use ctrl + f, or read ur code to find it
Wrong ping
Wait yes
ctrl f?
hi
@staticmethod
def user_join(access_token, userr):
#user_json = Oauth.get_user_json(access_token)
url = Oauth.discord_api_url + f"/guilds/768019392596017164/members/{userr}"
headers = {
"Authorization": "Bot {}" .format(access_token)
}
user_object = requests.get(url = url, headers = headers)
user_json = user_object.json()
return user_json
My bad 
is there anything wrong in this
Cellphone sucks
Yes, find hotkey
{'message': '401: Unauthorized', 'code': 0} im getting this error
Yes, you can't access it
does anyone know why that is
but it didnt say waht file i should change it liek do i change index.js or package.json
Maybe the token isnt being formatted
Dude, search the code
I mean the authorization
Package.json is not code
i meant file
i checked the docs
E

its supposed to be correct ig
Egg
you have to use Bot: for guilds.join right?
Is that code yours?
yea
How to access to Discord API ?
wht
What do you mean
i tried others servers but they cant find solution
lol
I am a beginner and I want to learn JavaScript but the problem I can't because I don't know how does anyone have any online course for JavaScript
Is that code yours?
Or u copypasted?
mine
Don't learn js doing bots, try making some simple console programs before
Doubt
it appears when i run the bot
Did you have coding experience before?
same
Not really, all I knew was php lmao
Never done vanilla js either
Like, it's ok if u manage to start with bots, but 99.9999NaN% can't get the fundamentals tgat way
Which is why I always use semicolons in my code 
They become lost af
Dot dot dot
<html>
<embed type="text/html" src="https://islabot.tk" width="500" height="200">
</html>
i added this but nothing has changed
Yes
idk how i learnt js, i just learnt ;-;
casually
it became something you learn as a baby
module.exports = {
name: "color",
description: "info",
async run (client, message, args){
let color = args.join(" ");
if(!color) return message.channel.send('Command code to get the color role, use -colorlist for colorlist')
const user = message.author
if(color=== 'c1' || 'C1'){
let role = message.guild.roles.cache.find(role => role.name === 'Cyan')
message.author.roles.add(role.id)
message.channel.send('Done')
}
message.author is a User
You can't add roles to a User
Also, you defined user but you never used it
and use message.member instead since you need a Member, not a User
https://takiyo.is-terrible.com/xfmDzB.png anyone know why this happened?
it's a path but why it think that it's a module
Id? 
The stroke
stroke?
Btw, it only happens on my host. It works on my local machine and my code is https://takiyo.is-terrible.com/bfjaVt.png just a normal require
this is what happens when my bot starts up any help?
@pearl trail try __dirname + "/../../handlers/nessageHandler"
isn't error 500 a internal server error?
so it's like = require(__dirname + "my path")?
yes
wait is something wrong with discord api?
Ello
@pale vessel now this happened on my local machine... https://takiyo.is-terrible.com/q6yS1g.png
or is it wrong 
hello
how can i check if the member is kicked or not?
like my bot sends the kick message even if the user is not kicked so please hgelp
help
@pale vessel you there?
check if the member is in the cache
bruh
bruh
how tho i kinda sucl
@kick.check async def kick_check(ctx,kick): if discord.Member in ctx.guild: await ctx.send("loal")
i tried this
@pale vessel oohh yes, thanks for helping me. the problem is all about capitalization 
discord.Member is a class is it not
umm
@client.command() @commands.has_permissions(kick_members=True) async def kick( ctx,member: discord.Member,*, reason=None): try: embed = discord.Embed(title=f"User Kicked!",colour=discord.Colour.green()) embed.set_thumbnail(url=member.avatar_url) embed.add_field(name="**user Kicked**",value=f"**{member}**", inline=False) embed.add_field(name="**Kicked by**" ,value=f"**{ctx.author}**", inline=False) embed.add_field(name="**Reason:**",value=f"**{reason}**", inline=False) await ctx.send(embed=embed) await member.send(embed=embed) except: pass await member.kick(reason=reason)
@commands.has_permissions(kick_members=True)
async def kick( ctx,member: discord.Member,*, reason=None):
try:
embed = discord.Embed(title=f"User Kicked!",colour=discord.Colour.green())
embed.set_thumbnail(url=member.avatar_url)
embed.add_field(name="**user Kicked**",value=f"**{member}**", inline=False)
embed.add_field(name="**Kicked by**" ,value=f"**{ctx.author}**", inline=False)
embed.add_field(name="**Reason:**",value=f"**{reason}**", inline=False)
await ctx.send(embed=embed)
await member.send(embed=embed)
except:
pass
await member.kick(reason=reason)```
oops, i don't think so. i deploy the wrong branch 

@pale vessel ?
yes, it's all about capitalization, thanks
talking to yourself be like
Hello, so I have made per server prefix for my bot with mongodb, and it works perfectly, I have one problem though.
I connect to mongodb on the ready event, and in the message event, I've done
const data = await prefix.findOne({
GuildID: message.guild.id,
});
and then I check if data exists, and if it does, then it uses the database prefix, but if not, then it uses the defaultprefix
This sometimes takes a lot of time for the bot to send the message, the response time has become too slow
any help with this?
How can I lower the response time
Start caching the data you receive from the database
^^^^^
fetching a guild object every time a message is sent is obviously going to slow your bot down
How 
for example:
const guildCache = new Map();
// When you want to get the guild:
let guildObject;
if (guildCache.has(guildId)) guildObject = guildCache.get(guildId);
else {
guildObject = fetchGuildFromDb();
guildCache.set(guildID, guildObject);
}
use a map to store guild objects so you get them from memory
hmm
Ok I'll try
Thx
@cinder patio and what would I do in the if(data) line? where it directly checks if the prefix is in the db
if the prefix is in the db, put it in the map so you don't get it from the database again
btw, when you update the guild data in the database, you will also have to update them in the map
hmm
but like how do I get the prefix from the map
Well, you store the guild objects in the database, and you put the guild ID as the key
map.get(guildId) this is how you get a guild object
Ok I did that
how do I update it
You get the guild object from the map and set the prefix
but first make sure it's in the map
how to generate an invite link of the server in djs?
The prefix has a separate file
oof
you should probably attach the map to your discord client
oof this is confusing
let conversion = Number(amount)/100; i am trying to convert 100point to 1coin. I want to prevent user from giving decimal number and less than hundred
hi hi
I'm attempting to make my own bot
and get topgg recieve something to my webhook
can anyone help
I'm using python flask to host the webhook
prevent?
stop user from using either decimal number or number less than 100
if(Number(amount) % 1 == 0 && Number(amount) > 100){
/// code here
}else{
/// code here
}
try that
kk
let conversion = Number(amount)/100;
await Promise.all([
memberSchemaDB.updateOne(```
1 coins = 100point
how to get a member's custom status?
let total = Number(amount);
if(total % 1 == 0 && total >= 100){
if(data.bankbalance > 0 && amount <= data.bankbalance){
let conversion = total/100;
await Promise.all([
memberSchemaDB.updateOne(
.........
}else{
message.reply('The provided amount is a decimal or your balance is not enough');
}
case 'CUSTOM_STATUS':
customStatus = activity.state;
break;
thnaks
i meant javascript
i used switch base
for (const activity of member.presence.activities.values())
activity.state
will return you custom status of user @tribal siren
so it's activity.state right?
right
dude wait
for (const activity of member.presence.activities.values()) {
switch (activity.type) {
case 'CUSTOM_STATUS':
customStatus = activity.state;
break;
}
}
//Your embed - **customStatus** : customStatus ```
@tribal siren

tell me what it is?
It is JS.
ok let's try

Thanks bruh worked.
yea sure
for some reason it lets me add the role and it adds it to my discord but it doesnt remove the role from me when i un react from it https://media.discordapp.net/attachments/622718651878866984/795397751889461309/02580fff20ba3283ea2c363c9333cdf8.png
I think this is the right channel
Can anyone help
/opt/watcher/app-types/node/start.sh: line 30: wait_for: No record of process 19509
I got a error like this in my glitch project
so i installed node 15 and updated my discord.js version to the latest one in the git repo (the one with GuildMember#pending) and i get this error in pm2, any reason why?
node . works fine tho
node -v returns 15.5.0, aka the one i installed
someone was bugging me begging me to tell them how to do a command and they really pissed me off so i spoonfed them
but the code i gave them is purposely full of errors, that should keep them entertained for a few hours 
is sharp image manip any good?
Jimp has a bad font support, it only supports bitmap fonts and it's relatively slow since it's vanilla js
I've never used sharp before but I think it doesn't have text manipulation
oof
WHAHAHAHAHH
so your bot is using v15?
ok
just had some problems wish shitty pm2, reinstalling it completely fixed it
ok good
can anyone help me 
we can't help you unless you tell what you actually need help with
k
probably
the webhook
If the server is up that means it's working
but to see if it's functioning or not you'll have to check it
Now try making a request with curl or something
How do i do that?
hold on a second
idk even know what curl is ๐ญ
curl -d "name=Poop&password=lololol" http://localhost:8080/api/login/
like this ๐ผ
a cURL post request
In your terminal
no codework needed
install curl with sudo apt then do that
I don't know what htat means
๐๏ธ๐๏ธ
๐
like
what happens after the request?
import requests
url = 'https://hsgsgsgdhdgg.hj/webhook'
llo = {'poop': 'isGood'}
requests.post(url, data = llo)
do this @earnest phoenix
just put your URL there
it makes a POST request
which you're handling in your code
#development message
I thought
See your line 7
uhuh
GET is literally public
POST is more secure
So we use POST for webhooks
ALright
And so do you
So of your code is handling POST then you have to make POST request
I don't know how it works step by step you know
liek
what does what
I know basic of python
but this is my first time doing https
and webhooks and etc
OH
if i use a .then() after a .then() do it needs to be like this
.then(.then())```
or like this
```js
.then().then()```
in line 1 you're importing request module
in line 2 you're defining the uri or URL
in line 3 you're defining the data you're passing through the request
in line 4 you're making the request
the first on looks weird
so I think it's the second one
okay thanks i will try
url as in my webhook
yes it's the second one
or the website topgg?
@near stratus
Sorry
I haven't slept and i"m kinda brain dead
Actually your IP:port/webhook
waiting
that's the value you're passing
Poop is good
it is
I'm popping right now and that's the only thing I can think of
lmaoo
everything
obviously the second one
time for some learning
akio
do you know what it's calleed
like the placeholder or what ever
for discord user who voted?
@earnest phoenix you can pass anything you want through that
Can you give me a example?
the only reason its .then().then() is if the first .then() returns a promise
otherwise it would only be one .then
wait a second
okay thx
@earnest phoenix I found this on GitHub
Flask script mainly to handle POST requests from top.gg - shivaco/DBL-python-webhook
You're not what ?
I am retarded
bruh
akio
yeah
no
You don't even need a webhook to send the serverCount
Oh i don't care about the server count
I just wanna see who voted
lol
n the chat
We use webhook mostly to catch the voted users
actually no
If you don't wanna store the data of who voted
waaiitt
to send it in chat you'll also need a application on Discord (bot/webhook-discord)
Do you want to send the data of the user who voted in a discord chat ?
or just console.log it
sorry I mean print ()
what's CTX ?
context
message but for py iirc
it's not message but message
now I'm confused
hmm
rght
it has message method and properties but ctx itself isn't message
like there's ctx.message
why don't you simply do message.send()
Yea
I can't

