#development
1 messages ยท Page 1076 of 1
!important the fuck out of it
What
its a bypass basically
'fuck everything, just put this here' kind of element
Oh cooool
makes debugging one hell of a paradise
So basically learn CSS or die
'not working the way you want? !important it!'
Coders hate him!
See this one simple trick to completely master css!
๐
How do I change the long description color
css
get the class/id name, then set the color to what you want with css
I can see the page source but rn idk which thing to choose
the website has a preview button, you will probably just have to play with it
which is really all css is
trying stuff till it looks right
Coding is just trying it and seeing what happens
i changed my bot prefix to wing!, can someone remove the common prefix role?
pm a moderator
I changed the azure vm's disk increase to 2000GB but nothing is changed,can anyone help me?
@quartz kindle ??
a lot of VM's dynamically allocate disk space
What can i do?
??
I have to download 127GB something so i need to do it..
@solemn latch bro?
pls no pings
are you posting that?
idk how to help u ยฏ\_(ใ)_/ยฏ
Are those just local changes or did you actually change the value? xD
Yep
Guild.findOne({
guildId: message.guild.id
}, async (err, guild) => {
if (!guild) {
const guild = new Guild({
guildId: message.guild.id,
autorole: "Not Specified",
enable: false,
prefix: "/",
logs: true,
whitelistchannel: []
})
action();
}
if (!guild.whitelistchannel) {
guild.whitelistchannel = [];
}
if (guild.whitelistchannel.includes(message.channel.id || message.mentions.channels.first().id)) return message.channel.send("The channel already has been whitelisted !");
async function action() {
let embed = new MessageEmbed()
.setColor("#a1ee33")
.setDescription("Whitelisted the channel, it won't get lock any more!")
message.channel.send(embed);
if (!args[0]) {
guild.whitelistchannel.push(message.channel.id);
return await guild.save();
}
else {
if (message.mentions.channels.first()) {
guild.whitelistchannel.push(message.mentions.channels.first().id);
return await guild.save();
}
else {
return message.channel.send("Please mentions a channel. For example `/whitelistchannel #general`")
}
}
}
action()
})
it is not saving
Can anyone help me? I have a role with 5 members. When I'm getting that size on my main bot, it returns 5. When I am getting it on my test bot with some intents disabled, it returns 2. With all intents again it returns 5. How?
@nocturne grove does anybody know this? Please mention me if you react
thats a little too much code to be sharing via discord.
nah
it isnt 2024 word
okay, well i cant help because i cant read it
ok . .
imma fix that
async function action() {
let embed = new MessageEmbed()
.setColor("#a1ee33")
.setDescription("Whitelisted the channel, it won't get lock any more!")
message.channel.send(embed);
if (!args[0]) {
guild.whitelistchannel.push(message.channel.id);
return await guild.save();
}
else {
if (message.mentions.channels.first()) {
guild.whitelistchannel.push(message.mentions.channels.first().id);
return await guild.save();
}
else {
return message.channel.send("Please mentions a channel. For example `/whitelistchannel #general`")
}
}
}
this is not saving
ANY COOL CODING IDEAS?
@earnest phoenix No
make something you enjoy
no is not an answer if you dont have a cool idea then just ignore
OKAY!
im not sure why it wouldnt save
@earnest phoenix go in #general or somewhere for that, here is incase you need help
not to gather ideas

@nocturne grove are these members cached?
if you disabled some intents, they may not be cached anymore.
Tf did you do
@solemn latch then I guess that's it. As it makes a difference when I disable them
Do you know which one? I do not hope the guild presences one
Someone's funny here ๐
Anyone?
honestly, no idea what intent would do that @nocturne grove
the docs dont really say either
https://discord.com/developers/docs/topics/gateway#gateway-intents
That's weird tho. And afaik I have all intents with members enabled
I used guilds guildmembers messages and dm's
Those 4 intents
Hey guys
Soon, Ill be hosting my bot on a hosting service.
I heard about a hosting service called FreshStart.
Proudly Independent Hosting Services at Affordable prices. That's FreshStart.
Is it good?
https://oliy.is-just-a.dev/0el34_5139.png this is a scam
Is this freshstart?
that is yes
You'll probably want a good vps provider, that company looks like they do a lot of game hosting servers which is probably one of the biggest scams since the nigerian prince
there are some pins here
What hosting service do you recommend?
Does anyone know about the prefix replacement command?
r/python can be really interesting sometimes
what?
i didnt reply to you
but what do you mean by the prefix replacement commmand
if you mean hhow to change the prefix
i didnt reply to you
@earnest phoenix okay
then just do PREFIX = "yourprefix"
no
you want a ccommand to replace it
for a specific server?
like in whichever server it is asked for
special prefix for servers
oh
uhhh its a real pain in the ass but let me chec
js or py?
Anyone?
ye?
I changed the azure vm's disk increase to 2000GB but nothing is changed,can anyone help me?
?
So im using moment for date calculation but is there a way i can have it return like 365 days ago instead of one year ago
i know this is stupid but how do i make the bot ban kick and mute in discord.js
hmm i heard the docs is a good place to start
okay
How do I run any file in nodejs, not just the entrypoint?
node <filename>.js ?
is there any way if a message has been sent -> do this..
await the message
} {
if (message.content.startsWith('p!help'));
const embed = new MessageEmbed()
.setTitle('Prueba')
.setDescription('Prueba!')
message.channel.send(embed);
}
});
The command does not respond
@velvet void I already spoonfed you,
https://discordapp.com/channels/264445053596991498/265156286406983680/735245319775977562
Hello any Python dev reading this, got a question for you. While searching through the Internet, I found two modules, which seem to be what I could use. (parser and dateparser)
I want to only support parsing human-style dates/times like 3 days or 2h (Meaning I don't want to support input like in 3 hours or 5 weeks ago).
Which one would be "simpler" in terms of usage and taking up less RAM?
Basically equivalent of the ms package in py
Doesn't respond ...
@velvet void Mate I already spoonfed you the god damn fix.. can you stop
did you put the code in your message event?
Okey
Essentially, alhassan. Not exactly familiar with the ms package, though
@earnest phoenix does ms work backwards?
not sure
Dam okay
not createdAt.toLocaleString()
LocaleTimeString
Dude
message.author.createdAt.LocaleTimeString
Add to
Well, both modules seem very close to what I need, but with extra stuff that I don't need ๐ค
I'll just probably get to that tomorrow and see if I can find anything less generic
?
oh
time seems to support conversions as well, hmm
Whats the py package system?
pypi
Oooooooo
I could probably bother with regexes on this one?
or a complete clusterfuck of .replaces
fiNdOnEaNdUpDaTe
i need an idea for a new command, what should it be?
How do I get bots uptime
It's returning as undefined and my code for it is ${message.client.ws.uptime}
uptime is just on client not ws
convert it from milliseconds to whatever you want
Ok
Somebody pass me the code so I can put commands in a folder?
Okay
Please read the rules thoroughly @velvet void
Hiii,
if (message.content.startsWith(prefix + 'avatar')) {
const user = message.mentions.users.first() || message.author;
const avatarEmbed = new Discord.MessageEmbed()
.setColor("RED")
.setAuthor(user.username + '\'s Avatar')
.setImage(user.avatarURL);
message.channel.send(avatarEmbed);
}
```any ideas why this doesnt work? ๐ Its supposed to just be an avatar cmd
.displayAvatarURL({dynamic: true})
ty
`if (msg.startsWith (prefix + "ban")) {
if (!message.member.hasPermission("ADMINISTRATOR")) return;
if (mention == null) return;
if (message.guild.member(mention).hasPermission("BAN_MEMBERS")) return;
let reason = message.content.slice (prefix.length + mention.toString().length + 5);
message.channel.send (mention.username + " Has been banned");
mention.sendMessage ("You have been banned because: \n" + reason).then (d_msg => {
message.guild.member(mention).ban(reason);
})
}
if (msg.startsWith (prefix + "kick")) {
if (!message.member.hasPermission("ADMINISTRATOR")) return;
if (mention == null) return;
if (message.guild.member(mention).hasPermission("KICK_MEMBERS")) return;
let reason = message.content.slice (prefix.length + mention.toString().length + 5);
message.channel.send (mention.username + " Has been kicked");
mention.sendMessage ("You have been kicked because: \n" + reason).then (d_msg => {
message.guild.member(mention).kick(reason);
})
}`
im trying to ban and kick but it doesnt work
node.js
vcause here, did you know that 1 of 5 dev dont know node js when they see it
i know
I've got a Message Embed and it does an @ everyone in the body. For some reason it goes blue and looks like it would work, but doesn't ACTUALLY @ everyone - any ideas? Is this guild permissions on the channel or an issue with the command?
Any idea that when the bot is ready how to get guild id
Anyone know how to use pm2 to run a bot in cluster mode on multiple computers?
if i have a module.exports.model = "ACERTAINVALUE"
is there a way I use "ACERTAINVALUE" later in the same file as the exports
You should be able to access module.exports.model as usual. If ACERTAINVALUE is like some variable, you may be able to use it directly rather than asking for module.exports.model.
dude
you can literally do this
module.exports.someVariable = 45;
//Within the same file
console.log(module.exports.someVariable) // 45
or
let variable = 123
module.exports.var = variable
console.log(variable)```
its cleaner
just out of curiosity, what hosts do you guys use?
I use, well, ima let my bot say it:
wing!host
dang
lol bots cant send messages here
rip
just tell us
GitHub
thats not a database
but then how do you host on heroku
..
i use github to bind it, idk, ask this guy https://www.youtube.com/watch?v=8qIsRzV0Hpg&t=190s
โบ HOST YOUR OWN DISCORD.JS BOT 24/7! - 2020! (UPDATED)
๐คฏ Join into our DashCruft Nation by Hitting that Subscribe button and Leaving a Like!
โบ Join into our Official Discord Server if you need Help!!
https://invite.gg/dashcruft
LINKS IN THE VIDEO:
1๏ธโฃ https://bit.ly/36yFi2...
No i mean like i thought file based databases dont work on heroku
im confused
nvm
How they verify this man into bot developer
welcome to dbl
I'm trying to make a meme bot (that uses reddit), but some of the subreddits have an NSFW warning page, which stops random-puppy from getting the images, how do i bypass that?
are you using reddits api
na how do I use that
How do I get message object to get author id, server id, channel id on @bot.command()?
I'm using discord.py
ctx.message
Thumbnail?
Ya
Which library?
discord.js
cuz if you dont know objects in an object oriented programming language you clearly been copy pasting this whole time
@opal plank so ever beginner is a copy-paster?
lmao
embed.setThumbnail
im pretty sure you don't do embed.setThumbnail
isn't it let whateverEmbed = new Discord.MessageEmbed().setThumbnail(ur thumbnail);
embed would represent the embed instance.
-bots
-bots
-botcommands @clever vector @earnest phoenix
@clever vector @earnest phoenix
Hey! Bots aren't given permissions to send responses in this channel. Please use #commands or #265156322012561408 to run commands. In addition, bots with commonly used prefixes cannot read or send messages in any channel. This is done to prevent spam and bot abuse.
Read Luca's message
Please use #commands or #265156322012561408 to run commands.
right click and copy the url 
https://media.tenor.com/images/b14284e6f4f9060022c11e10e12a2c56/tenor.gif
like said, right click -> copy link
Hey I'm using Discord.py rewrite and was trying to see if it's possible to thread a command so while the command (the one in my case takes 49 secs(to be clear here it takes 49 sec for the math to finish before it replies) to reply back to) occurs a user would be able to type in the other commands that take less then a sec to reply to? been trying to find ways to cut the one commands time down but want this temp solution while I look into it.
The command itself takes 49 secs to go through the math it needs (mostly because Raspberry Pi 3B CPU)
I know it has while loops and that might be a good part of it
how would i get a stocks price in discord.js?
using a api?
anything would work
How do I download an image from a user? Is this work?
hmm?
my complaints?
where?
oh, that
- that isn't off-topic, if anything you talking about him being a copy-paster is off topic
- it isn't a complaint, im pointing out something
@opal plank
you're complaining about my thinking, completely unrelated to the topic here
if you disliked something i said, take it to #general
oh yes, and your thinking is very on topic
cuz if you dont know objects in an object oriented programming language you clearly been copy pasting this whole time
dude, im not engaging in an argument here, stop baiting and head over to offtopic if you wish to keep going
Why is that example loading an image from message content
Maybe using message.attachments can download an image from a user?
Sure
so im fixing my av command so that if no one is mentioned it displays the author's avatar instead, i tried to use if isinstance but didnt work
any ideas? also using dpy
code
?
send ur code
kk
@commands.command(aliases=["avatar"])
async def av(self, ctx, member: discord.Member):
embed = discord.Embed(timestamp=ctx.message.created_at, color=0x2174b2)
if isinstance(commands.MissingRequiredArgument):
embed.set_image(url=f'{ctx.author.avatar_url}')
else:
embed.set_image(url=f'{member.avatar_url}')
await ctx.send(embed=embed)```
wait ill try using try and except instead
@commands.command(aliases=["avatar"])
async def av(self, ctx, member: discord.Member):
embed = discord.Embed(timestamp=ctx.message.created_at, color=0x2174b2)
try:
embed.set_image(url=member.avatar_url)
except isinstance(commands.MissingRequiredArgument):
embed.set_image(url=ctx.author.avatar_url)
await ctx.send(embed=embed)```
didnt work
@wheat hornet u here?
cool
.addFields(
{ name: "Current build:", value: json.data.build}
)
how to make : json.data.build
looks like json.data.build
why would embed.set_image(url=member.avatar_url) error MissingRequiredArgument???
@earnest phoenix use
message.author.avatar_url
(ctx.message actually ^)
.addFields(
{ name: "Current build:", value: json.data.build}
)
how to make : json.data.build
looks like json.data.build
I can't seem to fix my
Error: StatusCodeError: 403 - ""
at C:\Users\Administrator\Desktop\Team Thunder\node_modules\youtube-info\index.js:101:15
at tryCatcher (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\promise.js:725:18)
at _drainQueueStep (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Administrator\Desktop\Team Thunder\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:456:21)
error, no matter how hard I try
please
I've tried regenerating the API key.
@wheat hornet (however ctx.author works too)
which api
@swift void which api are u using
@wheat hornet youtube-info + simple youtube api
@earnest phoenix isinstance takes two arguments
@commands.command(aliases=["avatar"])
async def av(self, ctx, member: discord.Member=None):
embed = discord.Embed(timestamp=ctx.message.created_at, color=0x2174b2)
if not member:
embed.set_image(url=f'{ctx.author.avatar_url}')
else:
embed.set_image(url=f'{member.avatar_url}')
await ctx.send(embed=embed)```
that's probably what you're trying to do ^ @earnest phoenix
.addFields(
{ name: "Current build:", value: json.data.build}
)
how to make : json.data.build
looks like json.data.build
isinstance is just a built in function that checks if an object is a certain class or a subclass of that class
for example you can do
print(isinstance(5, int))
>> True```
self._overwrites.append(_Overwrites(id=overridden_id, **overridden))
TypeError: __new__() got an unexpected keyword argument 'deny_new'```
@ancient falcon @wheat hornet thanks i used or and set member automatically to None but thanks anyways
:v
shard
magic thing called sharding
lmaox
Anybody know what's up with this python error #development message
from the few moments ive browsed issues through github, jsut update discord py
and it should be fixed
Hi guys, if I add setTimeouts to delay the time between each message to avoid ratelimiting, will my bot be accepted?
shard
@restive pebble I have 40 shards @ancient falcon
idk that hting is happening
if anyone can help
yo <@&304313580025544704> i am using discord.py and that error shuts down my bot
can anyone help
-atmods@pure sun
Why
-atmods
Please do not mention (ping) more than one or two moderators for help, unless there is an emergency.
Here are some examples of emergencies:
- Raids / Multiple members mass spamming.
- Severe disruption of Discord's ToS (NSFW content, etc)
- Anything that requires more than 2 moderators to handle.
Bro.
@pure sun write better code, there's the answer.
that code was working sinc e1 month
Wut
and the bot is in 55 servers
Clearly it wasn't if it's erroring
now it starts and goes down
Taking a shot for the ping brb.
Wrap it in a try except block then
It's 6.40am, sure we will all get up to help fix your code
can ya'll stop being sarcastic, that's clearly not helping
Why not just go to discord.pys discord server instead of pining 30 people. It's not Top.gg related.
Maybe if you didnt ping 24 of us at 1 am we wouldnt be sarcastic
You pinged over 20 people for something you could have googled.
not my fault ya'll active at 1am
I wasnt until u pinged me
Not our fault we're not here to help fix your bot.
You pinged over 20 people for something you could have googled.
@glad charm google dont have that solution
You're passing too many arguments
Go to github that has an issue there already
use setTimeout() @earnest phoenix
does it take a number or a string
it accepts a callback function to execute after a certian amount of milliseconds
I don't think you need settimeout for a delete
they want to delete it after a delay
@icy glen send them in one message instead of individual ones
{timeout: <Number>}
๐ฎ the more you read the docsโข๏ธ
read the docsโข๏ธ
imagine using light theme docs tho parm
i never use the docs so
What you trying to do....
my bot makes a problem
which is not usual
it runs for few seconds
then goes down
and the error is caused by bot.run
Update the library
@tawdry locust you mean new version of discord.py?
Yeah, similar thing happened to me and look at github issues and they said to just update
Been working since then
mine is updated
.addField("Dynamic Keys:", `${jo}` /n `${joo1}` , true)
n is not defiend
can any1 help?

Gettin this error ReferenceError: API is not defined
.addField("Dynamic Keys:", `${jo}` /n `${joo1}` , true)
n is not defiend
are you trying to stick a new line in between ${jo} and ${joo1}?
yes
.addField("Dynamic Keys:", `${jo}\n${joo1}` , true)
just type `${jo}\n${joo1}`
ok thx
@swift void read the error
@sonic lodge API.getVideo('link')
.then(video => {
if (video) console.log(The video's title is ${video.title});
else console.log('video not found :(');
})
.catch(console.error);
rip api
so define API
and? define it
they assume you already required the module somewhere
alright, so I'll have to require the module at the top of the script
@outer niche I had the same error everytime I reboot my script then running again it display like that, I don't know why
__new__() got an unexpected keyword argument 'deny_new'
Can someone explain?
.addField("Dynamic Keys:", `**${jo}** \n `\`\`${joo}\`\`` \n **${jo1}** \n `\`\`${joo1}\`\`` \n **${jo2}** \n `\`\`${joo2}\`\`` , true)
what's wrong ?
@outer niche Hum, oke
`**${jo}** \n `\`\`${joo}
^ ^
open tick close tick, end of template literal
^
unexpected backslash
so how to fix it ?
i'm not sure what you want to display
1min
i'd assume you need to escape this initial closing tick
`**${jo}** \n \`\`\`${joo}
^ ^^
open tick escaped closing tick
@sonic lodge can u do it to me like the pic ?
that's my solution ^
how to do it like this if there's error ?
?
see the pic
escape the backticks
what?

`**${jo}** \n `\`\`${joo}\`\`` \n
^ ^ ^
open tick unescaped backticks
just like how you can't do this:
'It's supposed to end early'
you have to escape the quote in the middle:
'It\'s supposed to end early'
are you sure it is this line?
where is coll defined?
is messageCollection a valid collection?
is channelMessages a array?
idk what the issue could be. i probably would look throu 10 years worth of Stackoverflow paged for a solution
Can discord.py use exec() function at @bot.command()?
I already try it, but always getting error from discord exception or invalid syntax...
Sup, when I make a cname record for my website what do I put in the host field? (Using namecheap dashboard)
The url
But do you have a domain to your web server?
Yes
Entire http url
But if you have an ip address to your web server (that they want you to use) you should use an A record
Do I use the webserver domain or the namecheap domain?
Also it's specifically asking for cname
In you CNAME record for your namecheap domain you put the webserver domain, this will make sure your domain redirects you to your webserver
Does it require you to use https?
you're not supposed to dice lol
https://www.namecheap.com/support/knowledgebase/article.aspx/9646/2237/how-to-create-a-cname-record-for-your-domain, seems like they dont require you to specify a protocol
Time to wait """"24 hours"""""
If you're lucky it will only take 5 minutes, IF you're lucky
So say my website is alebot.epizy.com, do I put that in host?
alebot.epizy.com is your webserver host?
You mean
Host is your domain, not your webserver host
If you want to connect alebot.epizy.com to the root of your domain enter your domain name
free host is bad
especially infinityfree
alebot.epizy.com links to the site
they say it's unlimited storage, but that's obviously not true
they can suspend your domain or account whenever they want without reason
Then add a cname at the root of your domain wich value is alebot.epizy.com
Freenom?
Bad
Freenom is ment to mask a ip it isnt ment for actual domain usages
All free domains are ment to mask a users IP
you can though...
you're picking the wrong option
use the dns/change the nameservers, don't forward or mask
Namecheap in this case is a legit domain service that is used to mask your ip OR to set a domain for your site
freenom can do that too
tbh domains is a thing that you choose,
but heavily discouraged
Just use cloudflare ffs
well freenom is mainly ment for masking ip's
they can take away your domain when it hits high traffic
- freenom dns's and etc are easy to hack into
Doubt
@honest perch you can doubt that but trust me, my friend used to be a hacker he hacked into so much freenom domains and just went from their
and trust me the people he hacked were not happy campers
Seen worse
wouldn't deny it
I'm guessing its not a direct problem with freenom but the users passwords are weak
That and freenom's api is easy to get into
self._overwrites.append(_Overwrites(id=overridden_id, **overridden))
TypeError: __new__() got an unexpected keyword argument 'deny_new'
I got that while starting my bot
I looked on google but dind't find anything usefull
oh I just had to update libray
How do I send a message to a specific channel using discord.py?
I tried
ch = bot.get_channel("CHANNEL ID")
await ch.send("Sent!")
```it's returned None
self._overwrites.append(_Overwrites(id=overridden_id, **overridden)) TypeError: __new__() got an unexpected keyword argument 'deny_new'
@fast quail Update your discord.py to latest
oh I just had to update libray
@fast quail
Can you help?
No idea :D
Np
@sick fable dm me
pay me
@solid falcon yeah that's how you do it discord.Client.get_channel(id: int) returns an abc.GuildChannel which has the send coroutine
no x)
@solid falcon yeah that's how you do it discord.Client.get_channel(id: int) returns an abc.GuildChannel which has the send coroutine
@Kyando#0001 so, get_channel(int) or str?
int
Ok thanks
you can always check to documentation
you probably wanna check if its None to catch any error
quick discordia question, how do i use the event
memberJoin
which part of "this"
Does anyone know how to do a custom status without quick.db
this command send or heads or tails, its random, and i want it to say the word in Embed
@pure lion
Does anyone know how to do a custom status without quick.dp
@marble scaffold ```bot.on('ready', () =>{
console.log('this bot is online')
setInterval(() => {
bot.user.setActivity(here the status, {type: 'WATCHING'});
}, 60000);
})```
Ty
@stiff stream do you know how to make an embed?
yes
k
how to use the event "memberJoin"? (discordia btw)
Err...
well define it then
That doesn't help lmao
what is Client() defined as?
Oh yeah ty
That doesn't help lmao
@marble scaffold
what do you expect me to say? this is the very basics of js lol
"i want to cook a meal but i don't have food to cook with"
"then go buy some food"
๐๏ธ๐๐๏ธ
did you copy paste the code directly from up there
Sup so the cname thing isn't working and it's been a while
Anybody experiencing the dispatchers being null on discord.js
Can't say I am
Even if it's not null, the StreamDispatcher doesn't play anything, wasting buffers for no reason
This is strange

For music?
For anything to play
Any errors at all or just null :/
It's either null or StreamDispatcher doesn't play anything, as not accepting buffers for an unknown reason
It just happened today, i didn't change anything
Just woke up and tried to play something
WAIT LEMME TEST MINE
oof no caps*
mine is working fine :///////////////////////////
but can anyone help me with setting up cname shit
Well if discord went full drunk mode on me again and dispatchers stay null, i gotta remove my entire music category... 
Discord is gay
:cri:
Active else getting deny new error when starting their bot
No
Ah ok
how do you code an alice?
what
@pure lion What's wrong?
Have you set the A (and optional AAAA) records?
nope, it just asked for cname
Who or what asked for cname?
infinityfree ssl stuff
You got a VPS? If so, why not host the website there?
It many time gives blank
How you going to host your bot?
I'm hosting it on my pc
@delicate shore Check the link, Discord may have trouble with certain image extensions
@delicate shore Check the link, Discord may have trouble with certain image extensions
@hasty sparrow wait lemme send code
if(command === "pewdiepie"){
if (pew.has(msg.author.id))
return msg.reply(
`**You are on cooldown you can use this cmd once in 3 seconds. This is to prevent rate limting**`
);
const subReddits23 = ["PewdiepieSubmissions"]
const random23 = subReddits23[Math.floor(Math.random() * subReddits23.length)];
const img = await randomPuppy(random23);
const embed = new Discord.MessageEmbed()
.setImage(img)
.setColor("RANDOM")
.setTitle(`From /r/${random23}`)
.setURL(`http://reddit.com/${random23}`)
msg.channel.send(embed);
msg.channel.send("**If you don't get a meme try command again in 3 seconds because our API has been malfunctioning now-a-days**")
pew.add(msg.author.id);
setTimeout(() => {
pew.delete(msg.author.id);
}, 3000);
;
console.log();
}
i use random puppu
Check the image itself, not your code
i do
random-puppy package is no good for this
random-puppy package is no good for this
@earnest phoenix any suggestion
Use node-fetch
Check the image itself, not your code
@hasty sparrow they are mostly GIF which are causing problems
Use node-fetch
@earnest phoenix but then i need to fetch an api right ?
for meme
reddit itself has an api
and sometimes it gives nsfw memes
reddit itself has an api
@earnest phoenix wait what
where?!
search reddit api
You can filter the data of the children given by the api to posts that aren't nsfw
ok
Api
https://www.reddit.com/r/<Subreddit>.json?sort=<top or any sort you want>&t=<week or month>
Upload to pastebin
*hastebin
both exists but yea
function loadCuties() {
fetch('https://www.reddit.com/r/aww.json?limit=100&?sort=top&t=all')
.then(res => res.json())
.then(json => json.data.children.map(v => v.data.url))
.then(urls => postRandomCutie(urls));
}
function postRandomCutie(urls) {
const randomURL = urls[Math.floor(Math.random() * urls.length) + 1];
const embed = new Discord.MessageEmbed
.setImage(randomURL)
message.channel.send(embed);
}```
something like this?
it will be
pastebin is the twitch thot version of text uploaders
Try it out and see
ok
Haha
lemme
see
if(command === "pewdiepie"){
function loadpew() {
fetch('https://www.reddit.com/r/PewdiepieSubmissions.json?limit=100&?sort=top&t=all')
.then(res => res.json())
.then(json => json.data.children.map(v => v.data.url))
.then(urls => postrandompew(urls));
}
function postrandompew(urls) {
const randomURL = urls[Math.floor(Math.random() * urls.length) + 1];
const embed = new Discord.MessageEmbed()
.setTitle("e")
.setImage(randomURL)
.setColor("RANDOM")
msg.channel.send(embed);
}
}```
this is not working
no error
no nothing
Of course it won't, it's just static functions lying there, you gotta execute the functions however
that and
debug
literally you've been told over a couple of billion times to debug when something isn't running accordingly
Heyo, what will be
member.roles.map(roles => `${roles.name}`).join(", ")
in djs 12?
Now uses managers,
roles.cache and you don't need to use template literals in that case if it's just gonna be name and not anything else
oh gotcha thanks!
@twilit rapids sorry for the ping. But you might wanna change this :) Its on the chip bot website:
Now its updated๐ did you change it or was i being stupid?
huh aight. Something must have gone wrong on my side. Sorry for disturbing
Don't worry about it
Hello,
I've this code right here which contains 2 functions:
function1(){
// do something
};
function2(){
// do something else but slightly different from 1
};```The problem is that function 2 keeps executing right after function 1 even if I add `return;` or anything and I don't want that to happen.
Is there any way to prevent that? What is missing or wrong in this? (there's a 200 lines code in each function)
you can remove the semicolons after the bracket blocks but that shouldnt be the problem
return would be an illegal statement
returns needs to be executed on a function
function1(){}
return
function2(){}
Make sure its not written like so:
(function() {
})();
cause this would execute straight away
this is not doable
also, functions are called
neither of those functions will run unless you call them
function func1(){}
func1()
The 2nd function runs right after 1st function even if not called
its declaring it
My bot used to work perfectly but now I get this error, discord.py
functions dont call themselves
Show full traceback
I'm trying to get a users highest role, I can get the author's highest role but not a mentioned user because its coming out as role isnt defined, Does anyone know how to get a mentioned users highest role
get member version of the mentioned user
in discord.js
that doesn't work o.o
and I removed the message but that also gave role isnt defined
@royal pawn ```js
function A1() {
console.log(1)
}
function A2() {
console.log(2)
}
A1() // logs 1
// nothing else happens cuz i didnt call A2()
Internal error, see official d.py official server or GitHub issues if anyone else reported this @sullen salmon (chances are someone already did and you need to wait until it's fixed)
Thanks for your replies, guys, I fixed it 

What does internal error mean
exactly what it says
Do you have a link do the d.py server?
exactly what it says
@earnest phoenix fuck off lol
rude
it means exactly what it says ๐๏ธ ๐ ๐๏ธ
Thanks
There a way to find out how many times someone invite your bot from this bot site? Or to see how many times people have clicked on the link?
A custom webserver (preferably hosted under a secure domain) that has an incremented value each time someone visits a certain endpoint
The endpoint will then redirect to the OAuth URL
oof

hard pass thought you guys might have added something
There's no really reliable way to implement that
yh dw
xD
I did it for you
Anyway I'm going to make a ray caster game engine in C so I can learn higher languages byebye love all of you the mode are cute blah blah blah
Stinky
shouldnt it be ++count
hehe
++count increments the value, then executes the line it is in, count++ executes first, then increments
Oh thats cool
e. g.
int x = 3;
System.out.println(++x);
would print 4 while
int x = 3;
System.out.println(x++);
would print 3, but in both cases x is 4 after that line
Man writing code on mobile sucks ass xD
Is that java?
Yes
Just prints to console lol
Yes
The default input stream
Can use that for e. g. reading from the console
In combination with a scanner
Omg windows fs has crashed twice in the past hour
Poggers
Also yay I leaRnt jAVa X))))
Hahaha
Guys, I'm at a point where I need to question my design and get some feedback.
My bot does some automatic voice channels creation, generally you would configure it once and forget about it. When I just made it, you would do it by typing something like !vm register <channelID/name> to track a channel. Now I switched to using an embed with reactions, to reduce the amount of typing you would need to do, screenshot attached. I think it's easy to use and looks nice. But I kept the legacy methods to type in things manually.
Now the question - those legacy methods require a lot of upkeep and additional work, and I'm not sure if anybody would use it. Data says that most people just use embeds, and those who don't - just didn't they can use them. Currently, it's a difference between !vm template "272764566411149314 272764566411149314 272764566411149314" %nickname's% channel - playing %game%, and !vm template %nickname's% channel - playing %game% and clicking some buttons.
Should I spend additional time on text commands or should I just focus on embed design and ease of use? hewp
Paginated embeds for guilds with large channel counts are tedious
Can I have some help with prettiercode, I npm installed it to my project and got it from the extensions page but my code is default visual studio code still. (version, "prettier": "2.0.5",)
looks nice
had to spin up a CDN to turn an image to a link, cuz discord wont allow b64 lol
@still merlin wait what
im unsure what prettiercode is, but i assume you looking for a linter?
im unsure what prettiercode is, but i assume you looking for a linter?
@opal plank No- I already have a linter. Prettier code makes code colourful
I like having each character a random colour
ranibow code
I want rainbow code hh
then get a theme
Ok
im actually concerned if you are looking for rainbow code
.-.
not like that
ive never used a linter lmao
just not default visual studio code
lmao
too cold for my taste
im more of a vibrant type
tbh the normal colour from vsc is quite dcent
as long as my background is dark and the colours arent obnoxiously bright, im down with most stuff
How do i use the "memberJoin" event in order to add a role to the members who join the discord server? (discordia)
i just want to know how to use the memberJoin event really
anybody have a kick ban script thats work, ive tried liek 5 and none work
anybody have a kick ban script thats work, ive tried liek 5 and none work
@slow cave library?
like discord.js?
?? wdym
@slow cave i have them but they are for the discordia library
is .discriminator a users tag (like #9825) or would that have to be <defined mention user as>.tag or <defined mentioned user as>.discriminator
in discord.js
I think thats box shadow
im aware
so just remove the box shadow
no because then it looks bad
change the shadow colour
nvm
good point peter
Whoa that's such a high effort user info thi-
'High effort' lmao
*casually making a game engine*
casually screaming porting my code to Typescript
Shit I forgot to put ;
A friend of mine uses TS for frontend
when we have actionscript
Ts from what ive seen is much better than js
Who the fuck is actionscript
friend helped me port it
ActionScript is an object-oriented programming (OOP) language that is designed specifically for Web site animation. Originally released with Macromedia Flash 4 and enhanced for Flash 5, ActionScript is a sophisticated version of the script language introduced in Flash 3.****
and ts notified me of like 40 errors that js didnt caught
cuz js just lets you do whatever
traveloga?
took me an hour to debug the all the code
so how do i switch to TS? 
Easily
WAHHH WAHH MOMMY
but relaxed
i see the IQ here going down with every joke
interfaces and some syntax definetly gave me a bit of trouble
specially cuz now im using ES2020
i was skimming thru the docs and theres quite a bit of different stuff
TS(tittyscript) is an esolang that consists entirely of (, ., And )
are there any coding language that use human language?
Typescript is racist Js, change my mind
I don't think I want to
lmao
are there any coding language that use human language?
@earnest phoenix lmao sure
Could make an interpreter
Roblang
That will fuck up things
Roblox lang
I just built a functioning React app by describing what I wanted to GPT-3.
I'm still in awe. https://t.co/UUKSYz2NJO
4404
17937
Heck yeah
English++
EnglishScript
English.en
cya in 10m once you figure thats harder than it seems
dude it's easy
englishscript use human mind to compile it
so i need to just make docs

Can I have some help please, I've got 2 issues in my embed. The nickname shows undefined but I'm nicked as Henry
ive used, .addField("Nickname", user.displayname)
displayName
oh thanks
displayName is a member property, no?
second my thumbnail isnt showing up o.o
.setThumbnail(user.displayAvatarURL)
Stop copying then
And go to thd docs
You are watching a video of discord js 11
And i know exactly which one you are watching
caught red handed
what no I'm not I use message.author.displayAvatarURL for my avatar command?
And this was from the docs
lmao exposed
Its not from thw docs i know you are watching a video
If it was from docs it would be like this
It works in discord js 11
dont use v11
I watched a video like a year pr sometime ago
its getting deprecated
There's a lot of changes between v11 and v12
and wont work
He is watching the same video
Ikr i use v12
v11 will stop working on October 7th of 2020
When i get back on my pc ill give you my embed code @still merlin
I'm a she, Don't assume genders, Second I'm not watching a video, Three don't spoonfeed me
hotpokket
lmao
quick question
if you don't want help don't ask
how can i dm a user a message?
@still merlin <= :5Head:
@earnest phoenix i cant agree more
what library @digital ibex
@digital ibex <User>.send() ?
eris
this is all it says,
oh lmao
Oof
She literally just asked for help and then said dont do it 
Because she doesn't want to be spoonfed
dOnT aSsUmE mY gEnDeR
okay chill
Because she doesn't want to be spoonfed
@earnest phoenix well i said ill give you my embed code which would fix her problem



