#development
1 messages · Page 1218 of 1
oxide has wider stuff
@restive furnace @charred geyser https://bluefoxhost.com/
Oh
ig contabo is alright
Idk if it's good
Oxide best
@trim lark uhh the member should be the author, "Testing" was the "suggestion" it should show as main text in the embed message
:(
and in your code
async def suggest(ctx, member: discord.Member):
u want a member as an arg
any """""""""""free""""""""""" hosting is/will either:
- not intended to be used as hosting for bots
- not actually suitable for hosting for bots
- not actually free
- will get your token stolen
- all of the above
Be shit^^^
the u need to change ur code
im gonna highlight 2 and 4 here
wait hold on
@acoustic bridge
any """""""""""free""""""""""" hosting is/will either:
- not intended to be used as hosting for bots
- not actually suitable for hosting for bots
- not actually free
- will get your token stolen
- all of the above
- Be

some free hosts are good lol
$5 digital ocean droplet all day
discord.Member = None
?
why do u need a discord.Member arg
some free hosts are good lol
LoC doesn't count
a
:(
@client.command()
async def suggest(ctx, member: discord.Member = None):
try:
channel = client.get_channel(741284150970941522)
member = ctx.message.author
embed = discord.Embed(
title = "Suggested by:",
description = f'{member}',
color= discord.Colour.blue()
)
embed.set_thumbnail(url=ctx.message.author.avatar_url)
embed.add_field(name="Suggestion:", value=str(ctx.message.content), inline=False)
await channel.send(embed=embed)
except Exception as e:
await ctx.send(e)
I'm just gonna leave that here, maybe you will know what i mean. (Worked before when running on PC I can guarantee)
https://bluefoxhost.com/
I read the details and for someone who can't afford VPS
This can be a great option tbh
but
they have access to the files
But I always recommend Galaxy Gate
they can literally fucking steal your toekn
anything marketed as a free host for discord takes your code and or abused your token

@client.command() async def suggest(ctx, member: discord.Member = None): try: channel = client.get_channel(741284150970941522) member = ctx.message.author embed = discord.Embed( title = "Suggested by:", description = f'{member}', color= discord.Colour.blue() ) embed.set_thumbnail(url=ctx.message.author.avatar_url) embed.add_field(name="Suggestion:", value=str(ctx.message.content), inline=False) await channel.send(embed=embed) except Exception as e: await ctx.send(e)I'm just gonna leave that here, maybe you will know what i mean. (Worked before when running on PC I can guarantee)
@acoustic bridge the code uve written doesnt do what u want it to do
heroku is ok if you setInterval to ping self every so often to avoid sleeping
LoC good
There's a reason it's virtual private server
anything marketed as a free host for discord takes your code and or abused your token
But I always recommend Galaxy Gate
virtual PRIVATE server
how to use ${client.users.cache.reduce}?
Stfu matt >:( copycat
no, it's virtual public server in LoC
u have an uncessary arg for no reason which is causing the error @acoustic bridge
its a shared vm
no, it's virtual public server in LoC
I could access your token right now
you need an arg for the suggestion next not for the user
any """""""""""free""""""""""" hosting is/will either:
- not intended to be used as hosting for bots
- not actually suitable for hosting for bots
- not actually free
- will get your token stolen
- all of the above
@misty sigil you need to explain the issue with 4
4a.
@pure lion my ip
192.168.1.||69||
My IP is 255.255.255.255
have you tried every single hosting service @thick gull ?
I’m a white name in disguise
have you tested it and found flaws in them?
I guess I will keep on running my bot on my local PC, i also need my music commands somehow
man
Install ffmpeg
hosts are hosts for a reason
@acoustic bridge music + heroku = not sex
free hosts are not
yea

if it’s free your the product
^^
it’s like it depends on your use
heroku is dysfunctional
if it’s free your the product
okay mister unfriended quote
I guess I will keep on running my bot on my local PC, i also need my music commands somehow
@acoustic bridge your code is incorrect
most of them arent good, i agree. but not all of them.
atleast the one on Heroku
LoC is good but everyone can access your files and fuck you in the ass
I will never use a free host. I’m not about to risk losing my token/not going offline and losing a ton of shit
there are some good ones which actually do what u want, act as a vps but its a vm
What is LoC?
Library of Code
my own PC has more uptime than most free hosts
ah
@pure lion no u cant
Poot
What is LoC?
@golden condor lmao i think this is like the third time you asked that
Most free hosts have some sort of catch, limit, security flaw or are ineffective for discord bots
LoC has limits
@golden condor lmao i think this is like the third time you asked that
@pale vessel shsusuhshshsysuushshshhsusyhs
some have reasonable limits mmLol
si.getStocksInfo(stocks).then(function(v) {
console.log(v.symbol)
})``` how do i catch a error before function
any free hosting is/will either:
1. not intended to be used as hosting for bots
a. intended to host small nodejs sites etc.
2. not actually suitable for hosting for bots
a. allow you to host bots but does not have enough specs
3. not actually free
a. is only a free trial
4. will get your token stolen
a. this issue is practically removed when getting from a trusted source (e.g. AWS / Google Cloud (these are both relatively bad for hosting bots))
Most free hosts have some sort of catch, limit, security flaw or are ineffective for discord bots
right
is that good enough
“any free hosting “
Am I completely dumb or why message.user.id is not working?
it generally applies to any free hosting imo
And windows is not for both 
Vale probably because
useris not a property ofmessage
@sudden geyser discord.js
all free hosting applies to at least one of those points
if you want to get who sent the message use message.author
I try to do if the users id is the message.authors id then...
My free hosting provider uses templeos
any free hosting is/will either:
1. not intended to be used as hosting for bots
a. intended to host small nodejs sites etc.
2. not actually suitable for hosting for bots
a. allow you to host bots but does not have enough specs
3. not actually free
a. is only a free trial
4. will get your token stolen
a. this issue is practically removed when getting from a trusted source (e.g. AWS / Google Cloud (these are both relatively bad for hosting bots))
Most free hosts have some sort of catch, limit, security flaw or are ineffective for discord bots
@misty sigil explain what a token is, and what happens if someone malicious has it
ah ok
templeos?
think of a token like a password
And windows is not for both :Kek:
ofc it isn't, even almost everyone uses it.
a token is ur mom, she fat af
Lmao
same
same + linux
Any free hosting is/will either:
1. Not intended to be used as hosting for bots
a. Intended to host small nodejs sites etc.
2. Not actually suitable for hosting for bots
a. Allow you to host bots but does not have enough specs
3. Not actually free
a. Is only a free trial
4. Get your token stolen
a. This issue is practically removed when getting from a trusted source (e.g. AWS / Google Cloud (these are both relatively bad for hosting bots))
b. A token is a string you use to login to a bot, if your token is stolen/leaked your bot can be hacked, think of it as a password, just for a bot account. A bot token allows anyone to do anything with your bot, whether it be mass DM or banning everyone it can or just plain out abusing the API.
Most free hosts have some sort of catch, limit, security flaw or are ineffective for discord bots
better?
yes
capitalizations
if someone has your token > they can control it completely
it seems fine
Is there any way to shift local dB to mongoose ?
Because I can't seem to be able to read that special characters in sqlite
abcdb™️
hey
What 🤣
it’s a npm package
O
anyone wanna try out a bot
no
@uncut cosmos no ads ty
ok starman i didnt know
Starman 
if(message.author.id) {
embed2.setDescription(`**Informations**\n├─Edited in: <#${message.channel.id}> [${message.channel.id}]\n├─Message ID: ${esnipechannel[4]}\n├─Edited by: <@${esnipechannel[5]}> [${esnipechannel[5]}\n`)
embed2.addField("**Old Content**", `${esnipechannel[0]}`)
embed2.addField("**New Content**", `${esnipechannel[1]}`)
}
``` I try to do if the message.author.id is the message author's id then this things will happen
That hurts my eyes
that will always be true
@uncut cosmos if you're unsure of what you are and aren't allowed to do here, i would highly recommend you take a long read of #rules-and-info 👀
Any free hosting is/will either:
1. Not intended to be used as hosting for bots
a. Intended to host small nodejs sites etc.
2. Not actually suitable for hosting for bots
a. Allow you to host bots but does not have enough specs
3. Not actually free
a. Is only a free trial
4. Get your token stolen
a. This issue is practically removed when getting from a trusted source (e.g. AWS / Google Cloud (these are both relatively bad for hosting bots))
b. A token is a string you use to login to a bot, if your token is stolen/leaked your bot can be hacked, think of it as a password, just for a bot account. A bot token allows anyone to do anything with your bot, whether it be mass DM or banning everyone it can or just plain out abusing the API.
Most free hosts have some sort of catch, limit, security flaw or are ineffective for discord bots
final write
ok pog
Woo
now preach it to all the white names asking for a host
ok starman i was just wondering thats all

into the copypasta file it goes 
what is the target audience
white names
people who want a free host
like me
Generally speaking, most free hosts have one or more of these flaws, but not all do, some are fine
- Limits - they may limit storage, ram or CPU and sometimes these limits can be reasonable
- Are a scam - many hosts promise free hosting but they never actually give it to you
- Have security flaws - your code may be public unless you pay meaning your token (the way you connect to your bot, and should be private) could be leaked
- Have catches - might have a lot of downtime or require you to watch ads or might sell your data etc.
- Ineffective for discord bots - some hosts might be ineffective for discord bots as they are made for websites or other things
- Incompatible with some libraries - some hosts can't use things like sqlite, ffmpeg or others meaning you can't store data or play music which can be bad but is not bad unless your bot does any of these things
- Is slow - your bot might be incredibly slow or database speed might be incredibly slow which affects your bot
As I said, not all hosts are like this, but most have one of these catches so watch out
but in disguise
shit
if(message.author.id) {
embed2.setDescription(`**Informations**\n├─Edited in: <#${message.channel.id}> [${message.channel.id}]\n├─Message ID: ${esnipechannel[4]}\n├─Edited by: <@${esnipechannel[5]}> [${esnipechannel[5]}\n`)
embed2.addField("**Old Content**", `${esnipechannel[0]}`)
embed2.addField("**New Content**", `${esnipechannel[1]}`)
}
``` I try to do if the message.author.id is the message author's id then this things will happen
callum can i add that
you got competition
That's ---
I did one too
how about we combine it and then send message links
You can use it if u want
?
there are more retarded people with the <@&265125253443878912> role than white names so ty
ok but that implies they know how to start a bot
I don't mind matt
how about we combine it and then send message links
rather than spam with the full message
i don’t mean white name as role I mean it as a mentality

or something
because yes I don’t have bot dev rank and I am capable, so whitename isn’t specifically limited to roles:)
https://jeremy-clarkson.is-inside.me/q5FNwubo.png fuck its so big lmfao
#development message msg link
Any free hosting is/will either:
1. Not actually suitable for hosting for bots
a. Allow you to host bots but does not have enough specs
2. Not actually free
a. Is only a free trial
3. Get your data/token stolen
a. This issue is practically removed when getting from a trusted source (e.g. AWS / Google Cloud (the free (trials) are relatively bad for hosting bots))
b. A token is a string you use to login to a bot, if your token is stolen/leaked your bot can be hacked, think of it as a password, just for a bot account. A bot token allows anyone to do anything with your bot, whether it be mass DM or banning everyone it can or just plain out abusing the API.
<Below is entirely written by @golden condor>
Most free hosts have some sort of catch, limit, security flaw or are ineffective for discord bots
Generally speaking, most free hosts have one or more of these flaws, but not all do, some are fine:
1. Limits - they may limit storage, ram or CPU and sometimes these limits can be reasonable
2. Are a scam - many hosts promise free hosting but they never actually give it to you
3. Have catches - might have a lot of downtime or require you to watch ads or might sell your data etc.
4. Incompatible with some libraries - most free hosts can't use things like sqlite, ffmpeg or others meaning you can't store data or play music which can be bad but is not bad unless your bot does any of these things (e.g Heroku)
List of good hosts: https://discordapp.com/channels/264445053596991498/272764566411149314/576818380498010112
hhhh
It takes my entire phone screen up jesus
Can someone help pls
hoister no hoisting
Also just ping me instead @misty sigil
discord usually dm's you if you token gets compromised
yeah but it’s still a precaution you want to take
if(message.author.id) {
embed2.setDescription(`**Informations**\n├─Edited in: <#${message.channel.id}> [${message.channel.id}]\n├─Message ID: ${esnipechannel[4]}\n├─Edited by: <@${esnipechannel[5]}> [${esnipechannel[5]}\n`)
embed2.addField("**Old Content**", `${esnipechannel[0]}`)
embed2.addField("**New Content**", `${esnipechannel[1]}`)
}
``` I try to do if the message.author.id is the message author's id then this things will happen. Someone can help now?
discord usually dm's you if you token gets compromised
@errant perch nah not if its not posted to github
its instant, and thats if its only open source
my bank usually calls me if my details get compromiSed, doesn’t mean I’m giving it out to other people
o
i swear (fuck)
nice fail numnuts
Im trying with another bot token and it opens but when i put my bot token, bot doesnt log in to the discord
Can someone help pls
oh I quoted the wrong message
lol
emir wdym
can you guys try to keep this channel a bit more on-topic
client.on("debug", msg => console.log(msg))
this should show debug info
did i just assume djs

if(message.author.id) {
embed2.setDescription(`**Informations**\n├─Edited in: <#${message.channel.id}> [${message.channel.id}]\n├─Message ID: ${esnipechannel[4]}\n├─Edited by: <@${esnipechannel[5]}> [${esnipechannel[5]}\n`)
embed2.addField("**Old Content**", `${esnipechannel[0]}`)
embed2.addField("**New Content**", `${esnipechannel[1]}`)
}
``` I try to do if the message.author.id is the message author's id then this things will happen
fuck
Does it never ready?
message.author.id is always the author's id
Ok
message.author.id is always the message author's id
Yea, but other users can see it too
@thick gull the bot does not open but it opens when i put a different bot token
wdym doesn’t open
In djs does User have a client property? I am tryna extend it so I can add a get property which checks if they are owner
the token is incorrect then?
No I know how to do that part
I just need to know if it has a client property so I can access the client
huh what
almost everything is attached to client callum
ok
I mean does User.client exist
people pass client to their execute function while i only pass message and use message.client
so I just would do
get isOwner() {
return this.client.config.client.owners.includes(this.id)
}```
open src/client/Client.js in discord.js and scroll to 436
Don't question the length of it
send the code around it
i didnt say that was him
i literally cant with u
Ok
:l
Discord gateway is being slow
its not showing up for me oof
Discord gateway more like discord minor inconvenience way
lol
client.on("debug", console.log)
if(message.author.id === message.author.id) {
embed2.setDescription(`**Informations**\n├─Edited in: <#${message.channel.id}> [${message.channel.id}]\n├─Message ID: ${esnipechannel[4]}\n├─Edited by: <@${esnipechannel[5]}> [${esnipechannel[5]}\n`)
embed2.addField("**Old Content**", `${esnipechannel[0]}`)
embed2.addField("**New Content**", `${esnipechannel[1]}`)
}
``` Hm... everyone can see this too.
what the
XD
message.author.id is always gonna equal message.author.id??
si.getStocksInfo(stocks).then(function(v) {
console.log(v.symbol)
})``` how do i catch a error before the function
if (true)
But everyone can see it still
You might as well just do if (true)
if (!false)
(wrongchannel)
if (channel != shitpostChannel) moveASAP();
@glacial mason what version of discord.js are you using?
@glacial mason did your account get flagged/banned by any chance?
specially if your bot has 'DISCORD' on the name or something along the lines
those usually tend to get flagged really easily
and which version of djs are you using
@glacial mason what version of discord.js are you using?
@digital ibex v11

my bot is verified
how bout we update it cuz its deprecated now?
yike
How can it be banned
your bot is definitely not verified
v11 deprecated
v11 is supported until october
and look at the month
well it sure isn't your bot-

or the account that owns it
i can only guess from this point, Tim might be more familiar with d.js than most of us
LOL
anyway, upgrade
well whatever it doesn't even matter
a
but yeah update asap
wut u need? i use djs
you have to upgrade later anyway
how do i catch a error outside of a function, discord.js
now's a good time
@rugged tundra go dot elsewhere, this is for dev chat
I just don't use the v11 version, everyone uses it
could be a thing too
How can i uprage the 300 command
wdym everyone uses it
tbf there isnt much to change
theres a guide on how to port it
@glacial mason https://discordjs.guide/additional-info/changes-in-v12.html
just search for things like users.x -> users.cache
shouldnt take more than a day to fix stuff
unless ur me a lazy fuck
or that
even if it works now, it wont work in the future
the website changed
its betetr to just get this over with
you have probably been rate limited
and v11 doesn’t have that
that might be cause of the error
no it would say so(?)
ok i will try to upgrade
for now it might be a simple change as changing the url to discord.com, but in a couple days/weeks v11 will likely stop working
Thanks for info

oof
and then ask for help here when my boost expires
@forest mirage doubt it tbh... cuz djs will error ratelimited rather than that
its basically js iirc
oh
make a bot in assembly
let’s make a scratch library 
but using that shitty interface for an actual bot is the challenge
^
lmao
eh tbf not rlly
cuz dbots are basically just
listening function
- if statment for cmd
- msg sent
ERWIN HELP!!!!!!
ok hear me out, bot designer but with drag and drop building blocks
Erwin I’ve seen really big scratch games
@charred geyser u need to add the url on the dashboard
Oauth2
read the error
seems like a bad invite
bruh
did you add the redirect url in the dashboard?
I used to exclusively use scratch and read the code
LOL
@charred geyser u need to add the url on the dashboard
@lament meteor i have done 😦
@charred geyser no you havent
i keep writing discordapp.com in google lol
u sure u got the http(s) there?
Not according to discord
you got a redirect?
yes
i remember it needing a token
holdup
you cant just foward a uri without a param on it
i forgot what it was, sec
yes
that simple
i have done that
not quite
???
redirects need an extra thing
client secret and client id
hmmm
can u send the url here?
sure
response_type
ah it's a redirect
it needs a response
redirect_uri
meaning the query is wrong or smthn
LOL

and nothing
bruh
just do it
@charred geyser Clicking on "Login" doesnt do anything
yes
i give up
hmm
my god
ok discord was broek
response_type
@opal plank this?
u have 2 / at tha callback url
works fine
yes
and if u see... the .com%2Fcallback
oh wait
compared to &redirect_uri=https%3A%2F%2Funnamed-dashboard.herokuapp.com%3A22368%2Fcallback
oh
dont have the port
no?
bruh
u could just do /callback iirc
but it isnt smart if ur forwarding url
like u use ur own domain
it probs will redirect to the heroku
u dont hv the port in the callback uri so
¯_(ツ)_/¯
YES
i love you
bruh i thought you needed the port lol
my dashboard actually works now!
but
not exactly beautiful
it works
😄
no lol
how do I go about getting my server listed for specific games?
i suggest using ejs for what u doin
was told to come here
i am using ejs
ejs for a dashboard?
🤷
you’d preferably not want to use ejs for a dashboard
why
if(args === '--koyu') not working
i love the way you put emoji after everything 😄
@misty sigil this is what im talking about people not knowing how to read objects and json
If there is in the sentence, the command should run.
oh lmfao

god almighty
@earnest phoenix you know what an array is?
args is an array probably
because frameworks do exactly what ejs does but better, makes frontend web dev easier
@opal plank bro i know
then what is your 'args'?
can you show more code

css
samE!!!
- ejs is very very light weight
just search templates online
pretend you’ve never used something
yeah tbf i might do that
hmm templates
probs just use bootstrap or smthn
hmm ok
I used includes okay.
it is copy paste time
xD kidding
jsut the template
@earnest phoenix https://ptb.discordapp.com/channels/264445053596991498/272764566411149314/751874731879301121 thats an equal operator, not a method here
can you show more code or nah
client.on("message", message => {
if(message.content.startsWith("--something")) {
//code
}
}
@sand condor ^^^ you are wellcome
@sand condor i still love that pfp of urs
:))
oh no

@earnest phoenix i was talking to aproxthethat, sorry for the confusion
@lament meteor yeah, but making a dashboard isnt the smallest thing
@opal plank thanks
lol
i use ejs for one of my sites, just a simple website which practically does nothing which is available to the public
what do u need react or vue for on a dbot dashboard?
for hobbyists a dashboard using ejs is good
^
i would say ur doing smthn stupid fuck if ur usin ejs for plain html
wait startsWith is function right ?
write everything with express and raw html 
dont add useless packages when u dont need em
yes string.startsWith is a function
does MEE6 has a team ?
fuck express, just use http.createServer
yea
i dont care if its 1 static web page...im using angular 2
probably
@quartz kindle fastify
i like express 
mee6 = not as good as my bot 😄
angular is shite
fastify is meh
express has handy RL's, i like it
use vue
@quartz kindle wait u don't use EXPRESS ?
idgaf if its just a site saying fuck you im using react for it
just use wix
even in ur main website

because uh
from what i heard it is faster than http.createServer
slow down and RL is amazing packs @quartz kindle
no i dont use express
web development™️
....mattt
angular is best js framework ok
what
What the fuck
what
REACT this the best
WEBLANG WAR, LETS GOOOO
but why slowdown?
angular is being required by my county, I know this from leaked county info 
so people get disencourage to attemp to ddos you
vue is the best, react is a lil slow and angular has restrictions
i love ejs
it increases the response time after every connection
*fights @earnest phoenix
@lament meteor
fastify is not as fast as it claims to be
hmm
im a lil bias...ive been using angular 2 since beta
there are other faster things out there
which is why, for me, angular is wayyy down below in the hierarchy for web dev frameworks
so its very fast to build for me
thats true
is angular good performance wise?
someone who used smthn from the start is bias in terms of speed when they hvnt seen other stuff
every decent api needs a way to be ratelimited and avoid attacks
welp imma sleep
dm me or ping me if u need help
most front-end frameworks are pretty slow
bs
due to the virtual dom they use
i think so...ive worked on 2 large scale projects and no real issues being limited or bad performance
@quartz kindle https://motherfuckingwebsite.com/
there
fast
responsive
and good

yes
took a bit to load
10/10
oh nice
rxjs and ts os really why i like angulat
slap a css background and there we go, 10/10 website. add 3 or 4 gifs running in each corner to give a 2001 vibes, and you got yourself a website
very very responsive
lmao that site is amazing
not a clue
if you want fast front-end, check out svelte
if you want fast back-end, check out nano-express pro
i aint got nothing pro
imagine caring about speed and not weather you can even get your website to start 😁😁
it will br fjrst me

who cares about being responsive? i much rather a 30 second delay when i click a button than look at a 2000 looking website 
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
it doesnt make the content go to the center of the page
(horizontally)
si.getStocksInfo(stocks).then(function(v) {
console.log(v.symbol)
})``` how do i catch a error outside of the function
ok
how can i encode opus to mp3 ;-;
Hello everyone 
I have a problem with my discord.js bot,
My bot is on a single server and display some websites status by editing a message.
The problem is that it is running for now 3 days and use 112mb ram. How can I reduce the ram usage ?
Someone said me to change my js const client = new Discord.Client() to js const client = new Discord.Client({ disableEveryone: true, disabledEvents:[ 'GUILD_MEMBER_UPDATE', 'GUILD_MEMBERS_CHUNK', 'GUILD_INTEGRATIONS_UPDATE', 'CHANNEL_PINS_UPDATE', 'USER_UPDATE', 'USER_SETTINGS_UPDATE', 'PRESENCE_UPDATE', 'TYPING_START', 'WEBHOOKS_UPDATE', ], messageCacheMaxSize: 10, }); but it doesn't changed anything. What should I do ?
use discord.js-light
thats the one that sticks out to me
(you can get djs-light support here: https://discord.gg/BpeedKh)
do I need to change my code to use djs light ?
yes
so I can keep the same code ?
okay ! Thanks a lot
oh I see
https://www.npmjs.com/package/discord.js-light theres a bit of doc here
thanks
guys can someone help me?
I want to know how many discord servers my bot is on. (Discord.py)
len(client.guilds)
shit i was gonna say that
help
what
Where are you using that text?
you cant do that in a title
Is it the title or author field?
the money is more bold than the line slightly
lets see where the msg is used
In any case, use it in field value or description
len(client.guilds)
@slender thistle it gives me error i want to cry
where is not erwin
@forest narwhal saying it "just errored" doesn't provide useful info
whats the error message
Sometimes I wonder if me trying to actually help is the issue
lmao
because almost every time I go away to do something, I come back to the person fixing it manually
is there a way to collect both message and reactions and return the same thing?
I want to send "messages A" and add reactions "👍".
If someone reacts to 👍 or replies with "ok" in chat, it'll return x.
now how i can add len(client.guilds) in the rich presence?
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name='*help | Beta on'len(bot.guilds)))
I ve tried this but not work
aaaaah ok ty
Top one suggested if your Python version is 3.6+
is there a way to collect both message and reactions and return the same thing?
I want to send "messages A" and add reactions "👍".
If someone reacts to 👍 or replies with "ok" in chat, it'll return x.
why the heroku and freenom domain does work : /
any help me
i pointed a right dns but still not wroking
LOL
do you guys know how to do a empty line
lel
a unicode char
between shut up bro and dont forget
Test
Ok It works
RIp
Question: I have my bot all ready to go (friend of mine wrote it), but I'm stuck at the cmd part of it.
Ok.
what error
@misty sigil i love your pfp 😁
i love my pfp too
So
i miss old top gear
make sure its not in the wrong file, @hexed spear
omg light mode
@earnest phoenix i love light mode
this is #development
Rip, sooooooryyyyyyy
not #shit-on-light-mode
LOL
Lol
lol
can anyone suggest the best way of hosting a bot and a website for the bot on the same service
vps
A VPS and a domain rented separately
depends
shows a few
German server provider | #VPS from €3.99 / mo | EU and US Locations available | 15+ years of experience | 70k+ happy customers | #hosting #cloud #infrastructure
etc etc
thanks ill havw a look at those
if i have a dict thats { 1 : "a", 2 : "b"}, how could i phrase a for loop that would put each str into a list?
Could use a list comp here
my_dict = {
1: "a",
2: "b"}
my_list = [my_dict[k] for k in my_dict]```
ooh nice ty!
how the hell do i make my bot functional
You mean get him online and what library?
lol
-faq 13
Lol
const {readFile} = require('fs-nextra');
let plate = await readFile('./assets/images/plate_beautiful.png');```
(node:10936) UnhandledPromiseRejectionWarning: TypeError: readFile is not a function```
I am using python
did anyone know how to transform this seconds to seconds, minutes and hours?? This is 24 hours, but is showed as seconds
division question mark
@wicked pivot from what I see, fs-nextra doesn't have a readFile function.
use fs ?
what if you just const readFile = require
You're using fs-nextra?
or const x = require(package) x.readFile
oh
hm okay
but it doesn't help me that I use fs or fs-nextra it puts me an error for fs it puts me:
(node:11328) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined```
poggers
pog
BrO
My turn
@wicked pivot it means you did not supply the function you called with a callback. Check the documentation for what function you're trying to call to see what the parameters it takes.
But the problem is that I have nothing to change the code I just switch from discord v11 to v12 I do not see why this is a problem
okay then where is the error coming from (what line)
anyone knows aws.amazon.com. There is an offer where you can get a vps for 12 months for free
has anyone experience with it?
I solved the problem otherwise, now it is at the send level that there is a problem how does it work in v12?
return await message.channel.send({ files: [{ attachment: result, name: 'beautiful.png' }] });```
has anyone experience with it?
@midnight blaze I mean it’s Amazon
I was trying to figure how if I am able to simply delete the account after a while or if I have to continue paying for getting 12 months for free, but the faq didnt help
you need to link a card other wise it’s like 100 hours or something
why not just get a vps
ok fuck i forgot that
Shit
I can't have the UwU 
The basic understanding of JavaScript based Discord libraries
So, you want to make a discord bot. Great, glad you're here! Assuming you're looking for help, let's look at the very basics. First off, you'll need a way to run the code for your bot on your host (place where the bot is running, a list of good hosts can be found here [https://discordapp.com/channels/264445053596991498/272764566411149314/576818380498010112] but don't worry about it just yet, you're testing and making your first node coding project, not discord). A good way to run this code is using node.js which can be installed here [https://nodejs.org]. Now that it's installed, you're going to need a text editor to write the code. A few good ones can be found here [
visual studio code (VSC):
https://code.visualstudio.com
sublime text: https://sublimetext.com
vim: https://www.vim.org
Atom: https://atom.io
]. Now make a new folder and name it something similar to "discord bot". Open the folder in your text editor, and if it has a built in console then open that (if not, open the command like and type cd <the location of the folder you opened in the text editor>). Now type npm init -y, this will create a package.json for you which will store the npm packages you install. Make a file named index.js and you're almost ready to start. Go to the Discord developer portal [https://discord.com/developers] and create a new application. Go to the bot tab and click on the create bot button, this will allow you to connect to discord through your code from your text editor. Copy the token (NOT the secret or the ID) for later use. Create a file named config.json and then in the file write:
{
"token":"the token you copied here"
}```
Now you're all set to install a discord library off of <https://npmjs.org> and use it! The popular ones, discord.js and Eris are well documented here [
discord.js: <https://discord.js.org>
Eris: <https://npmjs.org/package/eris>
]
actually that works
Yay
Who
👀
did you type all that out on mobile
yes

😄
i wanna edit that into my message now
change a few recommend ones to a few good ones
nO
:)
It's not been pinned yet maybe I should do that actually
Also can I see the formatting on pc lmao
mk looks like i'll need to make another message
No it does not
ok ill just dm u a fixed version
Tank
what does this do?
if you have the user authenticate you set the redirect uri to be sent back to after
So if someone invites my bot to there server it takes them to any link i put? For example my bots website
If you wanted to yes, but I think there's another field for that. The one in the screenshot is for authenticating like if you were allowing the user to log in
Where is the field for that?
actually that field will probably work
just add a uri, select it under the generator, pick the scope(s) and you got your redirect uri
Hey. In the making of a bot, but whenever i try to put permissions on the kick or ban command, it doesnt work. Anyone got any ideas? 😀
can you show us your code pls (aka what part breaks)
My bot has been having very high pings for a week. Initially I thought it was the database, but changing host of the MongoDB database hasn't changed anything. I then already asked in this chat and they told me that the problem was the host, or Heroku Free. I then switched hosts to a Linux VPS, but the pings still remained high. So I ask you, is there anyone who really wants to help me?
is this not set up correctly to look for either a role OR if the message author is also the guild owner?
} else if (message.member.roles.cache.find(r => r.id === moderation) || message.author.id === owner) {
@balmy knoll check ram usage
I'm sure that it isn't a RAM problem
node js?
Yes
Discord.js?
have you tried checking out graphs which show the cpu usage? or even the memory or event loop latency?
@pure lion Yes discord.js
whats your client.ws.ping?
client.ws.ping is good, average 150ms
anyone have any idea on my problem?
Ok
let boolean = {
values: {
true:true,
false:false
},
true: function() {
return true;
},
false: function() {
return false;
},
random: function() {
return !!Math.round(Math.random())
},
boolean: function(arg) {
if (isNaN(arg)) throw "Provide a number to boolean"
if (arg < 0.5) return false;
if (arg >= 0.5) return true;
}
}``` thoughts?
Is nice 🥪
Saw that
cursed
ok this is about as good as it gets
let boolean = {values:{true:true,false:false},true:function(){return true;},false:function(){return false;},random:function(){return!!Math.round(Math.random())},boolean:function(arg){if(isNaN(arg))throw "Provide a number to boolean";if(arg < 0.5)return false;if(arg>=0.5)return true;}}
minified 
no its betterified
ts
.vue
ejs is me
Press !
1
In an empty file on vsc
Bootstrap Themes is a collection of the best templates and themes curated by Bootstrap’s creators. Our collection of templates include themes to build an admin, dashboard, landing page, e-commerce site, application, and more.
ez templates
ofc
thank you god







