#development
1 messages · Page 1343 of 1
user.presence.status is working for bot but when i loggin isnt working @opal plank
this should probably work idk
@eternal osprey just for record that was when I wasn't having a good cam and neither was I grown up
Now if you can stop sending my pictures it would be really appreciative
Yes
idk if intents come with it
@delicate shore 6 months ago.
though i KNOW you can fetch status from API even without shared servers
My bot wasn't even able to fetch invites
can't remember people growing up so fast.
Cannot read property 'status' of undefined
That's also under intents I guess
@nocturne sparrow you likely dont have intents
what
someone please do the -checkdm or what was the tag called
yeah it worked @small prairie
intents are now required to fetch that data
though i KNOW you can fetch status from API even without shared servers
@opal plank You can?
yeah
member or user object?
@eternal osprey at least I'm not a nerd like you who is afraid of showing his face Publically because know that people are gonna shit on you
in the /users endpoint
Interesting
lemme just triple check making sure im not bullshitting
Now if you don't mind let's take his to dms
wew
Definition of "user" req.user
hmmmm
req.user.presence.status
take this to dms or mods pls mute thanks
@delicate shore so i am a nerd for not showing my face on youtube?
i am using user.presence.status
what is that for stupidness
No
Hello this isn't the channel for arguing
or your personal shit
it does NOT return status
sure 😉

thanks
its been almost 5 or 6 months since i done my info command
He sent my pic in this channel without my consent @slender thistle and every time I try to end conversation he starts again
@opal plank how i can do
now stop.
right sorry i came here before with
embedMsg.message.react('735903870609391657') and after getting advice changed it to embedMsg.react('735903870609391657') but it still won't work. sorry i am very new to coding and also very stupid
so i understand what you have done now @small prairie , how would i implement a space after every string?
@opal plank i don understand
@eternal osprey ID is basically a string
just add +" " to add a whitespace after the ID
I'm logging in already
its returning a string
make it return whatever more u want it to have
tag or wahtever
@nocturne sparrow Since a month and a half ago iirc, INTENTS were introduced to discord, and the one you want is under PRIVILEDGED_INTENTS, meaning you have to go thru verification on discord to have access to that info. your bot wont recieve updates regarding user status UNLESS you have those intents enabled
Actually unverified bots do have access to this 😉
MEMBER_UPDATES iirc
Which one is best for mongo DB
AES or Google or azure
right sorry i came here before with
embedMsg.message.react('735903870609391657')and after getting advice changed it toembedMsg.react('735903870609391657')but it still won't work. sorry i am very new to coding and also very stupid
@dark grove just do message.react
Aws*
im not sure they do anymore @umbral zealot
Yes
Not privileged one
that was not what i meant. Sorry my mistake.
I'm actually sure they do. The option isn't locked for priviledged intents on small unverified bots.
use \n then
dont you lose that once you get past 76?
dont you lose that once you get past 76?
@opal plank yes
see?
my bot isnt verified and doesnt recieve those anymore
u need to be verified after 76 for priv intents
Once you verify, whether it's 76 or 100, you lose them (unless you've requested them)

why are there comma's tho?
What API can I use to make my bot automatically edit the values in quick.db
Ye
Alright well, I guess after 76 guilds it locks. odd, I didn't think that happened.
He means the msg
What API can I use to make my bot automatically edit the values in quick.db
@delicate shore API for that? isnt quick.db an npm package
Ye
you can theoretically create your own API
afaik quick.db is a local Db wrapper
why is my code adding the ,
you can theoretically create your own API
afaik quick.db is a local Db wrapper
@small prairie
Ok
@eternal osprey dunno, what's your code?
client.on("message", async message => {
if(message.author.id === "345138133429649408"){
if (message.content.startsWith(prefix + "list")){
const list = client.guilds.cache.get("734123033782124575");
fs.writeFileSync("./memberlist.txt", list.members.cache.map(member =>{return member.user.id + "\n"}));
sentMessage = await message.channel.send("<@" + message.author.id + ">" + " The member list has been updated!")
sentMessage.delete({ timeout: 15000 })
}
}
@eternal osprey map here is returning an array afaik
pretty sure the reason for this is that your array is joining automatically
instead of doing a map() with a \n, just do a .join("\n") instead.
actually you need to do .map() to get the id, then .join() to link them together
¯_(ツ)_/¯
also I dont think collection has a join method
how can i read the last message the bot sended?
hey peeps
this is my code: js fs.writeFileSync("./memberlist.txt", list.members.cache.map(member =>{return member.user.name + " " + member.user.id}).join("\n"));
undefined 383395158441328641
undefined 388583457779089412
undefined 413548946661703680
undefined 497126721972207639
undefined 745253908275920986```
doesn't seem to be finding the usernames?
member.user.username
ah
@jovial nexus GuildMember#lastMessage https://discord.js.org/#/docs/main/stable/class/GuildMember?scrollTo=lastMessage
message.guild.me.lastMessage irrc but I could be wrong
imagine spooning
then get the most recent one

if its cached it will be stored in lastMessage as well
what's recommended to use ssh?
my host help center said use putty
do i not use something from the ssh website?
putty for windows? thanks!
imagine not using ubuntu wsl
PuTTY is decent
I use putty, works fine for me
thanks :)
winscp for a ftp-like client to transfer any files
I use FileZilla for ftp stuff it gud
well I have 32gb of ram and a 2700x so I have ram and cpu to spare
i was told here last night to get ssh setuo
Oh god ionos, I utterly hate that company
I prefer winscp for transfer
why hate ionos?
meh filezilla is great except for its bloody installer which has ads
someone else is paying for me cuz im working for them lol
if i already use WinSCP do i still need an ssh connection, i was really encouraged last night to do so
Ionos, are very disappointing imo. Support is really bad too.
However if your not the account holder then nothing to worry about there haha
true, iphone told me "Call Failed" 3 times in 30 mins when i was talking with them
my friend got some discount
WinSCP doesnt replace ssh
i have 4% cpu usage
its just for file transfer
2GB ram, running 530 servers
no issues
ah okay
so what exactly should i be using ssh for
since i'm 100% new to it
getting access to the server
ssh access so you can configure things
like what
Should I learn JS Maps or discord.js Collections?
depends on what you use them for
collections have more than maps ik that but maps are pretty good still
djs collections are maps just with more fancy methods
yes
and i can't import a 10000 character djs webpack script only to use smth which is basically a map
million i get that it's a terminal
but how would i use it if i can already access a (bad) file manager, console with buttons, and other settings
@earnest phoenix you can always just abstract the collection logic from djs
it isnt something difficult either cause most collection methods just rely on turning the map into a key/value array
[object Object]
jk
I realize by sending that it makes me look like a selfbot
fuck
and i can't import a 10000 character djs webpack script only to use smth which is basically a map
@earnest phoenix just grab their collection package @oblique condor/collection
bruh
discord
the collection package is in ts
loll
if you set the ts compiler settings correctly
compile :)
How can i set a STREAMING rich presence for a bot? (With twitch link)
How can i set a STREAMING rich presence for a bot? (With twitch link)
@radiant vigil type: "STREAMING"
how can i do message.guild.me.lastMessage.content without defining message?
the last message of the bot
U can do client.lastMessage I think if not u can make ur own method
u cant
Then make ur own method
if(client.lastMessage.content.includes(newPresence.user))return undefined;
TypeError: Cannot read property 'content' of undefined
Save the last client’s message in like client.lastMessage, then make a method to get that last message
is there a way to get the client member without definign message?
Oh wait @jovial nexus u can do client.user.lastMessage
ahaaa
message.guild.me.lastMessage is the bot's last message in that guild
Oh wait @jovial nexus u can do client.user.lastMessage
@tulip ledge dont work
yes
i want to get the last bot message no matter the guild
client.user.lastMessage worked for me
without defining "message"
never mind
then why does this if(client.user.lastMessage.content.includes(newPresence.user))return undefined; give error?
I can't get data using mongoDB
Bumping my question because even shivaco (a mod) does it
.notif { max-width: 700px; max-height: 250px; min-height: 100px; overflow-wrap: break-word; }but the text still goes off the border of the element. Why? (it's a
<p>element inside a<pre>element btw)
let doc = Guild.findOne({id: msg.channel.id}).then(guild =>{
msg.channel.send(guild.prefix)
})```
I am using this
But it isn't working
I don't know if I'm doing wrong
I just started using it
I’d need to look at my bot, prefix Is changeable on the website etc
Ok
let doc = Guild.findOne({id: msg.channel.id}).then(guild =>{ msg.channel.send(guild.prefix) })```
@delicate shore are you exporting a mongodb collection in ./models/settings.js?
It was my friend and I first time using mongo, it took a lil getting used to but when we got it right we released how simple it was. Ima leave it to the smart lads to answer hehe
@delicate shore are you exporting a mongodb collection in
./models/settings.js?
@earnest phoenix
Yes
const mongoose = require("mongoose");
const Guild = new mongoose.Schema({
id: {
type: String,
}, prefix: {
type: String
}
});
module.exports = mongoose.model("Guild", Guild);```
thonk
How I write -
const Guild = require('./path/to/schema')
const data = new Guild({
id: "guild ID here",
prefix: "guild prefix here"
})
data.save()```
can you do findOne on a "mongoose model"

@earnest phoenix dont u need to put the overflow on the parent?
try js client.guilds.cache.reduce((x, y) => (y.me.lastMessage || {}).id > x.id ? y.me.lastMessage : x).content; this gets the last message sent by the client by reducing its guilds. the accumulated value will be changed if the next message id is newer than the previous one. the || {} before id is needed since guild.me.lastMessage can be null.
ps you can replace(y.me.lastMessage || {}).id to y.me.lastMessage?.id if you're on node v14.
@jovial nexus
@earnest phoenix dont u need to put the overflow on the parent?
@tulip ledge i'll try and see
:(
@earnest phoenix dont u need to put the overflow on the parent?
@tulip ledge nope still not working
ok
also do you guys care if my CSS stylesheet is cluttered with !important?
cuz it is
who is developer of abc.db
who is developer of abc.db
@delicate shore callum aka arch's demise
K
still no work 
lemme try changing the overflow-wrap to anywhere
nope not working
MDN GET IN MAH BRAIN
Applies to non-replaced inline elements
maybe this?
is there a way to use the API to check if a bot is online from a website?
is there a way to use the API to check if a bot is online from a website?
@ripe quest i don't think so
but you can just find a mutual server (or not iirc) with the bot user and see if it's online (presence priveleged intent needed)
try
js client.guilds.cache.reduce((x, y) => (y.me.lastMessage || {}).id > x.id ? y.me.lastMessage : x).content;this gets the last message sent by the client by reducing its guilds. the accumulated value will be changed if the next message id is newer than the previous one. the|| {}before id is needed since guild.me.lastMessage can be null.ps you can replace
(y.me.lastMessage || {}).idtoy.me.lastMessage?.idif you're on node v14.
@pale vessel that says ```if(client.guilds.cache.reduce((x, y) => (y.me.lastMessage || {}).id > x.id ? y.me.lastMessage : x).content.includes(newPresence.user))return undefined; // <-
^
TypeError: Cannot read property 'includes' of undefined```
That was for another person
Ohh
read the msg man xd
@jovial nexus probably means that there is no last message from the client
wait
Hes doing it wrong
just did $eval message.channel.send("test")
client.guilds.cache.reduce((x, y) => (y.me.lastMessage || {}).id > x.id ? y.me.lastMessage : x).content
U dont put a ternary operator in an if statement lol
you can
it's inside the reduce function
not in the if statement directly
@jovial nexus did it work?
nope, it cracshes
@tulip ledge got the problem

the <pre> forces it to be displayed as it is
changed it to <div>
sooo
hey does anyone know how to make commands that will put your pfp to a pic or a gif?
hey does anyone know how to make commands that will put your pfp to a pic or a gif?
@sly marten privacy breach so discord won't allow that
What library are you using
@errant current I don't understand what you're talking about, you don't have to use cogs
(if you're trying to change a user's pfp)
Well how the hell else then
Look at the example
All the example code is in py and i had so much pain with APIs with libraries i refuse to use them
you can change the bot's pfp tho when the bot is restarted it will be reset to the default on the dev portal
you can change the bot's pfp tho when the bot is restarted it will be reset to the default on the dev portal
No?
Also could you be clear on what you want to do nick. Do you want to display the user's avatar? Do you want to try setting the user's avatar to something? Who's?
and code913 that's not true
You need a token, and a DBLClient
Why not a normal oldschool API link is that so hard
I have around 50 things i need to add to an embed, and adding all really clogs up a channel. How would I make it such that it shows 10 in each page and you can move forward by clicking an arrow emoji>
the API is 0 documented actually which is quite funny
the only reference is the base url
You can use the dblClient wherever you want
???
i can do maybe 2-3 lines with api links
@sly marten privacy breach so discord won't allow that
@earnest phoenix oh cus bots like dank memer have these commands
All the info is in the docs
I have around 50 things i need to add to an embed, and adding all really clogs up a channel. How would I make it such that it shows 10 in each page and you can move forward by clicking an arrow emoji>
@earnest phoenix use reaction-based pagination.
What are you trying to do
for some reason
Bro literally half of that is comments
Post shit to the API whichs base URL i know but nothing more
it shows me this error:
Command raised an exception: RuntimeError: PyNaCl library needed in order to use voice
How can I fix it?
install it
install PyNaCL
Yes
I dont want to upload the code
Import it
Is it so hard to just.... reference the actual API, with links, instead of libraries
https://top.gg/api/docs#reference This helps nothing
or just press Ctrl + Shift + S to open Shell and install it @modest smelt
Why tell me how to use the authorization header if there is literally nothing i can use the link for
you can access a bash shell through that
ofc
what is command for that?
idk how to install python modules but I'm sure repl already has pip installed
on mac
https://pypi.org/project/PyNaCl/ @modest smelt
repl is hosted on linux...
It is documented btw
thanks @zealous sable
where so
see the Resources section
Are you not willing to read
no lol
It's literally documented https://puu.sh/GFYpg/dbc06ee718.mp4
make a proper API
@Toothy#5108 you're complaining for no reason
how can i get pynacl on repl?
You literally don't have to put it in a cig anyway
how can i get pynacl on repl?
@modest smelt IMPORT IT!!!
I DID
import pynacl
bro install it then import duh
go to installed modules
What does it say
bro install it then import duh
@earnest phoenix you don't have to do that on repl
What does it say
how the fuck would repl pre-install 100000000 modules
oop nvm
i search up pynacl
@modest smelt take a picture and send a list of the installed packages
i screwed up my spelling
Bruh

@earnest phoenix thats not true
any other files calling for imports are ignored and won't install their proper modules
..have you used repl?
it happens in node.js repls
node.js is not python
uncap
lowercase
why would they specifically check all files only in python
all lowercase
Change it to pynacl

:confusion:
:sad:
Can you please send a list of your installed packages
I don't think repl has a console you can use
no @zealous sable
Can’t you do the pip install on repl.it?
@zealous sable yes you can but thse guys ignored all my msgs
Home computer
THAT DOESNT MATTER
YOUR HOME COMPUTER IS NOT REPL
EXACTLY
lmao
so wat should i do now?
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='!')
left = '⏪'
right = '⏩'
messages = ("1", "2", "3")
def predicate(message, l, r):
def check(reaction, user):
if reaction.message.id != message.id or user == bot.user:
return False
if l and reaction.emoji == left:
return True
if r and reaction.emoji == right:
return True
return False
return check
@bot.command(pass_context=True)
async def series(ctx):
index = 0
msg = None
action = ctx.send
while True:
res = await action(content=messages[index])
if res is not None:
msg = res
l = index != 0
r = index != len(messages) - 1
if l:
await msg.add_reaction(left)
if r:
await msg.add_reaction(right)
react, user = await bot.wait_for('reaction_add', check=predicate(msg, l, r))
if react.emoji == left:
index -= 1
elif react.emoji == right:
index += 1
action = msg.edit
bot.run("SECRET TOKEN")
How would i make the messages (1,2,3) into embeds?
@modest smelt they're saying use the command line/console on repl
PLEASE RUN CTRL + SHIFT + S AND TYPE PIP INSTALL PYNACL AND FOR FUCK'S SAKE LISTEN TO ME FOR ONCE
there is no command line
That's what I thought
nothing pops up @earnest phoenix
@earnest phoenix You probably want to create an embed and set each element of the tuple as the field

nothing pops up @earnest phoenix
@modest smelt internet speed slow it usually takes like 7 seconds to load for me
Lmaoo
P? it's S for me smh
nothing pops up
yeah it's S only for node repls my bad
I swear if I have to make a repl.it account just for this
@zealous sable why not register with github
I swear if I have to make a repl.it account just for this
@zealous sable you don't have to make an account to create repls
@slender thistle is it alr if i use a list?
ok what should i search up to find the terminal?
wait
@earnest phoenix Are you familiar with the difference between lists and tuples?
oh they meant Ctrl + Shift + P opening up the commands stuff then typing shell
Ctrl + Shift + S directly opens shell tho
To answer your question though, yes you can use a list
Oh idk I just googled it and that answer said do P and then type Open Shell
kk
ok
Is that a yes..?
U got it MisterBlov?
Successfully installed pynacl-1.4.0
Now import and use it the way you wanted it to
what should i import?
pynacl
import pynacl?
Yes
that don't work
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
What error does it give
That's not the problem
haha thats not the problem
@sage bobcat
I think you should learn
Python
@sage bobcat he does how to do python he's just confused between three people telling him different stuff
One message removed from a suspended account.
ye
..could it be imported as pynacl-1.4.0
i tried that
@earnest phoenix now what?
@modest smelt I'm not a python dev
Might be a dumb idea
i only gave you instructions to install PyNaCl
You could try installing from here: https://github.com/pyca/pynacl
Yes
?
No I mean import it
import git+https://github.com/pyca/pynacl.git
shell?
I don't think shell is reliable
yeah
Else you have to run that every time
ye
\❤️
Yeah and you can just use as to call it pynacl
You probably knew that though
Wait I might be wrong 🤷
I was trying to get my bot to auto-assign roles when people react with certain emoji, this is my code:
const emoji = require('discord.js');
module.exports = bot => {
const channelId = '768951548684271617';
const getEmoji = emojiName => bot.emojis.cache.find(emoji => emoji.name === emojiName);
const emojis = {
TEST: 'ROLE',
};
const reactions = [];
let emojiText = 'Add a reaction to claim a role!\n\n';
for (const key in emojis) {
reactions.push(emoji);
const role = emojis[key];
emojiText += `${emoji} = ${role}\n`;
}
firstMessage(bot, channelId, emojiText, []);
};```
But the replied message always ends up being:
```Add a reaction to claim a role!
[object Object] = ROLE```
And idk why it shows as [object Object] rather than that emoji
i made it just for ths to test it out
You got an emoji and assigned it to getEmojibht you never used it
oh
Yeah
how do you open links in new tabs?
?
Cntrl click
click them?
how do i make it so it opens in new tab by default
឵឵
@modest smelt uhh how did you send that
How do I get data in Mongose
Like we do dB.get() in quick.db
So I shift to mongoose using ABC.db
Now how can I get data from that
how do i make it so it opens in new tab by default
@earnest phoenix maybe there's a web store addon
vanilla js
@hollow sedge it didn't work
@modest smelt what didn't work
how do you open links in new tabs?
@earnest phoenix wdym?
Look idk man, you have installed it in every way possible you must be missing something
hmm
ok so my code looks something like this:
@bot.command(pass_context=True)
async def series(ctx):
index = 0
msg = None
action = ctx.send
while True:
res = await action(content=messages[index])
if res is not None:
msg = res
l = index != 0
r = index != len(messages) - 1
if l:
await msg.add_reaction(left)
if r:
await msg.add_reaction(right)
react, user = await bot.wait_for('reaction_add', check=predicate(msg, l, r))
if react.emoji == left:
index -= 1
react.emoji.remove
elif react.emoji == right:
index += 1
react.emoji.remove
action = msg.edit
It doesn't remove the reaction, because it shows an error.
AttributeError: 'str' object has no attribute 'remove'
@slender thistle lord python somebody here needs help
how should i fix this
This is all the documentation for it @modest smelt https://pynacl.readthedocs.io/en/latest/
i have an <a> element on my webpage and when i click it it opens the link in the same tab. ik i can Ctrl + Click but i want it to open in a new tab by default
You got an emoji and assigned it to
getEmojibht you never used it
@hollow sedge right sorry but how can i use it in my code? sorry i am very stupid and very new to coding
i have an
<a>element on my webpage and when i click it it opens the link in the same tab. ik i can Ctrl + Click but i want it to open in a new tab by default
@earnest phoenix add target="_blank"
target="_blank
yos
Oops I was bet
@hollow sedge right sorry but how can i use it in my code? sorry i am very stupid and very new to coding
@dark grove all good lol, I'm glad I could help you
We all have to start somewhere
yeah
you're not born with superpowers actually you are you have the power to cry like fuck
does anyone know the fix for my code?
but can you tell me like what to change? i don't really get how to replace TEST with getEmoji
hi
hi the guy that renamed channel to chn
@dark grove what do u need
ok so my code looks something like this:
@bot.command(pass_context=True)
async def series(ctx):
index = 0
msg = None
action = ctx.send
while True:
res = await action(content=messages[index])
if res is not None:
msg = res
l = index != 0
r = index != len(messages) - 1
if l:
await msg.add_reaction(left)
if r:
await msg.add_reaction(right)
react, user = await bot.wait_for('reaction_add', check=predicate(msg, l, r))
if react.emoji == left:
index -= 1
react.emoji.remove
elif react.emoji == right:
index += 1
react.emoji.remove
action = msg.edit
It doesn't remove the reaction, because it shows an error.
AttributeError: 'str' object has no attribute 'remove'
how do i fix this?
anyone has the idea for code of reducing bot bandwidth so it works faster
@dark grove what do u need
@ionic dawn give me a seconds to copy my previous message
bruh
right so I was trying to get my bot to auto-assign roles when people react with certain emoji, this is my code:
const emoji = require('discord.js');
module.exports = bot => {
const channelId = '768951548684271617';
const getEmoji = emojiName => bot.emojis.cache.find(emoji => emoji.name === emojiName);
const emojis = {
TEST: 'ROLE',
};
const reactions = [];
let emojiText = 'Add a reaction to claim a role!\n\n';
for (const key in emojis) {
reactions.push(emoji);
const role = emojis[key];
emojiText += `${emoji} = ${role}\n`;
}
firstMessage(bot, channelId, emojiText, []);
};```
But the replied message always ends up being:
```Add a reaction to claim a role!
[object Object] = ROLE```
just send the link to it
No idea about py sorry
sorrysorry
lol
didnt mean to spam it
anyone has the idea for code of reducing music bot bandwidth so it works faster
Pastebin
https://hasteb.in for posting big ass blocks of code
anyone has the idea for code of reducing music bot bandwidth so it works faster
@earnest phoenix server muted
Pastebin
@ionic dawn
@earnest phoenix server muted
@ionic dawn did it still it keeps cutting out sometimes and not for me only
Server mute will decrease the bandwith usagw
Deaf
yh i did that still it kinda slow and cuts out sometimes
Do you have a good host?
for fixing it?
i use glitch.com
@earnest phoenix GLITCHIS
NOT
FOR
BOTS
read pins
it is
Why dont you use a proper host/vps
^
Like digitaloceans / OVH
eek
or even at least something that allows bots like repl.it
glitch and heroku are against bots
Any free discord bot hosting
@radiant vigil
i use a site called glitch.com there are no file to put on herouku and i dont thing that will keep it really for 24/7
Nothing is free and works well

You still had to pay for the thing you are self hosting on didnt u?
Nothing is free and works well
@zealous sable its a bot not a site im using to host it
self hosting
@viscid gale still gotta pay for electricity
but if electicity goes out
@earnest phoenix just run your bot on a decent vps
@ionic dawn hmm now whats vps
@viscid gale still gotta pay for electricity
@dark grove i mean, ur parents do, not u specifically ;]
My bot have music and never slows down
Free hosting is not good or meant for 24/7 bots
Do u have knowledges about any linux distr? @earnest phoenix
@dark grove what would dis do?
@earnest phoenix auto assign roles to people who react with a certain emoji
nope im new to coding 🙂

You can get a vps for under 10 dollars a month, damn even ~5 dollars
the emoji i was using was one i made called "TEST"
ur new to coding and the first thing u do is make a bot?
nope im new to coding 🙂
@earnest phoenix being new to coding and making a bot is the worst mixture ever known to mankind
wow we as coders r limiting ourselves :{
so bruh any ideas like code just to copy paste

you know what google got the answer some wher
so bruh any ideas like code just to copy paste
@earnest phoenix copy pasting code is bad
@earnest phoenix change to reaction.remove()
thats a mean move >:(
@earnest phoenix being new to coding and making a bot is the worst mixture ever known to mankind
@earnest phoenix yh i use youtube like any idiot with coding knowledge would
Please don’t copy and paste a bot
And claim as yours
@zealous sable both because that's being [CENSORED] and against copyright law
@earnest phoenix you need to read more about bots/js/vps/linux
And ull solvenur problems
i'm new aswell but youtube guides always end up not working, either the guy is on an older version or he forgets to put brackets somewhere and you are left wondering what you did wrong
@earnest phoenix yh i use youtube like any idiot with coding knowledge would
@earnest phoenix youtube tutorials never tell people to learn actual fucking coding before trying to makea bot they're jsut trying to milk ad money out of you
@earnest phoenix you need to read more about bots/py/vps/linux
@ionic dawn
@earnest phoenix change to
reaction.remove()
@hollow sedge thx
@hollow sedge thx
@earnest phoenix np
I asure you someone did or have the same issue you had, so you just need to research
discord.js
open shell
node path/to/program
But asking for code is gross
if you want to make a bot without programming good luck on not giving up like me and taking an 8 month break then coming back to bot development
But asking for code is gross
@ionic dawn also, if you want code, just go on GitHub lol
(I don't recommend)
@earnest phoenix youtube tutorials never tell people to learn actual fucking coding before trying to makea bot they're jsut trying to milk ad money out of you
@earnest phoenix truer words have never been said
Just saying, no point in asking here
cloud fox pls don't troll
Do you guys know if a user account can technically access a list of all of the users in a server, even if it cannot see them in the member list?
Yeah, I mean, when I dont know what a piece of code do I try to atleast read it and understand it
if you want to make a bot without programming good luck on not giving up like me and taking an 8 month break then coming back to bot development
@earnest phoenix i feel a dani refrerence
cloud fox pls don't troll
@earnest phoenix ?? How am I trolling?
Theres no point on copy random studf
Yeah, I mean, when I dont know what a piece of code do I try to atleast read it and understand it
@ionic dawn i understand but not know how to write it
lol
@earnest phoenix ?? How am I trolling?
@ionic dawn also, if you want code, just go on GitHub lol
@hollow sedge some people literally follow stuff like this if someone even says it as a joke
@hollow sedge some people literally follow this if someone even says it as a joke
@earnest phoenix mb I shouldn't have said that
I meant it as a joke tho
@earnest phoenix 
Try to learn
@ionic dawn where would i find the ultimate guide to discord.js
@ionic dawn i understand but not know how to write it
@earnest phoenix i wouldn't call that understanding
wow discord is making people want to code
discordjs guide
that is interesting
djs docs
interesting
alr cya
ima try that
wow discord is making people want to code
@viscid gale no it's just that people want to chill with bots @ home
If my bot is passing 100 invites my bot will automatic have verify right
DiscordJS documentation is very good, I’d suggest starting there
If my bot is passing 100 invites my bot will automatic have verify right:dankmemerflush:
@hushed axle no
Bots in discord are the same as redstone in minecraft
If my bot is passing 100 invites my bot will automatic have verify right:dankmemerflush:
@hushed axle you still need to apply
DiscordJS documentation is very good, I’d suggest starting there
@zealous sable you mean the guide?
@viscid gale no it's just that people want to chill with bots @ home
@earnest phoenix those r ppl who add bots, ppl who make bots r different
No the documentation
that's not what i meant...
@hushed axle you still need to apply
@abstract coyote I think it's actually 75 invites too
oh yeah
It's just that at 100 invites, you must get verified
so what did u mean?
Dont read the docs if you dont know anything about JS lol
Is like reading a chinese book before learning chinese
yeah u can't get any more invites over 100 if you aren't verified :c
OK so @hollow sedge, I did react.remove but then it raised this error.
TypeError: remove() missing 1 required positional argument: 'user'
Next, I did react.remove(ctx.author) and it raised this error.
react.remove(ctx.message.author)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback```
Await it
oh ok
@earnest phoenix
Do I need to tell the moderator or just wait for verify
to the people who feel like learning to code just to make bots, lemme say, u can't stop there, take it further
They'll send you a message once it reaches 75 invites I think
@hushed axle what?
Pass it, to the ends of the EARTH :}
you should have an option in your dev portal to verify
and then wait a bit, and you should get a response
@hushed axle after reaching +75 servers the bot owner receive a DM from the system asking you to apply for verification
ohhh ok thanks
THanks so much! @hollow sedge
If you reach +100 without it your bot wont be able to join more guilds
THanks so much! @hollow sedge
@earnest phoenix np!
to the people who feel like learning to code just to make bots, lemme say, u can't stop there, take it further
@viscid gale there are no people on discord who learn code before making bots
@hushed axle After the apply youll have to wait aprox 6 weeks
@viscid gale there are no people on discord who learn code before making bots
@earnest phoenix this is true, and it's very sad
He meant many people, not ALL people
honestly.. i learned from playing up with chrome..
@hushed axle but thats not the place to ask, theres an official discord server that give you support on the verification: discord.gg/discord-developers
I've never dealt with people who try to learn coding before trying to make discord bots
oh many?... BRUH
I've never dealt with people who try to learn coding before trying to make discord bots
@earnest phoenix what?
that sounds VERY SAD
Again, he means many people
how is it sad just because I've never dealt with some doesn't meant there aren't
i mean... if making a bot is all they learned coding to do
it's a waste :{
cuz chances r
they just gonna drop coding once they made the bot
True
it's a waste :{
@viscid galeSyntaxError: You're not supposed to use '{' in an emoticon :(
Rip
code weeb
@viscid galebut i watch pokemon not anime
🗿
hmm
everyone be talking about discord.py and discord.js but no one is talking about discord.text
yea but im using the concept of obsession to relay a point
would anyone be able to help me out with an oauth2 error?
i was about to say asking what the error is would be better
lol
I started coding for bots @viscid gale. One difference compared to most is that I at least di my best not to harass, and did tons of research on internet and learned to code before trying to code a bot tho. I still mainly focus on bots and stuff since im just a hobby programmer, but now its moved to programs for other things as well at least, like website and solving challenges efficiently related to games, to get data.
okay nvm i fixed it lol
.style("opacity",(d) => { return --d })
.delay(100)
how can i make D3 repeat this exact piece of code in a transition for as many times i want?
I started coding for bots @viscid gale. One difference compared to most is that I at least di my best not to harass, and did tons of research on internet and learned to code before trying to code a bot tho. I still mainly focus on bots and stuff since im just a hobby programmer, but now its moved to programs for other things as well at least, like website and solving challenges efficiently related to games, to get data.
@waxen tinsel so ur a success story, NICE :}
Guess what
i do like that discord is making people want to code
and i hope the people who were inspired by it go deeper into coding
i can't survive without programming for atleast half the day :P
@waxen tinsel so ur a success story, NICE :}
@viscid gale stahp that curly bracket looks like a twisted lip
Yeah, but there are defs a lot of people that just drop it or harass actual devs instead of trying themselves. Which I personally think is pointless since they can either get the satisfaction of learning and understanding it themselves. Or i guess the satisfaction of copy pasting from Stack Over Flow. As long as they are not harassing support servers lmfao
wtf are you guys doing spamming the star button is killing #starboard
no it was that Pmblue was tryna star themselves
lol
if this is the story of how im gonna get kicked from here smfh
@viscid gale what lib btw?
Atleast most of you peeps here have been begged from someone to teach them right?
yes. And yes @weary ridge, which is ironic since I am a self taught dev who is essentially a noob in disguise
we all self taught coz that's what makes us real devs heeheh
real devs, fake devs
i cudnt care
once u can solve a problem using programming, ur a coder
no
look, there might be script kiddies among what i described
Define solve a problem
but it's a waste of breath getting all heated up about it

Define solve a problem
@waxen tinsel u had to, didnt u
smh
achieve a goal u wanted using code
without copy pasting
This is supposed to make thebot add some emojis then delete the message 5 seconds later, but it isn't being deleted. Did something change about reaction.message.delete in v12?
.then(reaction => reaction.message.react('735903836727935098'))
.then(reaction => reaction.message.react('760479793220419645'))
.then(reaction => reaction.mesage.delete(5000))
.then(msg => console.log('Message had been deleted!'))
.catch(err => console.error);```
imagine copy and pasting...
how can i solve this problem?
For some reason it logs "Cannot read property 'position' of undefined"
if (args[0].toLowerCase() === "delete") {
const role = message.guild.roles.cache.find((role) => { return role.name === args.slice(2).join(" ") });
if (message.guild.me.roles.highest.position <= role.position) return message.channel.send("My role is lower than the role you're trying to delete");
}
But it doesnt do that in this case
if (args[0].toLowerCase() === "add") {
const role = message.guild.roles.cache.find((role) => { return role.name === args.slice(2).join(" ") });
if (message.guild.me.roles.highest.position <= role.position) return message.channel.send("My role is lower than the role you're trying to give");
}
(Role is defined outside of those if statements, added them so it makes a bit more sense in here)
how can i solve this problem?
@lofty grove that is in a different server to answer that
u need to get verified
how do u not know this by now??
to have that problem enough servers need to have your bot
and where were u when the ENTIRE HYPE was going around about discord bot verification
Are you talking about this verification?
and where were u when the ENTIRE HYPE was going around about discord bot verification
@viscid gale I was in the army
umm
ok i cant paste the invite here
https://discord..gg/discord-developers
ok that with 1 dot

;]
hmm what would you think you have a domain/web being hosted on a server would you rather also host your bot on the same server or put the bot in a completely different server?
This is supposed to make thebot add some emojis then delete the message 5 seconds later, but it isn't being deleted. Did something change about
reaction.message.deletein v12?.then(reaction => reaction.message.react('735903836727935098')) .then(reaction => reaction.message.react('760479793220419645')) .then(reaction => reaction.mesage.delete(5000)) .then(msg => console.log('Message had been deleted!')) .catch(err => console.error);```
can anyone help with this?
oh..
.style("opacity",(d) => { return --d }) .delay(100)how can i make D3 repeat this exact piece of code in a transition for as many times i want?
@earnest phoenix a while loop? or an interval? hmm.. wow i need to learn about these modules before i become a dinasaur
node:11472) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of input
at Client._eval (C:\Users\shahn\3D Objects\Botcode\sharding\node_modules\discord.js\src\client\Client.js:391:17)
at ShardClientUtil._handleMessage (C:\Users\shahn\3D Objects\Botcode\sharding\node_modules\discord.js\src\sharding\ShardClientUtil.js:185:82)
at process.emit (events.js:327:22)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
having problems xD @quartz kindle any idea why?
@earnest phoenix hold the fuck up
Why
AND why
also why
are you combining while True with wait_for
nah.. i was just trying to understand what was the problem in repeating those 2 lines of code
cuz i wouldve used an interval and that'd be the end of that
end interval under whatever conditions i think up of
are you combining while True with wait_for
@slender thistle it works lol
just because it works doesn't mean you should
This
um.. is this shiv or a fan of his..
im gonna guess u just changed ur nick..
hmm im thinking of having a small challenge, so how it goes is that u take a string like "d:1,B:3" and u end up returning something like "dBBB"
split on ",", then for each split on ":" and append the left n number of times
Your process used too much ram
yeah i know
and how it would be measured is speed ofc
someRecordingVar=new Date().getTime()
loop(999999 times){runUrFunction(thatString)}
console.log(new Date().getTime()-someRecordingVar)
but how can i fix the problem?
sry was doing chores for a bit before i cud get the second part of the challenge in
might be faster to throw that into a JSON array and loop through it that way hmm
not sure
You could upgrade your host or mitigate how much ram certain areas use
Such as how many messages are cached per channel
how much RAM does the machine have and how much of it is your bot using
might be faster to throw that into a JSON array and loop through it that way hmm
@fringe pendant ive now started working on it.. was only fair i described it fully before i started
just picking up on that cool thing that was going on yesterday cuz it was FUN
try out those 2 methods I'm curious to see which is faster
anyone is welcome to try
to see who can get the fastest result
it's what made it fun yesterday :}}}}}}}
how much RAM does the machine have and how much of it is your bot using
@fringe pendant by machine you mean vps?
sure, wherever it's being hosted
512mb
is there anything else running on it?
no
so then your bot is sucking up most of that available RAM and eventually goes past the limit
not sure what you're doing but consider trimming on any data you're keeping around at runtime or upgrade to a host with more RAM
like if you're caching a bunch of stuff as Phoenix said
yeah
Why not verification on bots
client.shard.broadcastEval(`this.channels.cache.has("${remind.bumpchannel}") ? this.channels.cache.get("${remind.bumpchannel}").send({
embed: ${JSON.stringify(remindmessage.toJSON())}}) : null`).then(console.log);
client.shard.broadcastEval(`this.channels.cache.has("${remind.bumpchannel}") ? this.channels.cache.get("${remind.bumpchannel}").send("@here")`).then(console.log);
``` ⤴️ this code does not work error: [#development message](/guild/264445053596991498/channel/272764566411149314/)
```js
client.shard.broadcastEval(`this.channels.cache.has("495061766657802263") ? this.channels.cache.get("495061766657802263").send({
embed: ${JSON.stringify(remindmessage.toJSON())}}) : null`).then(console.log);
client.shard.broadcastEval(`this.channels.cache.has("${remind.bumpchannel}") ? this.channels.cache.get("${remind.bumpchannel}").send("@here")`).then(console.log);``` ==> this code works
any idea why?
increasing the memory limit of node.js is not going to change anything right? because the problem is the memory limit of the vps
cache.has("${remind.bumpchannel}")
yes
🤟
@full mortar probably, unless the memory limit of node is tiny and not able to use the available memory
but i don't think that's likely
ok, thanks
@earnest phoenix thats ur idea? the same thing thats standing
😄
?
I mean you sent the same thing which is contained in the code @earnest phoenix
Can someone tell me how to make a meme command?
take command
return embed
look at a library's documentation for sending embeds
the rest is up to ur interpretation
fetch memes from r/sfw-memes through reddit's API
hi im stupid. how do you make a variable thats different for every user? for example like imagine having a currency that is a different value per user. i only know how to make global variables
hi im stupid. how do you make a variable thats different for every user? for example like imagine having a currency that is a different value per user. i only know how to make global variables
@hardy steeple use a database
if you store the variables in the normal javascript file they'll get deleted after the process stops
it depends on how u store it ;]
for example, my bot only accesses the database every 15 mins
um.. is this shiv or a fan of his..
@viscid gale idk who shiv is
all processing of that manner is done in the program and only saved
u can store it, it's all about declaring private variables xD
wow
u trolls
I just added every single thonk emote i can find
nitro flex
u trolls
@viscid gale trolling is allowed here but to an extent
aye @earnest phoenix
i didnt mean it in a bad way xD
Hi, :)
Ping...
shelled out a hell lot of minutes betterifying the CSS on this: https://discord-webhook.code913.repl.co/
fetch memes from r/sfw-memes through reddit's API
@earnest phoenix idk how
i am in love with D3.js no one can seperate us
@earnest phoenix idk how
@sage osprey learn it then
also idk if there is actually a subreddit named that
how to have a transparent effect behind the bot logo ?
how to have a transparent effect behind the bot logo
@royal cove CSS baby
I thought it was a special function
How do I get support?
How do I get support?
@woeful field just ask your question
for top.gg questions ask in #support
for programming questions #development
yeah thanks my man




IS 
