#development
1 messages · Page 1302 of 1
const http = require('http');
var express = require('express');
var app = express();
const server = http.createServer(app);
app.use(express.static(__dirname + '/'));
app.engine('html', require('ejs').renderFile);
app.set('view engine', 'html');
app.set('views', __dirname);
app.get('/', function(req, res) {
res.render('public/index.html');
});
server.listen(3000);
OMG DUDE
You can use it to render the page where your bot is hosted
u happy ?
why don't u add socket @cosmic forum
dude i already have it
im am asking you, what is your idea ?
about Dashboard
How u can gonna connect the bot
use the same db?
app.use(express.urlencoded());
app.use(express.json());
app.post('/purge', function(request, response) {
const purgechannel = bot.channels.cache.get(`${request.body.purgechannel}`);
const purgenumber = request.body.purgenumber;
const logchannel = bot.channels.cache.get('727578852544610401');
purgechannel.bulkDelete(purgenumber).catch(error => logchannel.send(`Couldn't purge messages because of: ${error}`));
response.render('public/commands.html');
});
im done
why no json ;-;
or run ur code on the bot code
Example for a purge dashboard command
Make a form and set the action to /purge for it
@open rune dude im crying
.setAuthor(`test`, wuser.displayAvatarURL({dynamic:true}))
this is the code
he don't listen to me
bruh
he don't listen to me
@dark kestrel sigh, what?
.setAuthor(`test`, wuser.displayAvatarURL({dynamic:true}))
@cosmic forum i just ask the idea
What is wuser??
not code
btw u can run express and ur bot together ?
So do wuser.user
in a same node process
can someone check this https://pastebin.com/329Vj1jx
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
its code
note for discord.js v12 use cache message.mentions.members.cache.first()
in a same node process
@dark kestrel Another Idea:
Maybe make a Interval in which fetch. If the site is requesting something. The request will be sent in db and then fetch by your bot code and processed
thx but i already thinnk about that
k worked thanks
xd
can someone check this https://pastebin.com/329Vj1jx
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
case 'giveaway':
if (!message.guild.me.hasPermission(["ADMINISTRATOR"])){
return message.channel.send('I dont have permission to do that, please give me "`ADMINISTRATOR`" permission.');
}
if(!message.member.hasPermission("ADMINISTRATOR")){
return message.reply('you dont have the premissions to use this command!');
}
if (!args[1]) {
message.channel.send("what you want the prize to be?")
} else {
message.channel.send(giveaway2).then(msg => reactEmojies(msg, [':tada:']))
}
const giveaway2 = new Discord.MessageEmbed()
.setColor('EC1F0A')
.addField(args.slice(1).join(' '), `host: ${message.author}`)
.addField('react with :tada: to join', "\u200b" )
.setTitle(':Yay: new giveaway :Yay:')
break;
not working
What is not working?
You are defining giveaway2 after you are sending it
@lucid prawn I guess client.once("reconnecting") doesn't exist
Is php that bad?
java.lang.UnsupportedClassVersionError: lavalink/server/info/AppInfo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 i get this error when i try runnig lavalink?
to golang
@open rune not getting a error
anyone can explain?
@lucid prawn oh ok, idk... it's just didn't work on me
ok
Node.js ❤️ this works every time!
So I'm trying to have commandHandler events but it doesn't work for some reason. Code: https://sourceb.in/7233177760 discord-akairo btw 😉
Your runtimes are different @drifting wedge
Your runtimes are different @drifting wedge
@vernal rivet wdym?
like one is one version tehe other is another?
im deleting java
and reinstalling it
Jdk
using 2 express servers
You are defining giveaway2 after you are sending it
@hazy sparrow now its giving me errors if im not typing !giveaway and not something after the prize
Do you know what scopes are doctor?
no
I highly recommend you learn what they are.
<GuildMember>.user.displayAvatarURL( { dynamic: true } ) @mild flower
yes
but notice the difference between those two
the second one is lower resolution
set the image as a png or something
yes @mild flower
???
it's different
set the image as a png or something
@mild flower
uh
<GuildMember>.user.displayAvatarURL( { dynamic: true } ) @mild flower
this would just make it a gif if they have an animated pfp
i need to download the image to send it as a png right?
No
<GuildMember>.user.displayAvatarURL( { format: 'png' } )
one more thing
.createdAt gives me the time and the local timezone
how do i get rid of that
format it
i would if i knew how
https://www.npmjs.com/package/moment i use moment
and it displays local time for everyone
it changes per client to match each users time
ah ok
Anyone here good with nginx as my website isn’t getting the css/js files and I’m getting 404 error.
what java version does lavalink work with?
Anyone here good with nginx as my website isn’t getting the css/js files and I’m getting 404 error.
@soft sedge please just asm the question instead of someone experienced with nginx to come
we're not gods here
@soft sedge please just asm the question instead of someone experienced with nginx to come
we’re not gods here
@earnest phoenix well my index won’t load css/js files and when I go to the file on the website it’s a 404 error.
what version do i use lavalink in? like java version?
How to make bot please tell me
@tranquil tinsel
@slender thistle wut version of java do i use for lavalink?
Some supported one
wow, i thought i needed a unsuported one
ive been trying for a ton of time lol
just wut java sdk version?
java 11 is standard, java 14 is current
I don't really like saving code that has errors, it's a pet peeve of mine, but I want to refactor my rewrite some, so it's a necessary evil
do i need java re to use jsdk?
Is there a way to make a setTimeout function, not end/clear itself when your bot is restarting?
no you don't need JRE, you should only need JDK. Java sdk is JDK
hey guys
is there a list of swear words
i sworn i saw a list before
in the following format
how many people can a bot dm before getting ratelimited
"hi", "bye", "etc"
@stable eagle You would have to store the end timestamp in your DB, and then, when your bot starts up, look through tasks with an associated time stamp
You won't be able to save the actual function to DB, so you will need a way to load those back up
where the words hi bye etc are cuss words
in a array?
yes
you can probably find it online
np
wrong place to go to. and your bot isn't approved yet. so you will need to wait till it is approved
why didn't you say that in the first place. but still wrong place technically, this is more for bot development.
I mean
in the PATH do i add java/bin or just java?
I kinda just finished my bot
should be java/bin
You can ask html questions here
And don't think I don't see people getting help for twitch and other stuff ehre
thanku
Mods point people here 🤷♂️
fair
isn't there a markdown function?
I don't wanna do markdown
No overly flashy stuff
yea
I have common sense
wheres w3school so i can throw that in here
Yeah, you'd be surprised the number of people who don't have common sense here
Lmao
I mean thats not really helpful
Software Architecture is hard :/
yes
java.lang.UnsupportedClassVersionError: lavalink/server/info/AppInfo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 I added java 13 to path
WHY!!!!!!!!! like whyyyyy is this happening
Yeah @solemn leaf
OWO
whats an iframe 
Yeah
inline frame
I guess you do need JRE
Let's you put your webpage or javascript in page.
that is probably going to be a question that someone might have
How can I change the background
inline css
Sideline css ;p
No it isnt
I dont know how to get css in html
<style> tags
ok
yes
<style>
body {
background-color: lightblue;
}
</style>
yes
Are intents required now
uhh
or is there still some time
idk
o,o we are api v8 now
its loading forever
what is?
wait so
currently i have a swear list
but it deleted the word pass
since the word is there
how can i make it so
its just that word
like say hi is the badword
it deletes hia!
?
How can I replace this stuff
wait...
huh
are you using regex
client.on('message', message => {
if(config.FILTER_LIST.some(word => message.content.toLowerCase().includes(word))){```
this is what i have rn
^^^^^
you need to do a whole word search instead
if you want to make it where it is the only the word, then you just check if the content is exactly equals to that word, instead of checking if it contains the word
i jack off to the bots
someone can type "[curse]." (with a period) and it doesn't pass your filter
<message>.replace('<replace>', ' ') like this?
turn each of your words in your filter list into regexes that look like \bcurse\b, \banothercurse\b, etc.
test the message content against those regexes instead
do it automatically
^^
or you could make the regexes inside of .some
Ok i need some help
with discord.py
i want to Mention the user who used the command, i searched online and i only found how to display their nickname but i want to mention.
i jack off to the bots
@remote shuttle im done
wait i have a regexp.js file
if(config.FILTER_LIST.some(word => message.content.toLowerCase().includes(word))){
how to reword that
Can i have help on that
i want to Mention the user who used the command, i searched online and i only found how to display their nickname but i want to mention.
isn't that member.mention?
console.log ; 'ur all gay'
if(config.FILTER_LIST.some(word => new RegExp(create_a_regex_for_the_word).test(message.content.toLowerCase()))){
is there a way to scale an image to fit the webpage
it is <member/user>.mention
the regex is just the word, surrounded by \b
@pale vessel is that for py lib?
all g
is there a way to scale an image to fit the webpage
i want to Mention the user who used the command, i searched online and i only found how to display their nickname but i want to mention.
@mild vortex ctx.author.mention
Or message.author.mention
Whichever you are using.
oh thanks a lot! i'll try that!
is there a way to scale an image to fit the webpage?
You don't have to send
a single message
per word
to ask your question
like a mature person.
if(config.FILTER_LIST.some(word => new RegExp(create_a_regex_for_the_word).test(message.content.toLowerCase()))){
@sonic lodge it says it cant find .some
some error like that
const logChannel = message.guild.channels.find(f => f.name === "logs") doesn't work in d.js v11 anymore. What's the correct way to use it in d.js v12?
yes
what way do i use it
let logchannel = await message.guild.channels.cache.get(process.env.logchannelid);```
thats how i have it
oh its just
message.guild.channels.cache.get
if you have an id that is
const logChannel = message.guild.channels.cache.find(f => f.name = "logs")```
or just find a channel on name cache.find
that should work
.some is not a function?
Hi
i hate d.js now, it would be fine if they released v11 but with the gateway support
you changed something in your code that caused config.FILTER_LIST to become undefined
More consistent
indeed
well the repexg.js
regexp.js*
doesnt have FILTER_LIST
thats why
but idk how to find it
never used regexp
/\b(4r5e|5h1t|5hit|
i have that so
it doesnt delete
"pass"
wait
so
var badwordsObject = require('badwords/object');```
i have a package now
but how would i make it delete
the words listed in that repo
apparently that package comes with a regular expression, so use it
that looks so slow does it not
so if i use the regexp
how would i implement it
into client on ready
in index.js
<RegExp>.test(string)
like require('badwords/regexp').test(string)?
just that?
that's about it
var badwordsRegExp = require('badwords/regexp');
client.on('message', message => {
require('badwordsRegExp').test(string)
console.log(message.content)
message.delete()
})
idk
i dont think thatd work
if (msg.content === "e") {
msg.reply("E");
if (msg.content === "what is my avatar");
{
msg.reply(msg.author.displayAvatarURL());
}
if (msg.content === "hello");
{
msg.reply("Hi!");
}
}
if (msg.content === "hi");
{
msg.reply("Hello!");
}
}); ``` My bot worked but too well. It spammed saying @ USERNAME_EXAMPLE, Hello! when no one said anything. Anyone know how to fix?
Ohhhh
thats probably not the issue tho
you're requiring it again
var badwordsRegExp = require('badwords/regexp');
client.on('message', message => {
require('badwordsRegExp').test(string) // <--
you already have the regex, badwordsRegExp
dont require() it
badwordsRegExp.test(string)
Didn't work :(
are you hosting the bot on multiple instances
I onlu have it on one server for testing.
i have message.delete
it returns true if the string was matched by the regex
if it's true, just run your message deletion logic
delete*
wait wjhat
I did node .
string is just the message content
it gives me an error, string is not defined @sonic lodge
string is a placeholder for the message content
you need to replace it with whatever the message content is
Anyone know what ; means?
End
client.on('message', message => {
badwordsRegExp.test(message.content)
console.log(message.content)
message.delete()```
would that work
Well that makes sense
but eh i need to make it so it finds if its true
for the msg to delete
if message.content === true
?
i dont think thatd work
maybe 'test'
¯_(ツ)_/¯
check if badwordsRegExp.test(message.content) returned true
if so, delete the message
How can I scale css background images
that makes no sense doe
you stupid?
i did not say "return if true"
o
if (regex_test_returned_true) message.delete();
Gotta give the whole error
oh thats a different cmd
nvm
but that didnt solve my problem
the regex
since it still deletes pass
How can I scale css background images?/
this is what I have rn
body {
background-image: url("https://cdn.discordapp.com/emojis/728961325081952266.png?v=1");
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
}
would auto scale it up until it fits the webpage?
There are four different syntaxes you can use with this property: the keyword syntax ("auto", "cover" and "contain"), the one-value syntax (sets the width of the image (height becomes "auto"), the two-value syntax (first value: width of the image, second value: height), and the multiple background syntax (separated with comma)
i think u can do auto
idk
background-size: auto;
Dots?
the things that look like playstation buttons
how
what r u trying to do?
list-style: none
to remove the dots of li
li {
list-style: none;
}
@solemn leaf or try on 'ul' instead of li
would that go in body
i think it's nicer with the dots though
I have a image which is lots of black squares that fade
anyway, you can customize the dots
ok cool hiow
ul {
list-style-image: url('image.gif');
}
@solemn leaf in the <style> tag or <ul style="here">
yes, if you want to combine the html with css, do with style=""
<ul style="list-style-image: url('image.gif')">
<li>something here</li>
</ul>
<style>
ul {
list-style-image: url('image.gif');
}
body {
background-image: url("https://cdn.discordapp.com/emojis/728961325081952266.png?v=1");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-attachment: fixed;
}
</style>
u wanna fulfill the image into the body? 
?
background-size: contain;
I was testing
didnt work
try on li
tf that's image is too big
the dots are still there
@solemn leaf where?? ur image display no dots
tf that dotsssss
the playstation buttons
hold a sec... u r trying to remove that dots. that seems funny
that is a weird thing to put on the website
set .shapes-background .shapes-1 to display: none !important
!important 
^^
puking
isn't it an image?
is there something wrong with this
const channel = member.guild.channels.cache.find("name", "discussion");
yea
so
display: none
add an inline style in the bot description
<p>
display: none;
</p>
Aki, first I need to know if that you're trying to remove is an image or not?
because, you can't remove image with only list-style: none;
wdym
thumbnail
ah i see
idk tbh
i forgot everything
last bot i coded was a whole year ago
lel
if you have an approved bot you get the role
you can get the role even if you have no programming experience really.
😭
+I mena you can just steal a bots code
aki, in your image try style='position:absolute; z-index: 1000 !important'
or just use a bot creation software
@solemn latch im still in the same predicament as last time
Or tutorials
<head>
<style>
body {
background-image: url("https://cdn.discordapp.com/emojis/728961325081952266.png?v=1");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-attachment: fixed;
}
</style>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="master.css">
<title>Not-Chan</title>
</head>
I mean tutorials count
ngl i forget last time already @earnest phoenix
It’s how I got where I am rn through tutorials I mean it was a B***h to do when I first got into it I slowly got a small understanding
F
@open rune ?
trying to get sql stuff
ah
trying to get the check working
I got a problem. How to filter out DMs and bot messages ? because I want to DM a guy if his status is offline (when he send a guild message) but I got this error :Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\Shaal0wFR\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\client.py", line 333, in _run_event await coro(*args, **kwargs) File "C:\Users\Shaal0wFR\Desktop\Bot Discord\test on Atom.py", line 42, in on_message statut = user.status AttributeError: 'ClientUser' object has no attribute 'status'
my code is this one : https://mystb.in/MatchedCambridgeKeyword.python
@solemn leaf try not to use body
@earnest phoenix https://www.tutorialspoint.com/sqlite/sqlite_select_query.htm
^ should be exactly what you want
how does ```js
thing.function(etc)
what is thing, how do you make function, etc.
wait
I mean you could use google
man im so smart
idk if googling thing.function(etc) will yield positive results
how do you make function in js
eventemitter?
<html>
<body>
<div style="position:absolute; z-index:1 !important; width:100%; height:100%; background-size: cover; background-position: center; background-repeat: no-repeat; background-image: url('https://cdn.discordapp.com/emojis/728961325081952266.png?v=1');">
</div>
</body>
</html>
@solemn leaf
kek
that's not what they were asking though
i feel like 5 different questions got asked in his two messages
With the Discord bot update I can't grab from guild.members object right?
client extends eventemitter, which is why you can use .on
Does anyone know if D.js is updated to add intents?
yes
client is a class iirc
Is it through the constructor options?
oh it's a class?
through clientoptions
so i think your question is more about classes
@open rune
<html dir="ltr" lang="en">
<head>
<body>
<div style="position:absolute; z-index:1 !important; background-size: cover; background-position: center; background-repeat: no-repeat; background-image: url('https://cdn.discordapp.com/emojis/728961325081952266.png?v=1');">
</div>
</body>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="master.css">
<title>Not-Chan</title>
</head>
class whateverIWant {
this.functionName() = {
//codez
}
}
```?
hm, baseclient

@pale vessel which option would it be? Am I blind?
client.options.ws.intents
<html dir="ltr" lang="en">
<head>>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="master.css">
<title>Not-Chan</title>
</head>
<body>
<div style="position:absolute; z-index:1 !important; background-size: cover; background-position: center; background-repeat: no-repeat; background-image: url('https://cdn.discordapp.com/emojis/728961325081952266.png?v=1');">
</div>
</body>
</html>
@solemn leaf never add <body> inside <head>
oh
it's just human, having <head> <body>
fetch('http://localhost:3000', {
method: "POST",
headers: {
'Content-Type': 'application/json'
// 'Content-Type': 'application/x-www-form-urlencoded',
},
body: {
"name": "thinh",
"id": "bla bla"
}
})
SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse (<anonymous>)
at parse (/home/thinh/Programming/Shinoneko/node_modules/body-parser/lib/types/json.js:89:24)
at /home/thinh/Programming/Shinoneko/node_modules/body-parser/lib/read.js:121:18
at invokeCallback (/home/thinh/Programming/Shinoneko/node_modules/raw-body/index.js:224:16)
at done (/home/thinh/Programming/Shinoneko/node_modules/raw-body/index.js:213:7)
at IncomingMessage.onEnd (/home/thinh/Programming/Shinoneko/node_modules/raw-body/index.js:273:7)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
help meh
use JSON.stringify(object) for body
have u add width and height yet?
ok
you can't provide a raw object
wdym
body accepts a string
<div style="position:absolute; z-index:1 !important; width:100%; height:100%; background-size: cover; background-position: center; background-repeat: no-repeat; background-image: url('https://cdn.discordapp.com/emojis/728961325081952266.png?v=1');">
</div>
try add width and height

@solemn leaf How to make the bot description like yours
with all invite and commands info
@open rune so wait
<head>
<body>
<legs>
<footer>
IMMA COMPLAIN
you are missing the head
footer should be inside body
no hands, it's disabled human
thanks homies
lol
<html>
<head>
<body>
<arms>
<hands>
<legs>
<ankles>
<feet>
<toes>
@solemn leaf u r just ruining your page lol
imagine that <section> is a breast of html
this is the way to teach html
Sorry to bother @pale vessel, do I need to do anything else like in dev portal?
if you need to use privileged intents, you have to enable them in developer portal
I have a bot kinda like luca for one server so I need guild member stuff, I assume this would cover it. (added members)
Im testing my bass speakers
this isnt removing the squares
@solemn leaf if you're forcing html css to remove that square, add margin-top: -50px; inside <div style="">
that's enough i guess
wha
your bot doesn't need any whitelisting since it's under 100 servers so you just have to toggle the intent
Via the client right? Not through dev portal? I do have a 500server bot I need to fix too since it's a role giving bot Dx
both actually iirc
@solemn latch you forgot the ears
I think Discord said dev portal will be updated NEXT week for intent toggles.
@sudden geyser its modeled after someone asking for help here, they dont listen anyway
xD
So uhhh one of my bots can't access the api because it exceeded some rate limits.
message: 'You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently. Please read our docs at https://discordapp.com/developers/docs/topics/rate-limits to prevent this moving forward.' }```
Is there any way for me to actually know which ratelimit?
That's not helpful at all
sure it is
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="master.css">
<title>Not-Chan</title>
</head>
<body>
<div style="margin-top: -50px;">
</div>
</body>
</html>
@open rune
you dont get told.
the easiest way is to track what commands are run(so you can see the most running) and look at every api request and command and see what has the most requests
reaction menus can use a lot of api requests.
its not on discord to prevent you from hitting the ratelimit, its on you 🤷♂️
wtf
Well
idek
most libs do what they can to help prevent it
@solemn leaf where are all the style u inserted before?
gone
You can't actually be 100% certain that it is a "me" issue to begin with
I was hungry
whatcha mean?
ok
Ah yes, we don't need debugging tools, just make code without bugs
i added back
ok buddy
it used to be toggleable i think
ah, that feels ok @solemn leaf
maybe you can't change anything after you get whitelisted
you are supposed to make the debugging tools @late hill
pretty standard api stuff
I jUstS mkeh aiufgw809oulodq
🤔
dude stop leaking my password
I jUstS mkeh aiufgw809oulodq
vysion gave you the solution
SORRY
I think you missed the point I was trying to make.
I was trying to explain that a debugging tool, has no actual use when you make no mistakes.
ypeError: 'str' object is not callable
connor@Connors-MBP Yandere copy % python3 OwO.py
OwO.py:183: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
BlacklistedUser_IDs = ("Blacklisted_IDs"("user_id"))
Traceback (most recent call last):
File "OwO.py", line 183, in <module>
BlacklistedUser_IDs = ("Blacklisted_IDs"("user_id"))
TypeError: 'str' object is not callable``` 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭 😭
Yet you'd still agree that debugging tools are good to have
Same thing as discord not replying properly in their errors
They don't have to, sure, but it would be very nice if they did.
wait discord errors are not replying properly?
They aren't informative*
do you mean your libs errors are not informative?
discord.js's rateLimit event is nice to have
because status codes are all you need to debug web errors mostly
Did you forget the previous topic
@open rune how would I add set .shapes-background .shapes-1 display: none !important
you should learn css
ratelimits are made of multiple requests 🤔
@open rune how would I add set .shapes-background .shapes-1 display: none !important
@solemn leaf wait, what?
what library are you using? @late hill
your first ratelimit can happen on something but be caused by something else
which is why its on devs in 99% of api's afaik
Eris
@open rune iuawhd qadajsndwabfjknafhbfa
eris is a lib not made by discord
leaked password ^
I know
@solemn leaf hold on, I am making an ultimate remover xDD
Jesus why don't you understand anything I say
you should have listened to debug events like rawREST and debug, they could give more information
<style>
page shapes-1 shapes-background {
display: none !important;
}
</style>
@solemn leaf put it inside <head> 
.shapes-background .shapes-1
the message is a very vague description that's not very helpful to me
there's room for improvement there
debug.
what do you want it to say?
more information about what limits I've exceeded?
there are events for that
please don't ignore me
how are those events helpful to me right now
its on you to do things properly
<html dir="ltr" lang="en">
<head>
<style>
page shapes-1 shapes-background .shapes-1 {
display: none !important;
}
</style>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="master.css">
<title>Not-Chan</title>
</head>
</html>
That doesn't disregard that it would be helpful if it did reply in a more meaningful way?
no it doesnt, but its standard to make devs be responsible for their own problems.
Is it not the developer's responsibility to debug what is causing the error?
@solemn latch , do you mind checking your DMs? \🙏
If you're the one reporting the error
It should be very doable to make the error as clear as possible
It should totally be your responsibility to have your errors be as meaningful as they could be
the fuck are you saying
wdym
the error is clear?
you sent an api request, you track the response to that request.
The report is you got rate limited. The error is very clear. What you want is what caused the error (aka what you did/API request endpoint which got you rate limited). You debug it through watching the requests.
page .shapes-background .shapes-1 {
display: none !important;
}
@solemn leaf
everything you need was given to you.
it's actually will never works, it refuses style lol
it's .page
.shapes-background .shapes-1 {
display: none !important;
}
I've already agreed on that
I'm saying it could include more helpful information
it is not that hard people ffs
that info was provided, you just didnt listen for it.
well, try fix my mistake....
it's actually .page .shapes-background .shapes-1
@solemn leaf
I don't think it can get more clear than that as you have everything else you need to debug it, but we can agree to disagree.
do you need !important?
just make it sure it works at once
😄
use css
can I remove the dark mode button
you should learn css, in fact
and make it always dark mode
yes you can
is it allowed
yes
the navbar might stay blue for some users though
actually imma put a lock on it
don't
i wouldnt do that
no
some people have vision issues and cannot see well on dark mode webpages.
probably can, I wouldnt
I mean
100%

api abuse is api abuse 
still can't
nope
every decade
yes
ez zp
since discord would die already
f discord.
wdym
yeah I dont like the box
xd
yes, it's looked more flat
just delete it
ez pz
why does its send the id?
bcs its local
i know rainbow roles are against tos
@earnest phoenix Rainbow roles?
witch
how do I delete a node
idk
so i have some bots just made with bot making applications because i dont have enough time to learn code. Is there any type of code that can be learnt easily?
How do i change my bot's status
@edgy matrix python
this one
@solemn leaf do you mean the border?
ok
yeah
i know a bit of python
try using message.author.username
@open rune
it send that:
i could go off that
not the image, but the class bot-img make it !important
you can swap those values https://discordapp.com/channels/264445053596991498/272764566411149314/763453705806544927
so
addField("\u200b", content)
@open rune
it send that:
@tardy hornet yes coz that's only for username, you can use message.author.tag
so
@solemn leaf I bet you round the <img>
How do i change this
read your library's documentation
<style>
.bot-img {
border-radius: 100% important;
}
</style>
The way you had it before is the correct way to mention: <@userid>
can i access vps express using his IP ?
If it doesnt mention is because mentions are not supported in the place where youre putting it
my ip is 127.X.X.1
192.168.1.1
gay you
help
i trust you not to ddos me
LMAO
@dark kestrel can you explain better?
just did
module.exports = (client) => {
const app = new express();
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use(bodyParser.raw());
app.post('/', (req, res) => {
User.findOne({ username: req.body.username }, (err, user) => {
if (!user) return res.json({
"code": "200",
"status": false
})
else if (user) {
if (user.username != req.body.username) return res.json({
"code": "200",
"status": false
})
else if (user.username == req.body.username) {
bcrypt.compare(req.body.password, user.password, function (err, result) {
if(result == false) return res.json({
"code":"200",
"status": false
})
else if(result == true) return res.json({
"code":"200",
"status": true,
"user": JSON.stringify(user)
})
});
}
}
})
})
app.listen(process.env.PORT || 3000, () => {
console.log("server is running on port 3000")
});
}
This code is running on a VPS
so i will get IP of that VPS
and go to search bar
type
IP:3000
and it is not working
Yes, you can access it, but not with a browser
i can't fetch
Because browser uses GET, and ypur code is using POST
-bots]
not here plox
router.post('/login', (req, res, next) => {
fetch('http://xx.xxx.xxx.xx:3000', {
method: "POST",
headers: {
'Content-Type': 'application/json'
// 'Content-Type': 'application/x-www-form-urlencoded',
},
body: JSON.stringify(req.body)
})
.then(result => result.json())
.then(data => {
if (data.status == false) return res.send("Wrong username or password");
else if (data.status == true) {
return res.render('home', { name: req.body.username })
}
})
.catch(e => console.log(e))
})
this is not working
@quartz kindle help
mentions aren't supported in field names
<@!{message.author.id}>
put it inside the value/description
Woot?
Hello I need help with something disboard isn't working for me soo I found a link for help
LOL


best answer to that question

