#development
1 messages Β· Page 503 of 1
Im getting pissed
LMAO
well hey,. the bot comes online but since thats not how args are defined for that part, it did nothing
damn args pls fix kthx
how did you code that bot
then you can fix the damn args
if (message.content == (args.join(" ") !== "--verify") ) still makes no sense
^
https://gyazo.com/1dbc580bc476e412474df361c68931db we put our last 3 in codes
and it does that
it registers all the codes
and puts it into a file like that
and if we do !qs
it queues a snipe
where it says
5....4....3....2...1...Go
we click ready on go
and when we load into our games
we see our last 3 codes and as u see in the picture
after someone puts their code in
I need that
mostly
remember how math works? math inside parentheses is always done first
const Discord = require ('discord.js')
const load = require ('./config/fileload.js')
const eload = require ('./config/eload.js')
const bot = new Discord.Client();
//data =======================================================================================================================================================================
bot.commands = new Discord.Collection();
bot.aliases = new Discord.Collection();
load('cmds', bot.commands, bot.aliases)
eload('events', bot)
bot.login(process.env.TOKEN);
``` is it possible to make it shorter?
xD
was tryna find out if i can make it shorter
oh well
huge else if command handler 
array operations in every if 
code doesnt make sense anyway 
Meme code
how does my cmd not make sence, its just saying, if args are not just that, then return whatever
I can code the same code in much more cleaner way ^
xD
if (message.content
the paretheses is always done first
so this (args.join(" ") !== "--verify")
will be executed first
which will return true if it not equals, or false if it equals
then
the if(message.content == is executed
which will try to compare the message to the result of whats inside the parentheses
does that make sense?
if (message.content == async(args)(args.join(" ") !== "--verify") )
also why is there async
thats gone
@bot.command(name = "eval")
@commands.is_owner()
async def _eval(ctx, *, code: str):
try:
exec(code);
except Exception as e:
await ctx.send("`" + str(e) + "`");
print(str(e));
Hey so I have the suckest eval command that's plain garbage, can someone help me out?
discord.py rewrite
you want to check if a message.content equals something. what exactly is that something?
var args = message.content.slice(config.prefix.length).trim().split(/ +/g);
that way, is looking for messages that have the prefix at the start of args, but i want it to be that, withour prefix part
because args.join would make it match whatever the person decides to write
meaning the command would always run
well i g2g, good luck to you guys
this code will split the message of the author into array
so for example I typed
<prefix>stuff pls learnjs
it will output
["<prefix>stuff", "pls", "learnjs"]
so if you want to get the learnjs part
args[2] //since array starts at 0
console.log(args[2]) // prints learnjs
i have args and all defined, and i know what i want, but how do i just make it so, if a message does not start with blabla, ==> return whatever
else whatever
if msg.content.startsWith
you have that on your prefix checker
Β―_(γ)_/Β―
you should have known that already
lol
if message.content.doesNotStartWith
was a thing, that be handly
you can just freaking put a single ! in front of that
do the code reaches that even?
only if those roles exist
they do
double checked
const ownerID in every command 
not using config file 
no, i dont have that in every command
and i am
just in every command that needs it 
best bot? where
check if it do reach that

also here
"will this work guys?"
try it 
no im saying it should, but doesnt
config btw^^
proof i have one
then why put const ownerid
it was before config
prefix
was setup
PREFIX
selfbot token
owner
ownerid

im dying saya pls
hold me
GUYS
ayy
help
Lmao
the command i have above, works pn my other bot, and doesnt on @heavy thistle
why
is
that
did you save it
maybe you dont
is there an error
are you running the command
do the roles exist
etc
yes
etc
give info
yes to what
that was abc
in multiple choice at school do u put yes
no error, bot above roles, has perms, roles exist
ok ok
all check
oo
oo
and
if roles didnt exist
it say, thing given is not a role nor a snowflake
do the bot return if it doesnt exist
no
then good luck with that
its a simple
if (!role) return
I dont think we even need to spoon feed that
do we?
ye, it is
^
at least he returns when its not the right channel 
i have it so only for my server
exports.run = async (client, message, args) => {
if (message.channel.id !== "500639631558311940") return;
let role = message.guild.roles.find(r => r.name === "Member!");
let role2 = message.guild.roles.find(r => r.name === "ToBeVerified")
await message.member.addRole(role);
await message.member.removeRole(role2);
await message.author.send("Welcome To The Server!");
}
if something doesnt work without any errors
then you have problems like you are returning on some bizarre way
its literally the same as my other bot and works fine for the other bot
5x double check would be ok
how do I invite someone
if it works on other and not on production
i did quintuple check
you did something wrong
do u know what
why would I
or just double check your code
i did
we are not magical elves
is there some way to get a role id
mention the role then copu id
@earnest phoenix no definite time
Will it come back?
Pretty much
finally i can sleep
im finished
and its 5am
I regret asking
i get 2 hour sleep π’
uHey
I was wondering
how do I make it
so If someone messages the support bot
it sends a dm to a staff member
and that staff member can reply using the bot
that would be a pain in the ass once you shard
^
just have support server
and if u make it with case numbers u will have a big db
wdym
just use user id????
nvm
but still dont do it lo
I dont know
I need someone to code a bot for me
and i cant find anyone
I even said I'll pay but no one wants to
and I am trying to learn how to code
but its gonna take too long
is fun to learn to code
no not rlly
I want to code a discord bot
but now that I see
how long and how many lines of code it takes
its gonna be hard asf
@earnest phoenix if u like coding u should code the bot for me π
Yo dudes, I'm trying to get my discord bot to go to a specific github repo and update the current bot files with the ones in the github repo every minute. I don't know how I would do that. Please help!!
I code in C#
you could try using libgit2, https://libgit2.org/
uh @loud salmon ?
http://i.imgur.com/HYos0t2.png
works fine for me
Β―_(γ)_/Β―
odd
did any errors come up?
ah i see why, it checks hoistrole
lol
for member? i think it does, i'll check
yea thats how I personally check for perms
yeh it does
idk if its the best way, but I use it and it hasnt backfired
aight fixed, didnt know that existed for some reason
kk
should i resubmit or?
sure, but i need to go to sleep
aight
why am i getting emitter warnings always, i have 11 shards and isn't that ok to bot tries to emit 11 events? do i have to set those emitters in sharded-bot.js (sharding manager) possible memory leak detected, 11 guildmemberupdate listeners added...?
I'm using a mysql database to store stats about members on my server. Can i simply increase a number in the database by 1 instead of having to read it, change it and write it again?
@steel heath it seems like you're adding 11 guildmemberupdate events in the same place instead of individual shards?
Well they are in my index.js and sharding manager shards index.js
why so many guildmemberupdate?
There's only one ffs not only guildmemberupdate, all of events AND EVEN READY
why'd i create 11 ready events
there's only one
but emit will only run one of them
Yeah that's why I am asking this for months
Am i supposed to set events on sharding file or in bot.js which is the file that gets sharded
never sharded so never rlly tested
i should try maybe
u using stable right @steel heath ?
You're supposed to set your event listeners wherever your client logs in.
yeah that's why i exactly do rn
never got problem with those
I just leave the sharding file 4 lines
then handle everything on the client
mhm
im using an eventloader to load events and then that loader sets events is that the problem idk
// index.js
...
require("./eventloader/loader").run(client, mongoose, cooldown);
...```
```js
// /eventloader/loader.js
...
run: (Client, mongoose, cooldown) {
client.on("guildMemberAdd", { require("../events/guildmemberupdate") });
...
// /events/guildmemberupdate.js
...
run ...
member...
...```
@earnest phoenix yes sir
hard to write all those on mobile
You can clear the require cache
also, what can i do except require mhm, i have 500 lined guildmemberadd js
or just reload the module, remove listener and re-add
^
don make it require every time
i cant copy whole code into there lol
i mean like
i can load events in index.js but wont change a lot
const event = require('something.js')
client.on("guildMemberAdd", event);
I have a mem leak, I'm just too lazy to fix it
thats basically same thing
no its not
u sure
But mine is from lavaloink listeners
ah uhm, will try tonight @earnest phoenix thanks
thats not about event listener leaks, just a general thing to change @steel heath
uhm, do you have a minute to explain me the meaning of doing that? dont mind if you cant
i just want to make sure
well if you require every time
it is cached so it wont read the file again from disk
but it does some other unnecessary work
what kinda unnecessary things
iirc it goes through modules filenames before returning even if its in the cache
is that the memory leak reason lol
agh, then tf is the reason of these warnings haha
im going to move loader into index file and wont require it and use variables like u said up there
look at all the extra crap it does lmao
Too many listeners of the same thing π
yeah probably setting listeners inside eachother
you don't
yes but im getting errors of it
your doing something that's creating more of the same thing
and thats what i want to find
can ready fire more than once? idek
My mem leak is the cause of me doing recursive calls of a function with event listeners
memory leaks 
yes sir
at IncomingMessage.res.on (/root/bot/node_modules/dblapi.js/src/index.js:115:25)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1092:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Did I get rate limited or something

Every time I try to make a call to the website

@glacial sentinel might be ratelimited or u didnt supply your key
I guess I got rate limited then lol
Am I like banned for a hour now
@bitter sundial Can I get some help here please
Access denied
The owner of this website (discordbots.org) has banned your IP address
well that's explicative π
send IP
1.1.1.1
Solved already, and that's shitposting ^
Whatβs
\* @param*\ lOL
Jsdocs
A comment
Discord.py
Hello everyone,
I am making a module where I send a file (from my computer) and let ppl rate this using on_reaction_add.
Now I wonder, how do I get the name of the file sended in on_message or on_reaction_add? Or the message content when I use send_file?
Because it just returns nothing if I use file.content.
file = await gopbot.send_file(message.channel, meme)
in
#On a message (command)
@gopbot.event
async def on_message(message):
global SlavMemeCounter
# GOPBOT MEME
if message.content.upper().startswith('GOPBOT MEME'):
if SlavMemeCounter >= SlavMemeCount:
SlavMemeCounter = 0
SlavMemeCounter += 1
doc_ref = memes_ref.document(u'Number')
doc_ref.set({
u'Number': SlavMemeCounter
})
location = str(SlavMemeLocation) + str(SlavMemeList[SlavMemeCounter])
with open(str(SlavMemeLocation) + str(SlavMemeList[SlavMemeCounter]),'rb') as meme:
file = await gopbot.send_file(message.channel, meme)
@mint cradle with message.attachments list
https://discordpy.readthedocs.io/en/rewrite/api.html#discord.Message.attachments
Thnx!!!!
How can I make this case insensitive?
I tried this but I get this error
if(message.content.toLowerCase().startsWith(Prefix + "set Automatic Reactions ").toLowerCase()) { ...
well
wait I may have messed up a bit
It works normally like this but when I need to use the startsWith it won't cooperate
if(message.content.toLowerCase() == Prefix + "help".toLowerCase())
thats because you are lowercasing their input
then comparing to mixed case
then converting the result needlessly to lowercase
message.content.toLowerCase().startsWith(Prefix + "set Automatic Reactions ").toLowerCase()
"make the message lowercase, now check if it matches (Prefix + "set Automatic Reactions ") which will NEVER hapen because that has capital letters"
i dont even think that would work
because .toLowerCase() isnt for bool
so u will just get toLowerCase is not a functon
Alright thank you
also if your command handler is an if-else chain, you should not do toLowerCase and compare every time
if(message.content.toLowerCase().startsWith(Prefix + "set automatic reactions "))
Should be fine
But yes what Tom said
Don't do this like ten times
unless your prefix has an upper case
oh
then put Prefix.toLowerCase() snfsnfnsef
My prefix is always put to lowercase
Because why the fuck would you have a case sensitive prefix
Thank you, partner π€
my bot error give please help
.help is not a thing
omg I just got dmed by like 10 bots
never do .help again 
if you go to the related server like if it's Discord.JS I can dm you an invite to that, there will be many more people to help you
I suggest to post your code too :P
Dors discordbots allow for bot frameworks too?
What do you mean "allow for"?
Votes: (pbotinfo)
80
Upvotes (@gilded plank botinfo @rocky oak)
126
Anyone knows why it doesn't register all my votes in my bot?
@still cave what do you mean by bot framework
I have a network that takes a config file that creates and hosts a bot basic off of itβs settings. So it isnβt just one bot it can be many bots. And I add different features as services (which are selected with the config file)
hmm
so it starts off as a basic bot and you can load commands based on a config that a server admin edits? @still cave
wrong channel @earnest phoenix
Arthur it probably is because of monthly votes
@loud salmon yes sorry went afk for a moment
How do I make my bot say an emoji?
No idea since you haven't given any specific details about the lib.
My lib is discord.js
a custom emoji or a default discord emoji? @wheat marten
and that's not related to the library
a custom emohi
put a \ at the start of the emoji
copy the code it gives you and put it in the bot's send message text thing
ok
@earnest phoenix still same shit btw:(node:23544) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ready listeners added. Use emitter.setMaxListeners() to increase limit
And this is all huh
I'm starting with forever is that the problem
same
i thought it was normal
why wont this work
const discord = require('discord.js');
const {prefix, PREFIX, footer, owner, ownerID} = require('../../settings/config.json')
const talked = new Set()
exports.run = async(client, message) => {
if(message.author.id !== ownerID) return message.channel.send("You Have Not Unlocked This Easter Egg!");
if (talked.has(message.author.id)) {
let embed1 = new Discord.RichEmbed()
.setAuthor("Hold up!")
.setColor("RANDOM")
.setDescription("Command Can Only Be Used Once Every Twenty-Four Hours, Please Try Again Soon!")
.setFooter(footer);
message.channel.send(embed1)
message.delete(2000);
} else {
message.channel.send("Look At Bots Status Colour!")
setInterval(() => {
RepeatDelay(client)}, 20000)
function RepeatDelay(client){
setInterval(() => {
onlineDelay(client)}, 2000)
setInterval(() => {
dndDelay(client)}, 7000)
setInterval(() => {
idleDelay(client)}, 12000)
function dndDelay(client){
client.user.setStatus("dnd")
}
function idleDelay(client){
client.user.setStatus("idle")
}
function onlineDelay(client){
client.user.setStatus("dnd")
}
}
if(message.author.id !== ownerID) return message.channel.send("24-hr Cooldown Enabled!");
talked.add(message.author.id);
setTimeout(() => {
talked.delete(message.author.id);
}, 86400000);
}
}
@night imp how do I do that
does d.js MessageStore.fetch get the message from cache if it exists or always use rest api
.fetchMessage func is always getting from rest afaik
cuz my bot can quote the first message in a channel
idk how that means its always rest
but those last 200
are they from cache or fetched
Anyone got a good idea on how to track how many times a command was executed in the past 24 hours? π€
I have a couple of ideas but they either seem inefficient or utterly stupid
yeah like
@quartz kindle define persistence?
var used = 1
commandused:
used++
then save date in text
persistence = data is stored on disk and remembered between bot restarts
Yeah I was thinking of using a db instead because this can get messy, considering my bot's files conditions
I was thinking of tracking them on 5 mins basis
Like posting data every 5 mins
So I was gonna create a table with 24*12 rows and a number of columns = number of my bot's commands
And go through the rows one by one on every 5 min mark and updated it, and if I need data for the past 24 hours I can just sum them
But seems really stupid and inefficient to me 
you can go the nosql route instead of an rmdb
yes
you could for example create keys based on dates
each day generates a new key
key contains an object which contains commands and times executed
and everytime a command is run, you increment it
can someone help
like database[todaysDay][command]++
and your database looks like ```
{
"day1":{
"command1":5,
"command2":9
}
"day2":{
"command1":45,
"command2":29
}
}
I think I got you
That sounds good to me tbh
I think I can only see one downside of this. I wouldn't be able to know when peach usage was across the day I guess
Peak*
@quartz kindle can u help me
ask your question and someone will help
another route, albeit a more complex one, would be to create an object of commands, where each command has an array of dates
Where do you put ure commands for a bot
so for example ```js
{
"command1":[date1,date2,date3],
"command2":[date1,date2,date3,date4]
}
and each time a command is run, you do database[command].push(date)
where though
then you can search the array in order to group commands by time frame
In that case that array would be huge
@celest prawn have you created a bot? do you know any programming language?
no this is my first time
you need to learn a programming language
i recommend javascript or python for beginners
you can look up some javascript courses and tutorials online
no i just need to know where and how to put in commands
What language are you using?
and yeah, the array would be huge @pale marsh , but thats the price of indexing all the dates xD
wtfym
or you can group by day, and push hours instead of full dates

@celest prawn you cannot make a discord bot without knowing a programming language
you can
unless you use something like discord bot maker
Don't though
kek
discord bot maker is for noobs :^)
Not only that
If you want to make a bot that does complex stuff you'll suffer more than just learning a language and using it
@quartz kindle thanks for the advice btw. I appreciate it β€
np :3
omfg u useless pieces of shits
@celest prawn you will not be able to make a bot without knowing how to code. period
ik how to code
in which language?
idk
then you dont know
i hack
...
hacking is not coding
u r useless
Sure
im useless because you dont know how to code? ok lol
lmao ure fucking forehead
how old are you btw?
@hushed berry a bit rood and offtopic 
stop coming at my boye Tim
"you are fucking forehead", that doesnt even make any sense
@celest prawn chill out my dude
hacking is not coding tho
he is right
hacking involves coding
well
some times
smfh people these days
@earnest phoenix amirite 
@quartz kindle i don't need to tell u anything so u will never know my age bitch
lmao
didnt i JUST tell you to chill out
im not mad my dude
ya ok

that doesn't make u mad
totally
u r a retard
why are you mad though? we're genuinely trying to help you by telling you what to do, but you refuse our help
retard means slow
I've had my daily dose
lmao
adios π
question: thoughts about javascript auth vs session/cookie auth?
for example, a page loads, then javascript logs in by sending a post request containing a token saved in the browser
vs page loads and logs in via cookie token
so, static frontend with javascript authentication or dynamic frontend with templating and backend authentication?
dynamic
dynamic
dynamic is always the way to go unless price matters
can bots add a video object to embeds 
yes?
I thought so
that might be one of those things I just imagined and realized they couldn't a few months ago.
I think the API ended up not having documentation for it, unless they updated it recently.
i have a dynamic front end with php, but my concern is that cookie-based authentication doesnt work in certain browsers that have cookies disabled
there are a few privacy-oriented browsers in which my website completely broke
maybe im not using sessions properly though
javascript just feels like it would be easier to track a user's machine than php which only offers ip address and user agent, both of which are easily spoofable
What does this snippet of code do in Python?
__import__("ctypes").string_at(0)
Hi! How would I composite one image over another using JIMP and an image address? I have tried:
Jimp.read("urltoimage").then(image => {
image.composite( "urltoanotherimage", x, y);
//more code below that isn't relevant
});```
However, I get an error which tells me that src ("urltoanotherimage") must be a Jimp image. I have tried downloading the image to disk with Jimp and then compositing the images, but that doesn't work well because my files refresh every 10 seconds and so there is either a 10 second delay (made by setTimeout()) before it can composite the images or it doesn't find the image at all (without setTimeout()).
You need to read the image first
var a = await Jimp.read("image url");
var b = await Jimp.read("another image url");
var c = await a.composite(b, 0, 0);```
Ahh, I see, alright, thanks!
np
var img = Jimp.read(message.author.avatarURL).then(image => {
image.resize(128, 128);
});
var img2 = Jimp.read('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSwPbKnk2lK1IjS0fvMaZMzVbVfQdUG6lR9gkXWKwPC-VJqlgjbLQ').then(image => {
image.resize(500, 168);
image.quality(100);
});
var img3 = img2.composite(img, 100, 100).then(image => {
let outputfile = `./output/${message.author.username}${message.author.id}.${image.getExtension()}`;
image.write(outputfile, function () {
message.channel.send("Test Successful!", {files: [outputfile]}).then(function () {
fs.unlink(outputfile);
});
});
});```
This is my current code for it and it doesn't seem to be working π¦
I couldn't figure out another way to send the message to discord π€
That deletes the outputfile after the message is sent
Alright, disregarding that, I am still getting the error that img needs to be a jimp image.
try this
var img = await Jimp.read(message.author.avatarURL);
img = await img.resize(128, 128)
var img2 = await Jimp.read('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSwPbKnk2lK1IjS0fvMaZMzVbVfQdUG6lR9gkXWKwPC-VJqlgjbLQ');
img2 = await img2.resize(500, 168)
img2 = await img2.quality(10)
img2 = await img2.composite(img, 100, 100);
img2.getBuffer("image/png", function (err, buffer) {
const file = new Discord.Attachment(buffer, "image.png");
message.channel.send("Test Successful!", {file});
});```
That worked perfectly. Hmm, would it be possible to just use .then() instead of declaring img2 repeatedly?
well, yeah, but it would be the same thing
np!
how do i see who voted for my bot?
the best way is to use webhooks
but there's docs for votes here: https://discordbots.org/api/docs#votes
you should keep in mind that even if you don't get a lot of votes, you should try to stick to webhooks because DBL will ratelimit you if you keep sending requests to see if someone has voted
thx
sorry
i meant to link here: https://discordbots.org/api/docs#bots
oki
go down to "Get Bot's Last 1000 Votes"
thx
np 
If you get under 1000 votes you can just loop the getvotes
You don't have to send requests when users use the command
how
do
i
stop this from happening
every time i resize the window
it touchs the blue thing
see
are you using fixed numbers?
yea
use non fixed numbers like 25%
lol
how do you make a command handler so I don't have a 171 line one file bot?
Theres alot of yt vids about cmd handling
You can watch one and edit it to ur liking.
klol
@earnest phoenix 1. use css
2. this channel is for bot development as the channel topic says
@bright spear for one no this channel is for general development
an admin had said that already
and dw i figured it out
Setup of new welcomer bot
Does anyone know why discord's members api endpoint only returns a single result?
@topaz fjord shoot me
...
just kidding
dotting me
give me a min
Udemy is the world's largest destination for online courses. Discover an online course on Udemy.com and start learning a new skill today.
@earnest phoenix
if you do not know HTML, you should look at these courses
This Codes Can't Work Alone
that was perefctly ignored
wanna check it?
not bad
make those buttons block. it's making me nervous.
XD
Actuly I'm a Front-End Web Dev But I'm Too Layz XD
what do you mean
oof
guys
i need help
<meta property="og:image" content="https://imgur.com/lr1bCmW" />
the preview doesnt work
i have tried putting the directory
and still no luck
well if you tested with discord with the direct link it should work but probably it was cached without the direct linkl
you can try adding a query string to the url maybe discord will fetch it again
Ok tom
When are u free 
Tom this seems like a good neural network project
amirite @earnest phoenix
π
i just couldnt believe that person didnt know what was wrong
blew my mind
which person
The one I pinged you at?
no the one i pinged lol
π
i have tried it on messanger
it worked
there ya go π
but it doesnt work on discord
or twitter
just cached
ah
twitter needs a different one actually i think
1 sec
ill send
@earnest phoenix i have it
yeah i did put that in
the twitter:card, etc ones?
yea
ok cool
π€
still not working
:C
one of them has value=
i think it should be content
YEA
Nope
because discord bot list done the same thing
kk
i will try the link on my brothers
computer
lets hope it works
nope
still no picture
it could be cached on the server
its not about your pc discord caches it
if the direct link is there it will work dont worry
just wait till tomorrow
probably will update
i hope but why when i updated the text it updated but not the image?
π€ good point actually π i didnt notice
yea
send image link
link? mm i am not using a link any more
i am use the path
OH use absolute path
yea
oh
wait
huh?
im guessing 
oh
doesnt link it properly
add ur url in front
the website url?
oooh
:(((((
still the same
rippers
:C
its sad because i spent like an hour on this
ayyyyyyy
no way
ayyyyyyyyyy
woah
what was it
i added in <meta name="theme-color" content="#222">
and
i checked
and it worked
lmao nice
yea
Please help me
What?
wut
π€
π€ 
Hello? We are looking for a bot developer for our bot!
Dat name lol
No
oh
Xx
I just like the nick

Prob provkde some info on what's the idea of it etc..
what?
And maybe some1 will help
oh
ok
Our bot is very new... We are concentrating on moderation along with some utility....
Looking for a person who can help... 
P aid ye or nae
What
Are u gonna pay, yes or no
No, But you can get to be part for our team...
Ok now just wait some1 will prob dm u
Have a little faith.
I bet you...
wat
We are looking for a bot developer for our bot
Our bot is very new... We are concentrating on moderation along with some utility....
Looking for a person who can help... 
What language and library
@amber junco be more clear about this
@uncut delta Yes, See your bot is still very new... and we need a good bot developer (Because our currebt one is very rude) Unfortunately we are not offering a pay. But if the bot grows you can have a decent title... Dm me for more info.
@earnest phoenix We are running discord.js

you don't need to tag people when your responding to a message they sent a few minutes ago
sorry
no money no bot :^)
Yeah
lmao
hey guys can anybody make me a generic bot that there are already so many of
oh btw i wont pay you
we pay with exposure

a bot developer which isn't the developer 
we all do at some point in time
PYTHON
Hey,
I want to round numbers to 0 decimals but if you round 2.5 to 0 decimals, it would be 3 right?
print(round(2.5))
>>> 2
How can I let 2.5 be rounded to 3?
(yes it's in a bot program, but like this it's easier to understand the problem)
floor(x + 0.5)
ceil(x)...
Why my bot on page is offline https://discordbots.org/bot/490883463939883009 ?
because its not in this server 
How add him?
Bots kicked
Please go moderator

Nice.
Ummm.. Hello My bot isnt working
When I type node index it sends out an error message
use node index.js
send the error message then..
Shouldn't matter if the command was ran in the right directory
node index or node .
t!i
How can I know the lastest server my bot has joined?
you don't
n't
when your bot is added to a server save that somewhere and that will be the last server
@waxen quest
smart π€
how can I change the perms for @everyone and set it so only one person can view it
VIEW_CHANNEL: true,
SEND_MESSAGES: true,
ADD_REACTIONS: false
})
msg.guild.channels.forEach(async (chat, id) => {
await chat.overwritePermissions(member, {
VIEW_CHANNEL: false,
SEND_MESSAGES: false,
ADD_REACTIONS: false
});
});```
Cannot read property 'overwritePermissions' of undefined?
Means chat is undefined, make sure its defined before the usage and itβs defined in the right scope

@idle mountain how can I change the perms for @everyone
Use guild id
There is, guild.defaultRole, but guild id also works and is less letters to type
if(response.toLowerCase!=='yes') return msg.channel.send("Canceled!")
why does that say cancelled to everything
what is response
also i need to know what is response
var response = await msg.channel.awaitMessages(msg2 => msg2.author.id === msg.author.id, {
maxMatches: 1,
time: 15000,
errors: ['time']
});
embed.setTitle("Done!").setColor("GREEN").setDescription("Selection canceled!")
}```
yeah
thats why
Also, response is a collection
also by your if statement if the message is unequal to "yes", it'll just say that
TypeError: response.toLowerCase is not a function
Again, response is a collection
^
toLowerCase only works on string type iirc
going by your code it would be js if (response.first().content.toLowerCase() !== 'yes') { ... }
hello I need help it keeps saying invalid server format what dose that mean
told u 3 things u did only 1

what library do you use
and whats the code that has the error
what do you mean library
just post your code then
not for your server π
where does it say invalid server format?
were it says what server is this bot in
in the website?
but in the discordbots website?
so yes, in the website
u need the server's id not invite
after u turn on dev mode
and the server has to be on the website
idk if it is
I got that but now it says this
were do I get that
did you create a bot account in the discord developer website?
a liitle
.>

now it says
You put your bots client Id not itβs token
Two ways you can right click your bot and copy id or on discord developers page it displays your bots client id
Oh on Discord applications
were that
Step up your game with a modern voice & text chat app. Crystal clear voice, multiple server and channel support, mobile apps, and more. Get your free server now!
by the way @earnest phoenix
your bot will probably be rejected if you apply it like that
to apply a bot to the website, it needs to at least be functioning
I'm not applying it like that lamo
@coral trellis from that were do I go to create the account
well, you're trying to add a bot that doesnt even exist yet, let alone work
There is a tab on the left and you go down to bot
k
@quartz kindle it dose work not that well but the owner knows what he is doing
im confused
do you already have a working bot?
if so, why are you trying to add a new, non-existing bot, instead of adding the one that exists and works?
idk what the hell the owner is trying to do
lmao okay
but if you're trying to add his bot, tell him to send you the bot's client ID then
you have to code it
k
or he has to, if he's working on it
you know the bot account in the discord developer website? there is a "bot token" somewhere in there
a bot token is the bot's login password, basically
you have to create a program that connects to discord and uses that token to login.
then the bot will become online
k
Hi
Are someone know how to make when user update their avatar i can logs it ? In discord.js
something like client.on("userUpdate") i think. is there any list of client events? i only found websocket events






