#development
1 messages ยท Page 1170 of 1
how about we dont use tutorials which are likely outdated and use the proper documentation?
i have node.js downloaded but idk how to use it
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.

@vivid wadi Kick ban commands episode 5
wdym download javascript?
._.
Not that
LoL
I want to get server id and namefromits invite link( dis cord.gg/XD )
if you mean NODE which is what runs your code, then thats simple with npm
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
for some reason i cant install discord.js
Its not what im looking for but thanks
yes, npm i discord.js
@vivid wadi npm i discord.js
@small zenith u cant
you should really do step debugging btw
Santa wumpus does @earnest phoenix
It asks to send link and when sent it edits msg to server name
@opal plank
@vivid wadi u need node.js v12++
thats it
@vivid wadi ye
its installed
i have node.js
u done
oh
you had it before
what file should i open ๐
@vale garden try step debugging on VSC, might give you a clue of whats going on the code
mate, you CODE your file
you dont open it
wtf
@vale garden int d = 0; if its not 0 by default, you cant get the value from it if its never assigned by anything
when?
@small zenith what api wrapper are you using
discord.js
._.
but not download it
@vale garden int d = 0; if its not 0 by default, you cant get the value from it if its never assigned by anything
@earnest phoenix ok but assigning 0 leaves it at 0 so that isnt the fullthing right
mate, js is not downloadable
oh
u know nothing about nodejs
@earnest phoenix
@opal plank he open the Disocrd.js source dile
file
@vale garden if the value of d is 0 you can unbox it, if its null, you cant
yes indeed @earnest phoenix
@vivid wadi https://discordjs.guide/
@vivid wadi
okk
Maybe @vivid wadi need to watch some yt tutorial first
oh god no
Dont search for Discord.js
just make a file
and type npm install disocrd.ks
js
and then u make a new file from that folder
and then open the file u have created
since he isntalled discord.js i assume he init'd the project already
const disocrd.js = require("fisocrd.js")
980714
you sure they have node downloaded
eval(content)?
you can feel and anger by the way you typed this https://ptb.discordapp.com/channels/264445053596991498/272764566411149314/745932978944868352
@timid terrace we are spoonfeeding
help
Eval
DONT go youtube
Ok
use docs
helpppppp
youtube likely has outdated and poorly explained shit
i wanna advertise my server
is this is?
@vivid wadi you need to LEARN JavaScript before making a bot
i don't know what's happening
dont copy code
i didnt
just a warning
it auto came there
im aware
one guys trying to learn djs without knowing difference between js and java
just letting you know before hand
the usual hourly message in #development , thats whats happening
should've gotten used to it by this point
theres no shame in coming here to ask for directions on where to learn
as long as you willing to put effort into it, of course
@vapid oak what?
not the place for this
@vapid oak anyway, what exactly is the issue? what web thingy? top.gg?
@small zenith discordjs is shit ngl
Ok
oh
@small zenith but just do client.fetchInvite
will that give me server details?
it will return you full invite object
Ok
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
like this
umm why am i getting this error?
c.fetchall() doesnt have any entries
it returned an empty array ๐
you assume theres always at least one entry by doing [0][0]
oh
it returned null
1800 lines 
does py not have a handler?
shivaco, people might be committing sins here
im pretty sure c.execute doesnt return a value
@weary ridge you might use c.get if you want it to return a row
and c.all if you want it to return all rows
๐ซ
How ro make a 7/24 uptime discord bot ?

Self host?
on your own PC
yeah, you can run bots on your computer
;;---;;
as long as you have it running 24/7, the bot will run 24/7
Uptime bot?
Uptime bot?
@timid terrace wat
anyone know how to make a bot have a play music command with discord bot maker
?

I have uptime bor
anyone know how to make a bot have a play music command with discord bot maker
?
@alpine zephyr don't use it
do real coding
y?
personally i'd start by not using DBM

self hosting doesnt need uptimer, and the fact that you need an uptimer means you shoukldnt be using it
im dumb tho
you can only do things in DBM that its creators have made functions for
usually uptimers are done to avoid getting the code to idle, likely glitch
learn
youre not dumb, you can learn! its a standard feature of the human OS ๐
What name make a discord web
i was first one to react with star
inspirational quotes in #development , thats a rare thing to see
ima need to get .js for visual studio
What website name
ima need to get .js for visual studio
what
you mean a linter?
isnt
wait i can also star messages?
you dont get .js for vsc
Im turkish
wait i can also star messages?
@delicate shore as long as its not your own
I have bad english
VSC is a code editor
oook
ook
You mean glitch ?
you shouldnt use glitch
they remove bots, its not a site for hosting bots
Dont star me 
How ro make a 7/24 uptime discord bot ?
@timid terrace https://www.heroku.com/
@delicate shore can you not star random messages
NO
not heroku NOR glitch
who cares
Heroku dont use quick.db
they do
@delicate shore can you not star random messages
@winter basalt ok
they remove your bots
Reis
my c# bot runs on heroku np
glitch AND heroku aggressively remove bots from their website, yout he one on the wrong for using a website meant for webservers and websites hosting for a unintended prupose that breaks their TOS @earnest phoenix
Sen ne onerirsin
Dont star me :AngeryBoye:
@opal plank is it a bad thing?
well if i say some dumb shit feel free to star, just dont spam it
you get sent to tonkkus lair to be tortured when you're starred, so yes it is bad
you want to put bot on your computer?
Pwait i copy website url
for run 7 / 24?
I use tepeljone
for free you can host bot on your pc
or you can pay $3 for VPS
DONT use glitch
use galazy gat
@opal plank hosting a discord bot on heroku doesnt break their TOS lmao
other sites for free no pay
galaxy gate
1000 hours finish for new aaccount uptime
@earnest phoenix there are multiple instances of reports of glitch and heroku agressively removing bots from their platforms
3dollars is like 21 tl
@earnest phoenix IT IS LIKE 210 RUPPPESS
oh sorry for caps
@opal plank That has nothing to do with hosting discord bots on their server in general
What
free host
who doesnt have a credit card nowadays?

apart from minors, clearly
or dan bot hosting
there are plenty of free VPS out there to host your discord bot
glitch and heroku shouldnt be on that list
up to you to risk it
they arent meant for bots
What makes me so mad is when people are spreading false rumors and when questioned, he cant even back himself up with proof
3 votes and 10 comments so far on Reddit
I dont see how people dont know, that you can not ping your bots anymore on free glitch..thus you can not host your bot 24/7 on a free gltich account.
If you buy a glitch account, then why not buy a normal vps instead?
this is also an example of heroku's limitations
Let's get 2 things out of the way first. First, Heroku can't handle Music Bots - don't even try, it won't be worth it. Second, you cannot save data on a Heroku instance meaning you can't use sqlite, json data, enmap, or any other "save file on disk" concept. You'd need pgsql or a separate database instance.
false, false and false
I have used heroku, when I started with bots, to learn how to use them^^ but as soon as you want a more serious bot, there is literally no free option.
even the guides tell you
yea
so how is that false false false
when it says exactly what you just said
@opal plank sry, but that guide can not be uptodate, you can not host 24/7 on glitch anymore for free, they changed some stuff lately
let me shit on you and write a bot right now that literally proves you wrong
hey dude, you do you
i dont give 2 f's about what you do or dont
just keep on topic here
no drama
THEN why are you spreading false rumors
i've given you sources yet you still claim stuff
are you dumb
take your drama elsewhere
you created this situation
i explained that you shouldnt use glitch nor heroku for hosting bots, period
there a better alternatives
which are also free
and properly suited for discord bots
reeeeee
Show me in the TOS where it says that discord bots are not allowed
no u can use it
but it is bad
that is
They banned me
^^
For bots
wut
@earnest phoenix wdym

he never said it is against the ToS rules wut
there are quite a few cases of that happening
why
and why
glitch AND heroku aggressively remove bots from their website, yout he one on the wrong for using a website meant for webservers and websites hosting for a unintended prupose that breaks their TOS @earnest phoenix
@opal plank
RIght there
oh
i see
Because I just MADE an app called " discord bot" smth and i didn't even upload mah files
i use heroki only for lavalink only
Maybe they have bots to detect discord bots
lol
BTFS is so much better than a VPS
u should use heroku only for Lavalink
it is good
@earnest phoenix he was talking about pinging your own bot
Anyone knows what BTFS is
lol
nope0
lol
B ittorrent
F iile
S ys
T em
@earnest phoenix ye
u need to wait
3week+
to get vertified
ye
before was 1week+
I have waited 4 weeks ๐ค
but now 3weeks
@midnight blaze Damm
i waited 4 days
hehehehe
:)
What i need to do to get "BOT DEVELOPER" role?
verify my bot?
get vertifed
read the faq
just wasting money
for vps
but it gives u exp
V irtual
P rivate
S erver
u will get banned soon
ye
for vps
@earnest phoenix just use heroku
free host :)
@earnest phoenix and u will get banned soon
oops
://
idk
@earnest phoenix yes
yes Heroku
why?
Banned on glitch, not here.
if you use a flask server or express server to keep your bot alive with pinging
you will be banned
u better move to vps
It's time for my rasberry to do its job ":))
they are all free
for vps
i use my rasberry
Lol, they aint free, you have to add your credit card and the more specs you use, the more expensive it gets
yep
Also, you don't get "banned" afiak. Only your project on Glitch gets suspended.
but u need to vertify ur self with creadit card
its ok to self hosting the bot? on a server?
ye
like rasberry
k
ye
eait what
oh ye
@earnest phoenix nc
either a pc or rasberry work
react on your own comments, poggersxd
pi 4 might be a very reliable option
i have 4
rasberry is good
3*
if you have like an old tablet you dont use
you could also use this to host your bot
yes, very ok
most vps should work
@earnest phoenix you asked every person on Indonesia or where do you get your sources from?
edit your messages instead of sending a new one to correct yourself
also youtube isn't a valid source
show source that says what you says. It doesnt make sense to me^^ why should people from Indonesia be ignored by glitch.com?
LUL. on Wii?
Haha kinda wanna see that
Hey
i think i might still have it
Who can I get the link of the server ?
gimme 2 m lemme see if i can find it
Speaking of which, what did the Wii even use as an OS?

@earnest phoenix you dont get it tho, they changed this lately. The ignored people in the past, but not anymore. It is new.
Can u tell me ?
@delicate lance you are new on discord?
@earnest phoenix cant find it, though i bet i know where i left it
also this https://github.com/DeltaResero/
@midnight blaze no
I want user use prefix command and my bot gives to role the user
{
if (msg.content.toLowerCase() === prefix + 'reg')
{
const role = msg.guild.roles.cache.find(role => role.name === "ROLE");
const member = msg.mentions.members.first();
member.roles.add(role)
}
});```
its not working
member.edit
member.edit what?
replace member.roles.add(role) with member.edit()
ok im trying
@delicate lance gd
didn't work
.edit takes a GuildMemberEditData parameter
just make a new object and box the roles you want to add
nick?: string;
roles?: Collection<Snowflake, Role> | RoleResolvable[];
mute?: boolean;
deaf?: boolean;
channel?: ChannelResolvable | null;
}```
yes
@earnest phoenix thank you
Hoi! I'm trying to make a ping command but when I run node . this is shows! Pls help me
client.on('message', msg => {
if (msg.content === '.ping') {
try {
const m = await MessageChannel.channel.send("Pinging...");
const embed = new Discord.MessageEmbed()
.setColour ("RANDOM")
.addField("โ Latency", ${m.createdTimestamp - message.createdTimestamp} ms**)
.addField("๐ API", **${Math.floor(client.ws.ping)}ms**)
return m.edit(๐ Pong!, embed);
} catch (error) {
return message.channel.send(Something went wrong!: ${error.message})
}
}
});
@slender wagon
you don't have a command handler?
client.on("message", async msg => {
@earnest phoenix there is so much wrong with that....
try this @earnest phoenix and let me know
What is wrong?
What is MessageChannel
Where should I add it?
I saw it from a tutorial
@earnest phoenix I suggest you start by learning nodejs and then discord js โค๏ธ
I am doing this
You clearly dont know nodejs
} else if (message.content === `${prefix}prefix`) {
message.channel.send('Prefix :: *`'+`${prefix}`+'`* To Change The Prefix, Type :: *`'+`${prefix}`+'changeprefix`*');
} else if (message.content === `${prefix}changeprefix`) {
message.channel.send('Type The New Prefix');
if(message.content){
prefix == message.content;
message.channel.send('Prefix Changed, New Prefix :: *`'+`${prefix}`+'`*');
}
}
Im semi new to the language, how would i test it someone has sent a new massage?
is there a way to code a discord bot with json or is discord.js the best option?
lol, you've got different options not only js
and json is used to store data for js
it is not a language
^
i was told that using javascript gives you the most options, is there a easier language to understand or to relate to js? or should I just keep pushing at js using tutorials?
But I am doing this by tutorials! I only want to make this command
@earnest phoenix dont watch discordjs videos
Watch nodejs
@forest drift perhaps python would be easier, have a look
sure
i would suggest sticking in with what you started
yeet.
Song:
Twenties by Peyruis https://soundcloud.com/peyruis
Creative Commons โ Attribution 3.0 Unported โ CC BY 3.0
Free Download / Stream: https://bit.ly/twenties-peyruis
Music promoted by Audio Library https://youtu.be/t9glFROS8-k
Source Code: https://github.com/Blob-...
you will start understaning
hello, does anyone know how to add a delay to your commands? for example, if i type !play, it could respond a set time after instead of instant?
also, just wanna appologise if i offend someone in the future, im extremely stubborn and normaly learn by making mistakes. also im not the best with wording
i relate
ive been following this (https://discordjs.guide/creating-your-bot/#creating-the-bot-file) tutorial tho not everything relates cause im using fedora
are there any good discord bot hosts that are free? or could i host a bot using a website?
something that seems so easy yet so complicated ๐ญ
i have no idea
i run all my bots off a spare pc anyway
free hosting is not recommended but you can use glitch or heroku
are there any good discord bot hosts that are free? or could i host a bot using a website?
@forest drift
Heroku
all i want is to add a 3 second delay
@ionic warren so by that imma guess website javascript doesnt work for the bots?
@earnest phoenix you can't just tell me what to do so I can finish the ping command?
nope
free hosting is not recommended but you can use glitch or heroku
@slender wagon i have a premium account on glitch?
you wont gain from spoonfeeding
im not sure @forest drift im new to this
why?
but if you are doing an economy command then you should store the data in mongoDB rather than just making a json file and using fs to write it, coz heroku makes your application go to sleep if it's not in use, and then loss of data
@fervent bloom is heroku free?
you wont gain from spoonfeeding
@earnest phoenix sometimes you can learn from bisecting others designs? thats how i learnt how to do basic coding... then went for lessons and turned out to be way more efficient
yes heroku is free
ty
but if you are doing an economy command then you should store the data in mongoDB rather than just making a json file and using fs to write it, coz heroku makes your application go to sleep if it's not in use, and then loss of data
@fervent bloom i used to have that same problem with glitch so i just setup a bot to constantly refresh the site
ive been using one of those hosts on my phone where u have to watch a video for 90min of online, but since im now using the terminal on my computer idk what imma do now
Ping?
I don't use glitch tho
@fervent bloom i just used glitch cause it was simple, free and could control my other sites
VSC is free too, but don't worry everything is good, until you know how to code properly
anybody know how to make the bot @ you/the person who puts the command
hello, does anyone know how to add a delay to your commands? for example, if i type !play, it could respond a set time after instead of instant?
@ionic warren Kindly explain in detail, coz am confused lol
anybody know how to make the bot @ you/the person who puts the command
@ionic warren message.reply('Your message')
is glitch ever rly safe?
dk
Yes, if you don't use it for Discord bots
Do anyone know how to host glitch Bot for 24/7
P.S. you'd be violating Glitch's guidelines if you did
wait glitch has closed that service i think
they have a system now where u can select a certain cite to run 24/7 but u can only have 1 unless u have the premium thingy
like hosting your bot free 24/7 on glitch
@earnest phoenix atleast private the project
or i think its like an entire month minus 5 hours
@fervent bloom i mean as in, if i put my command (in my case, !play) instead of the bot instantly replying, can i add a timer that will make the bot wait before replying?
u could try lagg out the bot so it goes slower before replying ;-;
Which programming language? @ionic warren
<YourBot> is typing.... ( You mean this? )
yes
yup
@fervent bloom member.toString()
also im still a little confused on the. @ user part. because i want my bot do something like this @granite pagoda <bots message>
what do guilds guilds.join connections scopes do??
@ionic warren just do member.toString()
ohh just that?
will return the users mention instead of the guildmember object
guilds gives access to view user's guilds (servers)
guilds.join allows you to join a guild on the user's behalf
connections gives access to user's connections (Reddit, Spotify, GitHub, etc.)
message.channel.startTyping();
for (i = 0; i < (<HowMuchTimeDelay> + 1); i++) {
message.channel.send("Your message");
}
message.channel.stopTyping();```
I remember this, you can try @ionic warren
thanks @slender thistle
ok nvm am dumb ;-; let me find it out again in my rusty brain
in JS to wait X seconds, you'd use setTimeout
dw if you're dumb then my brain is non existent
you guys should start using the documentation more
Documentation might be confusing at times
its actually not
to you
if you know how the api works, you know what to look for
You're expecting too much from beginners
i dont
channel.startTyping();
setTimeout(()=>{
channel.send(string).then((message)=>{
channel.stopTyping();
});
}, 5000)```
try this @ionic warren
and yes documentation is confusing
beginners can't just go and read the documentation and just code
i just expect them to atleast know the basics of their lang before even asking for help, cause most of the times its not even a issue regarding the api
that will make them understand nothing
reading really doesnt hurt
-ban
everyone asks questions and what's wrong with asking questions? Ye i get it that there are some people who'd like to be spoonfed, but for some good beginners out there, documentation is not really the thing
๐ if u spoonfed them once, they will then expect always to be spoonfed
that's true
@slender thistle I write a ping command! I save, it says logged in as The Universe my bot's username but when I am trying to run this command it is not working
show the ping command
The code?
mhm
yes only the ping command code
Also, do you know how to screenshot on windows 7 so I don't have to take photo from my phone?
you can just copy and paste it here
There's ShareX and Windows' built-in tools
ok
that works too
client.on("message", async msg => {
if (msg.content === '.ping') {
try {
const m = await MessageChannel.channel.send("Pinging...");
const embed = new Discord.MessageEmbed()
.setColour ("RANDOM")
.addField("โ Latency", ${m.createdTimestamp - message.createdTimestamp} ms**)
.addField("๐ API", **${Math.floor(client.ws.ping)}ms**)
return m.edit(๐ Pong!, embed);
} catch (error) {
return message.channel.send(Something went wrong!: ${error.message})
}
}
});
msg.content === '.ping' what does this tell you?
I saw it from a tutorial
How are you running the command?
not a command handler i see 
node .
client.on("message", async msg => {
if (msg.content === '.ping') {
try {
const m = await msg.channel.send("Pinging...");
const embed = new Discord.MessageEmbed()
.setcolor ("RANDOM")
.addField(":hourglass: Latency", `**${m.createdTimestamp - message.createdTimestamp} ms**`)
.addField(":heartbeat: API", `**${Math.floor(client.ws.ping)}ms**`)
return m.edit('๐ Pong!', embed);
} catch (error) {
return msg.channel.send(`Something went wrong!: ${error.msg}`)
}
}
});```
p.s. don't spoonfeed
SHIT
client.on("message", async msg => {
if (msg.content === '.ping') {
try {
const m = await msg.channel.send("Pinging...");
const embed = new Discord.MessageEmbed()
.setColour ("RANDOM")
.addField(":hourglass: Latency", ${m.createdTimestamp - message.createdTimestamp} ms**)
.addField(":heartbeat: API", **${Math.floor(client.ws.ping)}ms**)
return m.edit('๐ Pong!', embed);
} catch (error) {
return msg.channel.send(Something went wrong!: ${error.message})
}
}
});```
@fervent bloom it is not working
there are still so many things wrong with that
Could you tell me the wrong things?
Could someone write the code and send it to me? Pls
no ones gonna do that
not in the try branch either
the second field value, there too
And I should point at the fact that you were the one who sent the code above
and 3rd
change colour to color
add backticks on all the field values
and where ur handling the error
Does d.js not allow both British and American English?
i think its only american
only the American
kek

yeep
really
I made a ticket system
but i wanna make sure it allows role selected by
the admin of server
use a database
quick.db will work?
try it.
How
@earnest phoenix can i find a role by name and overwrite perm for it
like in my help command i will say make a role called staff
and give it to mods
you could so something like
of course u can
oh wow
const role = <guild>.cache.find(role => role.name === 'name');
// add role
?
reaction.message.guild.channels.create(`ticket-${user.username}`, {
permissionOverwrites: [
{
id: user.id,
allow: ["SEND_MESSAGES", "VIEW_CHANNEL"]
},
{
id: reaction.message.guild.roles.everyone,
deny: ["VIEW_CHANNEL"]
} {
id: reaction.message.guild.roles.role,
allow: ["SEND_MESSAGES", "VIEW_CHANNEL"]
}
],
type: 'text'
}```
so it will. be like this
right ?
try it.
guild.roles.role tf ?
guild.roles.role tf ?
@digital ibex i will define role
what
hmm
u do know
like i did roles.everyone
it doesnt work like that
i will do roles.rolename
im so sure it doesnt work like that
check the docs
i am using something else
as i thought, it doesnt
i am using like this
if this is working
{
id: reaction.message.guild.roles.everyone,
deny: ["VIEW_CHANNEL"]
}```
then js { id: reaction.message.guild.roles.rolename, allow: ["VIEW_CHANNEL"] }
should also work
@digital ibex then is there any other way to do so
roles.rolename makes no sense
guild.roles is a RoleManager object, which contains the role cache
the everyone property is simply a shortcut, its not an actual role
the actual roles are stored in the role cache: guild.roles.cache
how would i make a basic random number generator?
In computer science typically we accept the use of psudorandom 
how would i make a basic random number generator?
@forest drift Language?
she did that
@forest drift Language?
@faint prism js
I do something similar to get the admin for a channel
foreach (var role in user.Roles)
{
if (role.Permissions.Administrator)
{
//Do a thing
}
}
@faint prism js
@forest drift https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
Googling your question will likely give you what you're looking for
thanks

java api what
/**
* This is now included inside {@link GameCountsReply}
*/
@Deprecated
public class PlayerCountReply extends AbstractReply {
private int playerCount;
public int getPlayerCount() {
return playerCount;
}
@Override
public String toString() {
return "PlayerCountReply{" +
"playerCount=" + playerCount +
"} " + super.toString();
}
}
Well this is a class
plz help
It worked @quartz kindle @faint prism Thank you โค๏ธ
pls help?
do you theoretically have to have a cooldown of 10 seconds for each command?
No
what do you need help with
To call a Java function you create a class object, then call the function
PlayerCountReply playerCountReply = new PlayerCountReply();
System.out.println(playerCountReply.getPlayerCount());

idk what the hell he wants
:o we get early dev badge 
what?
look #discord-news
I know
@earnest phoenix
Cuz if you create custom bots for servers you don't get the badge
To call a Java function you create a class object, then call the function
PlayerCountReply playerCountReply = new PlayerCountReply(); System.out.println(playerCountReply.getPlayerCount());
@ebon kelp how do i console.log this?
dbnhgkilcsdisghuidh
System.out.println() is console.log for java
so who do i put this inside my discord bot that is javascript?
:5Head: yes
@inland pulsar yes
where tf did you find this code
yes
where tf did you find this code
@inland pulsar github
is this a java wrapper for an api of hypixel ?
yeah
why can't you just do api requests yourself
idk
theres no need for a module or dependency
some of hypuxel's API is in website
but some is java
which i dont know a single thing about
an api is not language dependent
was about to say that
or shouldn't be
const req = await superagent.post("https://www.example.com/api")
.set("Cookie", cookies)
.type("text/plain")
.send(payload);
``` i how to delete in this cookies?
uh
please help
usually api's use json
HELP?
anything that can do that should be fine
@carmine summit do you know any programming language?
usually api's use json
@opal plank yeah thats why im way out of my comfort zone
Javascript and some of python
I know how to touch an API
in js you have stuff such as axios, curl, request and other methods to do calls
if you wanna use an api then learn to make web requests
but i dont know how to touch a java API
shouldnt matter
oh okay good bye :/
for the api
thx for help
np
i am still confused with this Java API thingy
i how to delete in this cookies? if you think we know what you want with this question then goodbye
How do I read java API?
its really poorly documented though
@carmine summit do you know what an api is
its so user unfriendly doing stuff that way
@inland pulsar oof, good question^^ let see if that user can answer that
yeah thats the thing
i dont see an api
the docs at least
clearly this wrapper connects to it
but i dont see any mention on which domain or endpoints to use
just that it requires an api key, which is listed how to get
Guys.
Does anyone know any hosting websites?
do you want support with your hosting ?

oxide.host has good support when I was there
now for the enpoints, im not sure
okay.
i need to transfer it to javascript as a string
these docs are actually super hard
api key is simple to grab
just two braincells to do this
one to click the link and the second to type the command lol
@inland pulsar what do i do now 
i dont know how to read
oh
doesnt oxide use ovh
do you know any discord bots hosting?
ik
they litarilly helped me setup a mail server on a vps when they have their own mail plans
xd
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed```
help me
i dont know how to read
im still confused
Guys, what app did you create for your bot?
@earnest phoenix discord developers

Guys, what app did you create for your bot?
@earnest phoenix https://discord.com/developers/applications
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
go there
what
lol
how are these people communicating I'm confused
im unsure too
App?
english is a very hard language aparently
please help me
App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
so what exactly did u mean?
the thing that's most weird to me is that people come to top.gg to ask the weirdest questions
now make requests
@opal plank how can i make request. i already have the api key
i told you
I use VSC if that's what you're asking.
I know how to use axios
i mean half coding
who asked 
i have used axios for coding the apis that is in JSON format. but in Java not yet
totally not like u can copy from other codes
you send shit, it returns shit, no java involved
eh?
yeah i know
ima be making commands in there
you know what GET POST are?
i have already made APIs
wait
then why is it that you keep hitting the same key on the fact that its a java api?
it listen to requests, does stuff internally, and emits a response
theres no js/java involved
it doesnt matter which language the api is running at, you just gotta send a payload that it accepts
package net.hypixel.api.reply.skyblock;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import net.hypixel.api.reply.AbstractReply;
public class SkyBlockAuctionsReply extends AbstractReply {
private int page;
private int totalPages;
private int totalAuctions;
private long lastUpdated;
private JsonElement auctions;
public int getPage() {
return page;
}
public int getTotalPages() {
return totalPages;
}
public int getTotalAuctions() {
return totalAuctions;
}
public long getLastUpdated() {
return lastUpdated;
}
public JsonArray getAuctions() {
if (auctions == null || auctions.isJsonNull()) {
return null;
} else {
return auctions.getAsJsonArray();
}
}
public boolean hasNextPage() {
return page < totalPages - 1;
}
public boolean hasPrevPage() {
return page > 0;
}
@Override
public String toString() {
return "SkyBlockAuctionsReply{" +
"page=" + page +
", totalPages=" + totalPages +
", totalAuctions=" + totalAuctions +
", lastUpdated=" + lastUpdated +
", auctions=" + auctions +
"} " + super.toString();
}
}```
i got presented by this
fam

yes, this is Java, I can confirm7

then how do i get API?
just look at the template of the payload and do it in your native language
you dont GET the api
xd
he said he have made an api before
just look at the template of the payload and do it in your native language
@opal plank where?
downlaod api.exe
xDDD
which you use
@opal plank joke api
yes, download the api.exe
urban dictionary
can you explain what an api is? @carmine summit
@opal plank how to lose braincells 2020

@fluid basin i swear my iq going negative from idling here
just look at the template of the payload and do it in your native language
@opal plank where do i get this information?
sniffing loudly
@carmine summit

thats the thing, i dont see any docs either(though i did a 30 second google search), use the template from that wrapper
ye timo
@kind sedge "zizi" is penis in french
console.log("command run = joke")
let getJoke = async () => {
let response = await axios.get('https://official-joke-api.appspot.com/random_joke');
let joke = response.data;
return joke;
};
let jokeValue = await getJoke();
console.log(jokeValue);
message.channel.send(`${jokeValue.setup} \n \n \|\|${jokeValue.punchline}\|\|`)
}```
js devs
API

or properly find the documentaion from the forum
use the api @mental edge
okay.
assuming you already know a programming language
head over to #topgg-api and check topic or pins, they surely have the api website pinned
else if (command === "joke") {
start joke_api.exe
}
Hi
i swear, sometimes i wish i got banned from this channel. Either way, going to grab some food, need to recharge for the next helping session
lol
else if (command === "joke") {
start joke_api.exe
}
@midnight blaze BRUH
this is API
this is I Dont Know
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
this is api
properly documented shit
properly documented shit
@opal plank the irony
even i had a stroke reading the hypixel stuff you sent me
though you gotta either find their docs or dig that warpper code to see the format their api use
so you can use it
where can I host a bot for free except heroku and glitch
here we go again
thanks how can i use
@opal plank its fairly simple tbh, the document path is the api path
yeah, then what?







yes
