#development

1 messages · Page 1343 of 1

opal plank
#

presence contains that

nocturne sparrow
#

user.presence.status is working for bot but when i loggin isnt working @opal plank

small prairie
#

this should probably work idk

opal plank
#

it should work

#

returns a string

delicate shore
#

@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

opal plank
#

<user>.presence.status => 'status'

#

OOOH

#

i think it might be intents

#

is it not?

delicate shore
#

Yes

opal plank
#

idk if intents come with it

eternal osprey
#

@delicate shore 6 months ago.

opal plank
#

though i KNOW you can fetch status from API even without shared servers

delicate shore
#

My bot wasn't even able to fetch invites

eternal osprey
#

can't remember people growing up so fast.

nocturne sparrow
#

Cannot read property 'status' of undefined

delicate shore
#

That's also under intents I guess

small prairie
#

go to Dms plesae

#

stop this here

opal plank
#

@nocturne sparrow you likely dont have intents

nocturne sparrow
#

what

restive furnace
#

someone please do the -checkdm or what was the tag called

eternal osprey
#

yeah it worked @small prairie

opal plank
#

intents are now required to fetch that data

slender thistle
#

though i KNOW you can fetch status from API even without shared servers
@opal plank You can?

opal plank
#

yeah

slender thistle
#

member or user object?

opal plank
#

actually

#

lemme double check

#

user, directly from api with userid

delicate shore
#

@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

opal plank
#

in the /users endpoint

slender thistle
#

Interesting

opal plank
#

lemme just triple check making sure im not bullshitting

delicate shore
#

Now if you don't mind let's take his to dms

small prairie
#

wew

nocturne sparrow
#

Definition of "user" req.user

opal plank
#

hmmmm

nocturne sparrow
#

req.user.presence.status

small prairie
#

take this to dms or mods pls mute thanks

eternal osprey
#

@delicate shore so i am a nerd for not showing my face on youtube?

nocturne sparrow
#

i am using user.presence.status

eternal osprey
#

what is that for stupidness

delicate shore
#

No

slender thistle
#

Hello this isn't the channel for arguing

opal plank
#

i am bullshitting

#

i just checked

slender thistle
#

or your personal shit

opal plank
#

it does NOT return status

slender thistle
#

Move to DMs or cut it out entirely

#

Baka Erwin

eternal osprey
#

sure 😉

opal plank
small prairie
#

thanks

opal plank
#

its been almost 5 or 6 months since i done my info command

delicate shore
#

He sent my pic in this channel without my consent @slender thistle and every time I try to end conversation he starts again

nocturne sparrow
#

@opal plank how i can do

eternal osprey
#

i am quiet now

#

you start again.

opal plank
#

you need to apply for verification @nocturne sparrow

#

and ask for those intents

eternal osprey
#

now stop.

slender thistle
#

Next person to keep commenting on it gets muted

#

thank you for understanding

small prairie
#

Hello this isn't the channel for arguing
go to #support for argueing
||pls no ben||

dark grove
#

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

eternal osprey
#

so i understand what you have done now @small prairie , how would i implement a space after every string?

nocturne sparrow
#

@opal plank i don understand

small prairie
#

@eternal osprey ID is basically a string
just add +" " to add a whitespace after the ID

nocturne sparrow
#

I'm logging in already

small prairie
#

its returning a string
make it return whatever more u want it to have

#

tag or wahtever

opal plank
#

@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

umbral zealot
#

Actually unverified bots do have access to this 😉

opal plank
#

MEMBER_UPDATES iirc

delicate shore
#

Which one is best for mongo DB
AES or Google or azure

small prairie
#

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
@dark grove just do message.react

delicate shore
#

Aws*

opal plank
#

im not sure they do anymore @umbral zealot

small prairie
#

they do have access below 100 servers irrc

#

iirc*

delicate shore
#

Yes
Not privileged one

eternal osprey
#

that was not what i meant. Sorry my mistake.

umbral zealot
#

I'm actually sure they do. The option isn't locked for priviledged intents on small unverified bots.

eternal osprey
#

i wanted the id;s to be under each other,

#

so adding a whitespace

#

or wait

small prairie
#

use \n then

eternal osprey
#

i know how to

#

nvm

opal plank
#

dont you lose that once you get past 76?

small prairie
#

dont you lose that once you get past 76?
@opal plank yes

umbral zealot
opal plank
#

my bot isnt verified and doesnt recieve those anymore

small prairie
#

u need to be verified after 76 for priv intents

umbral zealot
#

Once you verify, whether it's 76 or 100, you lose them (unless you've requested them)

small prairie
#

u can verify with the intents and u get it

#

Yes correct edit

opal plank
#

unverified

#

cant tick them

small prairie
eternal osprey
#

why are there comma's tho?

delicate shore
#

What API can I use to make my bot automatically edit the values in quick.db

opal plank
#

i havent even applied for it

small prairie
#

u get that "message" once u reach 76 servers

#

no need to apply

delicate shore
#

Ye

umbral zealot
#

Alright well, I guess after 76 guilds it locks. odd, I didn't think that happened.

opal plank
#

i do need to apply

#

that shit broke quite a few features of my bot

delicate shore
#

He means the msg

small prairie
#

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

delicate shore
#

Ye

small prairie
#

you can theoretically create your own API
afaik quick.db is a local Db wrapper

eternal osprey
delicate shore
#

you can theoretically create your own API
afaik quick.db is a local Db wrapper
@small prairie
Ok

umbral zealot
#

@eternal osprey dunno, what's your code?

eternal osprey
#

  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 })
     
      
        }
      } 
small prairie
#

@eternal osprey map here is returning an array afaik

umbral zealot
#

pretty sure the reason for this is that your array is joining automatically

nocturne sparrow
#

@opal plank oah

#

i was did

umbral zealot
#

instead of doing a map() with a \n, just do a .join("\n") instead.

eternal osprey
#

okay. Thanks!

#

so it would be list.members.cache.join

umbral zealot
#

actually you need to do .map() to get the id, then .join() to link them together

#

¯_(ツ)_/¯

eternal osprey
#

hmm okay! I will have a good look

#

thanks for helping 🙂

fluid basin
#

also I dont think collection has a join method

jovial nexus
#

how can i read the last message the bot sended?

eternal osprey
#

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?

quartz kindle
#

member.user.username

eternal osprey
#

ah

fluid basin
jovial nexus
#

yes but how

#

i know i need to use that but i dont know how

crimson vapor
#

message.guild.me.lastMessage irrc but I could be wrong

earnest phoenix
#

message.channel.messages.cache

#

filter that with your bot messages

fluid basin
#

imagine spooning

earnest phoenix
#

then get the most recent one

fluid basin
#

thats the same btw code

#

and more complicated

earnest phoenix
fluid basin
#

if its cached it will be stored in lastMessage as well

uncut river
#

what's recommended to use ssh?

#

my host help center said use putty

#

do i not use something from the ssh website?

fluid basin
#

either putty for windows or wsl ssh

#

and linux/mac is just ssh

uncut river
#

putty for windows? thanks!

crimson vapor
#

imagine not using ubuntu wsl

fluid basin
#

I mean

#

it takes space and cpu

#

and memory

slender thistle
#

PuTTY is decent

zealous sable
#

I use putty, works fine for me

uncut river
#

thanks :)

fluid basin
#

winscp for a ftp-like client to transfer any files

uncut river
#

i have an ionos server

#

they say putty

#

i have winscp

zealous sable
#

I use FileZilla for ftp stuff it gud

crimson vapor
#

well I have 32gb of ram and a 2700x so I have ram and cpu to spare

uncut river
#

i was told here last night to get ssh setuo

zealous sable
#

Oh god ionos, I utterly hate that company

crimson vapor
#

I prefer winscp for transfer

uncut river
#

why hate ionos?

fluid basin
#

meh filezilla is great except for its bloody installer which has ads

uncut river
#

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

zealous sable
#

Ionos, are very disappointing imo. Support is really bad too.

#

However if your not the account holder then nothing to worry about there haha

uncut river
#

true, iphone told me "Call Failed" 3 times in 30 mins when i was talking with them

#

my friend got some discount

crimson vapor
#

WinSCP doesnt replace ssh

uncut river
#

i have 4% cpu usage

crimson vapor
#

its just for file transfer

uncut river
#

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

crimson vapor
#

getting access to the server

uncut river
#

getting what kind of access and why?

#

i already have a panel

crimson vapor
#

ssh access so you can configure things

uncut river
#

like what

crimson vapor
#

well

#

ssh is a remote terminal

earnest phoenix
#

Should I learn JS Maps or discord.js Collections?

crimson vapor
#

depends on what you use them for

#

collections have more than maps ik that but maps are pretty good still

earnest phoenix
#

djs collections are maps just with more fancy methods

uncut river
#

yes

earnest phoenix
#

and i can't import a 10000 character djs webpack script only to use smth which is basically a map

uncut river
#

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
#

@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

crimson vapor
#

[object Object]

#

jk

#

I realize by sending that it makes me look like a selfbot

#

fuck

pale vessel
#

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

fluid basin
#

the collection package is in ts

uncut river
#

loll

fluid basin
#

if you set the ts compiler settings correctly

pale vessel
#

compile :)

fluid basin
#

it can work in browsers

#

yeah

radiant vigil
#

How can i set a STREAMING rich presence for a bot? (With twitch link)

earnest phoenix
#

How can i set a STREAMING rich presence for a bot? (With twitch link)
@radiant vigil type: "STREAMING"

jovial nexus
#

how can i do message.guild.me.lastMessage.content without defining message?

tulip ledge
#

U cant

#

Unless u wanna get the last message, but its not the last msg in that guild

jovial nexus
#

the last message of the bot

tulip ledge
#

U can do client.lastMessage I think if not u can make ur own method

jovial nexus
#

u cant

tulip ledge
#

Then make ur own method

jovial nexus
#
if(client.lastMessage.content.includes(newPresence.user))return undefined;
TypeError: Cannot read property 'content' of undefined
tulip ledge
#

Save the last client’s message in like client.lastMessage, then make a method to get that last message

jovial nexus
#

is there a way to get the client member without definign message?

tulip ledge
#

Oh wait @jovial nexus u can do client.user.lastMessage

jovial nexus
#

ahaaa

pale vessel
#

message.guild.me.lastMessage is the bot's last message in that guild

jovial nexus
#

let me check

#

@pale vessel yes but without using "message"

pale vessel
#

then where would you get the guild if not the message's guild

#

globally?

jovial nexus
#

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

pale vessel
#

client.user.lastMessage worked for me

jovial nexus
#

without defining "message"

pale vessel
#

never mind

jovial nexus
#

then why does this if(client.user.lastMessage.content.includes(newPresence.user))return undefined; give error?

delicate shore
#

I can't get data using mongoDB

zealous sable
#

Mongodb works fine for me

#

You sure you aren’t just doing something wrong

earnest phoenix
#

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)

delicate shore
#
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

zealous sable
#

I’d need to look at my bot, prefix Is changeable on the website etc

delicate shore
#

Ok

earnest phoenix
#
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?

zealous sable
#

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
#

@delicate shore are you exporting a mongodb collection in ./models/settings.js?
@earnest phoenix
Yes

earnest phoenix
#

show the file

#

i wanna make my own paste service so bad

delicate shore
#
const mongoose = require("mongoose");

const Guild = new mongoose.Schema({
  id: {
    type: String,
  }, prefix: {
    type: String
  }
});

module.exports = mongoose.model("Guild", Guild);```
earnest phoenix
#

thonk

delicate shore
#

How I write -

const Guild = require('./path/to/schema')

const data = new Guild({
  id: "guild ID here",
  prefix: "guild prefix here"
})

data.save()```
earnest phoenix
#

can you do findOne on a "mongoose model"

delicate shore
tulip ledge
#

@earnest phoenix dont u need to put the overflow on the parent?

pale vessel
#

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
#

@earnest phoenix dont u need to put the overflow on the parent?
@tulip ledge i'll try and see

delicate shore
#

:(

earnest phoenix
#

@earnest phoenix dont u need to put the overflow on the parent?
@tulip ledge nope still not working

tulip ledge
#

Maybe add an !important

#

If that doesnt work idk either

earnest phoenix
#

ok

#

also do you guys care if my CSS stylesheet is cluttered with !important?
cuz it is

delicate shore
#

who is developer of abc.db

earnest phoenix
#

who is developer of abc.db
@delicate shore callum aka arch's demise

delicate shore
#

K

earnest phoenix
#

still no work sad
lemme try changing the overflow-wrap to anywhere

#

nope not working

#

MDN GET IN MAH BRAIN

#
Applies to non-replaced inline elements

maybe this?

ripe quest
#

is there a way to use the API to check if a bot is online from a website?

earnest phoenix
#

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

ripe quest
#

Hmm

#

Then i have to do the thonk and find a way to check

earnest phoenix
#

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)

jovial nexus
#

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.
@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```

ripe quest
#

@jovial nexus im trying to do this from a website

#

not from the bot

zealous sable
#

That was for another person

ripe quest
#

Ohh

jovial nexus
#

read the msg man xd

ripe quest
#

Guys im tired and havent slept fro days 😦 Dont judge

#

i am retarded

pale vessel
#

@jovial nexus probably means that there is no last message from the client

tulip ledge
#

No

#

No

pale vessel
#

wait

tulip ledge
#

Hes doing it wrong

pale vessel
#

you're trying to use includes(object) on a string

#

wot

jovial nexus
#

just did $eval message.channel.send("test")
client.guilds.cache.reduce((x, y) => (y.me.lastMessage || {}).id > x.id ? y.me.lastMessage : x).content

tulip ledge
#

U dont put a ternary operator in an if statement lol

pale vessel
#

you can

#

it's inside the reduce function

#

not in the if statement directly

#

@jovial nexus did it work?

jovial nexus
#

nope, it cracshes

earnest phoenix
#

@tulip ledge got the problem

pale vessel
earnest phoenix
#

the <pre> forces it to be displayed as it is
changed it to <div>

jovial nexus
#

sooo

sly marten
#

hey does anyone know how to make commands that will put your pfp to a pic or a gif?

earnest phoenix
#

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

sudden geyser
#

What library are you using

hollow sedge
#

@errant current I don't understand what you're talking about, you don't have to use cogs

earnest phoenix
#

(if you're trying to change a user's pfp)

errant current
#

Well how the hell else then

hollow sedge
#

Look at the example

errant current
#

All the example code is in py and i had so much pain with APIs with libraries i refuse to use them

earnest phoenix
#

you can change the bot's pfp tho when the bot is restarted it will be reset to the default on the dev portal

errant current
#

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?

sudden geyser
#

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

hollow sedge
#

You need a token, and a DBLClient

errant current
#

Why not a normal oldschool API link is that so hard

earnest phoenix
#

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>

errant current
#

the API is 0 documented actually which is quite funny

#

the only reference is the base url

hollow sedge
#

You can use the dblClient wherever you want

errant current
#

I won't use libraries

#

the code is way too long

hollow sedge
#

???

errant current
#

i can do maybe 2-3 lines with api links

sly marten
#

@sly marten privacy breach so discord won't allow that
@earnest phoenix oh cus bots like dank memer have these commands

hollow sedge
#

All the info is in the docs

sudden geyser
#

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.

errant current
#

No, it isnt

#

like wtf how long is this

hollow sedge
#

What are you trying to do

modest smelt
#

for some reason

hollow sedge
#

Bro literally half of that is comments

errant current
#

Post shit to the API whichs base URL i know but nothing more

modest smelt
#

it shows me this error:

#

Command raised an exception: RuntimeError: PyNaCl library needed in order to use voice

#

How can I fix it?

quartz kindle
#

install it

errant current
#

install PyNaCL

modest smelt
hollow sedge
#

Yes

modest smelt
#

I dont want to upload the code

hollow sedge
#

Import it

modest smelt
#

without testing

#

import PyNaCl thats it?

hollow sedge
#

Import PyNaCl

#

Yes

#

When u run it

errant current
#

Is it so hard to just.... reference the actual API, with links, instead of libraries

modest smelt
#

ModuleNotFoundError: No module named 'PyNaCl'

#

thats what it says

earnest phoenix
#

or just press Ctrl + Shift + S to open Shell and install it @modest smelt

errant current
#

Why tell me how to use the authorization header if there is literally nothing i can use the link for

earnest phoenix
#

you can access a bash shell through that

modest smelt
#

@earnest phoenix will it update in repl.it?

earnest phoenix
#

ofc

modest smelt
#

what is command for that?

earnest phoenix
#

idk how to install python modules but I'm sure repl already has pip installed

modest smelt
#

on mac

zealous sable
earnest phoenix
#

repl is hosted on linux...

slender thistle
#

It is documented btw

modest smelt
#

thanks @zealous sable

errant current
#

where so

slender thistle
#

see the Resources section

errant current
#

i give up

#

just

#

make a proper API

slender thistle
#

Are you not willing to read

modest smelt
#

w8 so i installed pynacl on my home computer

quartz kindle
#

no lol

modest smelt
slender thistle
hollow sedge
#

make a proper API
@Toothy#5108 you're complaining for no reason

modest smelt
#

how can i get pynacl on repl?

hollow sedge
#

You literally don't have to put it in a cig anyway

#

how can i get pynacl on repl?
@modest smelt IMPORT IT!!!

modest smelt
#

I DID

hollow sedge
#

import pynacl

modest smelt
#

it doesn't work

#

it said module not forun

#

found*

earnest phoenix
#

bro install it then import duh

hollow sedge
#

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

modest smelt
#

im there

#

at packages

hollow sedge
#

What does it say

modest smelt
#

i search up pynacl

#

and no results found

earnest phoenix
#

how the fuck would repl pre-install 100000000 modules

modest smelt
#

oop nvm

hollow sedge
#

i search up pynacl
@modest smelt take a picture and send a list of the installed packages

modest smelt
#

i screwed up my spelling

earnest phoenix
#

also it only checks for the main.py file

hollow sedge
#

Bruh

zealous sable
modest smelt
#

@earnest phoenix thats not true

earnest phoenix
#

any other files calling for imports are ignored and won't install their proper modules

hollow sedge
#

..have you used repl?

earnest phoenix
#

it happens in node.js repls

hollow sedge
#

node.js is not python

modest smelt
hollow sedge
#

uncap

slender thistle
#

lowercase

earnest phoenix
#

why would they specifically check all files only in python

hollow sedge
#

all lowercase

zealous sable
#

Change it to pynacl

modest smelt
#

ok

earnest phoenix
hollow sedge
#

:confusion:

modest smelt
#

:sad:

hollow sedge
#

Can you please send a list of your installed packages

zealous sable
#

Can’t you do the pip install on repl.it?

hollow sedge
#

I don't think repl has a console you can use

modest smelt
earnest phoenix
#

Can’t you do the pip install on repl.it?
@zealous sable yes you can but thse guys ignored all my msgs

modest smelt
#

I ALREADY INSTALLED PYNACL ON MY HOME COMPUTER

#

I JUST DID RN

zealous sable
#

Home computer

hollow sedge
#

THAT DOESNT MATTER

zealous sable
earnest phoenix
#

YOUR HOME COMPUTER IS NOT REPL

modest smelt
#

EXACTLY

hollow sedge
#

REPL.IT DOESNT RUN IT FROM YOUR COMPUTER

crimson vapor
#

lmao

modest smelt
#

so wat should i do now?

earnest phoenix
#
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?

hollow sedge
#

@modest smelt they're saying use the command line/console on repl

earnest phoenix
#

PLEASE RUN CTRL + SHIFT + S AND TYPE PIP INSTALL PYNACL AND FOR FUCK'S SAKE LISTEN TO ME FOR ONCE

modest smelt
#

there is no command line

hollow sedge
#

That's what I thought

modest smelt
#

nothing pops up @earnest phoenix

slender thistle
#

@earnest phoenix You probably want to create an embed and set each element of the tuple as the field

sick fable
#

Shivaco 👀

#

This guy helped me a lot

earnest phoenix
#

O ok

#

thanks

sick fable
earnest phoenix
#

nothing pops up @earnest phoenix
@modest smelt internet speed slow it usually takes like 7 seconds to load for me

sick fable
#

Lmaoo

zealous sable
earnest phoenix
#

P? it's S for me smh

modest smelt
#

nothing pops up

earnest phoenix
#

lol

#

or is it S only for node repls

zealous sable
#

I swear if I have to make a repl.it account just for this

earnest phoenix
#

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

hollow sedge
#

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

earnest phoenix
#

@slender thistle is it alr if i use a list?

modest smelt
#

ok what should i search up to find the terminal?

zealous sable
#

Ahhh damn I’m sorry lads never used it before

#

Open Shell

#

That’s what u type

earnest phoenix
#

wait

slender thistle
#

@earnest phoenix Are you familiar with the difference between lists and tuples?

earnest phoenix
#

oh they meant Ctrl + Shift + P opening up the commands stuff then typing shell
Ctrl + Shift + S directly opens shell tho

hollow sedge
#

That still should've worked

#

Nvm u edited

slender thistle
#

To answer your question though, yes you can use a list

zealous sable
#

Oh idk I just googled it and that answer said do P and then type Open Shell

earnest phoenix
#

kk

hollow sedge
#

I think he found it

#

Anyway

modest smelt
#

ok

hollow sedge
#

Is that a yes..?

zealous sable
#

U got it MisterBlov?

modest smelt
#

ok

#

I installed pip install pynacl

#

and it worked

#

now what?

hollow sedge
#

Nice

#

Now you can import it as that

modest smelt
#

Successfully installed pynacl-1.4.0

zealous sable
#

Now import and use it the way you wanted it to

modest smelt
#

what should i import?

hollow sedge
#

pynacl

modest smelt
#

import pynacl?

zealous sable
#

pynacl

#

Yes

hollow sedge
#

Yes

modest smelt
#

that don't work

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

zealous sable
#

What error does it give

hollow sedge
#

That's not the problem

modest smelt
#

haha thats not the problem

hollow sedge
#

@sage bobcat

modest smelt
earnest phoenix
#

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

modest smelt
#

@earnest phoenix now what?

sage bobcat
#

One message removed from a suspended account.

modest smelt
#

ye

hollow sedge
#

..could it be imported as pynacl-1.4.0

modest smelt
#

i tried that

earnest phoenix
#

@earnest phoenix now what?
@modest smelt I'm not a python dev

hollow sedge
#

Might be a dumb idea

earnest phoenix
#

i only gave you instructions to install PyNaCl

modest smelt
#

it just says invalid syntax

#

ok

hollow sedge
modest smelt
#

ok

#

w8 so what should i do from there?

#

never installed a package from github

hollow sedge
#

import the link

#

Add .git to the end

modest smelt
#

u mean this write?

hollow sedge
#

Yes

modest smelt
#

ok

#

now?

#

clone?

hollow sedge
#

?

modest smelt
#

nvm

#

continue

hollow sedge
#

No I mean import it

modest smelt
#

oh so put that in my code?

#

import https://github.com/pyca/pynacl.git

hollow sedge
#

import git+https://github.com/pyca/pynacl.git

modest smelt
#

shell?

hollow sedge
#

No

#

Code

modest smelt
#

ok

#

im trying that

#

seems to be workin

#

idk if it will fully work

hollow sedge
#

I don't think shell is reliable

modest smelt
#

yeah

hollow sedge
#

Else you have to run that every time

modest smelt
#

ye

earnest phoenix
#

\❤️

hollow sedge
#

Yeah and you can just use as to call it pynacl

#

You probably knew that though

#

Wait I might be wrong 🤷

dark grove
#

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

hollow sedge
#

Because TEST is not an emoji

#

That doesn't make senee

dark grove
hollow sedge
#

You got an emoji and assigned it to getEmojibht you never used it

dark grove
#

oh

hollow sedge
#

Yeah

earnest phoenix
#

how do you open links in new tabs?

modest smelt
#

?

zealous sable
#

Cntrl click

modest smelt
#

click them?

earnest phoenix
#

how do i make it so it opens in new tab by default

modest smelt
#

w8 why can't i change my nick?

#

឵឵

#

@hollow sedge it didn't work

#

឵឵

earnest phoenix
#

឵឵
@modest smelt uhh how did you send that

delicate shore
#

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

hollow sedge
#

how do i make it so it opens in new tab by default
@earnest phoenix maybe there's a web store addon

earnest phoenix
#

vanilla js

hollow sedge
#

@hollow sedge it didn't work
@modest smelt what didn't work

modest smelt
#

the importing from github didnt work

#

the pynacl thing

earnest phoenix
#

don't use it then

modest smelt
#

bruh

#

ur kinda smart in the head

abstract coyote
#

how do you open links in new tabs?
@earnest phoenix wdym?

zealous sable
#

Look idk man, you have installed it in every way possible you must be missing something

hollow sedge
#

I honestly have no idea

#

We've tried everything

modest smelt
#

hmm

earnest phoenix
#

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

zealous sable
earnest phoenix
#

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

abstract coyote
#

oh

#

you gotta do <a href="(URL)" target="_blank">

dark grove
#

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

hollow sedge
#

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"

zealous sable
#

target="_blank

abstract coyote
#

yos

zealous sable
#

Oops I was bet

hollow sedge
#

@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

earnest phoenix
#

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?

dark grove
#

but can you tell me like what to change? i don't really get how to replace TEST with getEmoji

ionic dawn
#

Kanna_waving_FB hi

earnest phoenix
#

hi the guy that renamed channel to chn

ionic dawn
#

Oh thats not general lol

earnest phoenix
#

ban

#

hi

ionic dawn
#

@dark grove what do u need

earnest phoenix
#

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
#

@dark grove what do u need
@ionic dawn give me a seconds to copy my previous message

earnest phoenix
#

bruh

dark grove
#

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```
earnest phoenix
#

just send the link to it

ionic dawn
#

No idea about py sorry

earnest phoenix
#

instead of posting 1000 lines of code AGAIN

dark grove
#

sorrysorry

earnest phoenix
#

lol

dark grove
#

didnt mean to spam it

earnest phoenix
#

anyone has the idea for code of reducing music bot bandwidth so it works faster

ionic dawn
#

Pastebin

earnest phoenix
ionic dawn
#

anyone has the idea for code of reducing music bot bandwidth so it works faster
@earnest phoenix server muted

earnest phoenix
#

Pastebin
@ionic dawn shut

#

@earnest phoenix server muted
@ionic dawn did it still it keeps cutting out sometimes and not for me only

ionic dawn
#

Server mute will decrease the bandwith usagw

earnest phoenix
#

mute or deafen?

ionic dawn
#

Deaf

earnest phoenix
#

yh i did that still it kinda slow and cuts out sometimes

ionic dawn
#

Do you have a good host?

earnest phoenix
#

and i got a uptimer bot to run it 24/7

#

discord.js

dark grove
#

this is the code

earnest phoenix
#

for fixing it?

#

i use glitch.com
@earnest phoenix GLITCH clapsuperfast IS clapsuperfast NOT clapsuperfast FOR clapsuperfast BOTS

#

read pins

#

it is

ionic dawn
#

Why dont you use a proper host/vps

earnest phoenix
#

^

ionic dawn
#

Like digitaloceans / OVH

viscid gale
#

eek

earnest phoenix
#

or even at least something that allows bots like repl.it

glitch and heroku are against bots

radiant vigil
#

Any free discord bot hosting

#

?

zealous sable
#

I use vultr pretty decent

#

Stop trying to get free stuff

earnest phoenix
#

Any free discord bot hosting
@radiant vigil checkpins

#

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

zealous sable
#

Nothing is free and works well

viscid gale
#

Any free discord bot hosting
@radiant vigil bruh

#

technically

#

self hosting

earnest phoenix
zealous sable
#

You still had to pay for the thing you are self hosting on didnt u?

earnest phoenix
#

Nothing is free and works well
@zealous sable its a bot not a site im using to host it

dark grove
#

self hosting
@viscid gale still gotta pay for electricity

viscid gale
#

but if electicity goes out

ionic dawn
#

@earnest phoenix just run your bot on a decent vps

#

And youll be fine

earnest phoenix
#

@earnest phoenix just run your bot on a decent vps
@ionic dawn hmm now whats vps

viscid gale
#

@viscid gale still gotta pay for electricity
@dark grove i mean, ur parents do, not u specifically ;]

earnest phoenix
#

and where would i find one?

#

@slender thistle -vps time?

ionic dawn
#

My bot have music and never slows down

earnest phoenix
#

does it support sites or files?

#

i am so confused

zealous sable
#

Free hosting is not good or meant for 24/7 bots

earnest phoenix
#

please read that

ionic dawn
#

Do u have knowledges about any linux distr? @earnest phoenix

dark grove
#

@dark grove what would dis do?
@earnest phoenix auto assign roles to people who react with a certain emoji

earnest phoenix
#

nope im new to coding 🙂

ionic dawn
zealous sable
#

You can get a vps for under 10 dollars a month, damn even ~5 dollars

dark grove
#

the emoji i was using was one i made called "TEST"

viscid gale
#

ur new to coding and the first thing u do is make a bot?

earnest phoenix
#

nope im new to coding 🙂
@earnest phoenix being new to coding and making a bot is the worst mixture ever known to mankind

viscid gale
#

wow we as coders r limiting ourselves :{

earnest phoenix
#

so bruh any ideas like code just to copy paste

ionic dawn
earnest phoenix
#

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

zealous sable
#

Please don’t copy and paste a bot

#

And claim as yours

hollow sedge
#

@earnest phoenix change to reaction.remove()

abstract coyote
#

thats a mean move >:(

earnest phoenix
#

@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

zealous sable
#

Eh

#

Yikes

earnest phoenix
#

Please don’t copy and paste a bot
And claim as yours
@zealous sable both because that's being [CENSORED] and against copyright law

ionic dawn
#

@earnest phoenix you need to read more about bots/js/vps/linux

#

And ull solvenur problems

dark grove
#

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
#

@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

hollow sedge
#

@earnest phoenix you need to read more about bots/py/vps/linux
@ionic dawn

earnest phoenix
#

@earnest phoenix change to reaction.remove()
@hollow sedge thx

hollow sedge
#

@hollow sedge thx
@earnest phoenix np

ionic dawn
#

I asure you someone did or have the same issue you had, so you just need to research

viscid gale
#

discord.js
open shell
node path/to/program

ionic dawn
#

But asking for code is gross

earnest phoenix
#

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

hollow sedge
#

But asking for code is gross
@ionic dawn also, if you want code, just go on GitHub lol

#

(I don't recommend)

earnest phoenix
#

@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

hollow sedge
#

Just saying, no point in asking here

earnest phoenix
#

cloud fox pls don't troll

waxen tinsel
#

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?

ionic dawn
#

Yeah, I mean, when I dont know what a piece of code do I try to atleast read it and understand it

earnest phoenix
#

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

hollow sedge
#

cloud fox pls don't troll
@earnest phoenix ?? How am I trolling?

ionic dawn
#

Theres no point on copy random studf

earnest phoenix
#

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

ionic dawn
#

Then start there

#

Try to learn

hollow sedge
#

@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

ionic dawn
#

@earnest phoenix shut

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

viscid gale
#

wow discord is making people want to code

ionic dawn
#

discordjs guide

viscid gale
#

that is interesting

ionic dawn
#

djs docs

earnest phoenix
#

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

hushed axle
#

If my bot is passing 100 invites my bot will automatic have verify rightdankmemerflush

zealous sable
#

DiscordJS documentation is very good, I’d suggest starting there

earnest phoenix
#

If my bot is passing 100 invites my bot will automatic have verify right:dankmemerflush:
@hushed axle no

ionic dawn
#

Bots in discord are the same as redstone in minecraft

abstract coyote
#

If my bot is passing 100 invites my bot will automatic have verify right:dankmemerflush:
@hushed axle you still need to apply

earnest phoenix
#

DiscordJS documentation is very good, I’d suggest starting there
@zealous sable you mean the guide?

viscid gale
#

@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

zealous sable
#

No the documentation

earnest phoenix
#

that's not what i meant...

hollow sedge
#

@hushed axle you still need to apply
@abstract coyote I think it's actually 75 invites too

abstract coyote
#

oh yeah

hollow sedge
#

It's just that at 100 invites, you must get verified

viscid gale
#

so what did u mean?

ionic dawn
#

Dont read the docs if you dont know anything about JS lol

#

Is like reading a chinese book before learning chinese

abstract coyote
#

yeah u can't get any more invites over 100 if you aren't verified :c

earnest phoenix
#

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```
hollow sedge
#

Await it

earnest phoenix
#

oh ok

hollow sedge
#

@earnest phoenix

hushed axle
#

Do I need to tell the moderator or just wait for verifyhuh

viscid gale
#

to the people who feel like learning to code just to make bots, lemme say, u can't stop there, take it further

hollow sedge
#

They'll send you a message once it reaches 75 invites I think

ionic dawn
#

@hushed axle what?

viscid gale
#

Pass it, to the ends of the EARTH :}

abstract coyote
#

you should have an option in your dev portal to verify

#

and then wait a bit, and you should get a response

ionic dawn
#

@hushed axle after reaching +75 servers the bot owner receive a DM from the system asking you to apply for verification

hushed axle
#

huh ohhh ok thanks

earnest phoenix
#

THanks so much! @hollow sedge

ionic dawn
#

If you reach +100 without it your bot wont be able to join more guilds

hollow sedge
#

THanks so much! @hollow sedge
@earnest phoenix np!

earnest phoenix
#

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

ionic dawn
#

@hushed axle After the apply youll have to wait aprox 6 weeks

hollow sedge
#

@viscid gale there are no people on discord who learn code before making bots
@earnest phoenix this is true, and it's very sad

viscid gale
#

what?

#

i learned code way before i knew about discord bots

hollow sedge
#

He meant many people, not ALL people

viscid gale
#

honestly.. i learned from playing up with chrome..

ionic dawn
#

@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

earnest phoenix
#

I've never dealt with people who try to learn coding before trying to make discord bots

viscid gale
#

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

hollow sedge
#

Again, he means many people

earnest phoenix
#

how is it sad just because I've never dealt with some doesn't meant there aren't

viscid gale
#

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

hollow sedge
#

True

earnest phoenix
#

it's a waste :{
@viscid gale SyntaxError: You're not supposed to use '{' in an emoticon :(

viscid gale
#

code weeb

#

xD

#

and also, personal style

hollow sedge
#

Rip

viscid gale
#

{ looks better than (

#

;}

earnest phoenix
#

code weeb
@viscid gale but i watch pokemon not anime

viscid gale
#

🗿

weary ridge
viscid gale
#

LMFAO

#

kek

hollow sedge
#

everyone be talking about discord.py and discord.js but no one is talking about discord.text

viscid gale
#

yea but im using the concept of obsession to relay a point

weary ridge
#

would anyone be able to help me out with an oauth2 error?

viscid gale
#

when does the error occur

#

what is the error

hollow sedge
#

i was about to say asking what the error is would be better

viscid gale
#

lmao

#

passport?

#

anyone who knows that api help him out pls

#

*module

weary ridge
#

lol

waxen tinsel
#

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.

weary ridge
#

okay nvm i fixed it lol

earnest phoenix
#
.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?

viscid gale
#

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 :}

weary ridge
#

Guess what

viscid gale
#

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

weary ridge
#

i can't survive without programming for atleast half the day :P

earnest phoenix
#

@waxen tinsel so ur a success story, NICE :}
@viscid gale stahp that curly bracket looks like a twisted lip antstahp

viscid gale
#

exactly

#

;}

waxen tinsel
#

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

viscid gale
#

lol ppl dmed me saying they want to build a bot

#

uk what the idea was

weary ridge
#

annoying devs is the best ;)

#

jk

earnest phoenix
#

wtf are you guys doing spamming the star button is killing #starboard

viscid gale
#

bryh

#

the star button was fun to spam

#

1,2,3,1,2,3,

earnest phoenix
#

no it was that Pmblue was tryna star themselves

viscid gale
#

he doesnt have 3 alts

#

we were playing around(me included)

waxen tinsel
#

lol

viscid gale
#

if this is the story of how im gonna get kicked from here smfh

waxen tinsel
#

@viscid gale what lib btw?

weary ridge
#

Atleast most of you peeps here have been begged from someone to teach them right?

viscid gale
#

lib for what? my bot?

#

i use discord.js meh

waxen tinsel
#

yes. And yes @weary ridge, which is ironic since I am a self taught dev who is essentially a noob in disguise

viscid gale
#

ugh.. someone just dm'd me

#

is it one of u :l

#

actually no, different pic he has

weary ridge
#

we all self taught coz that's what makes us real devs heeheh

viscid gale
#

real devs, fake devs

#

i cudnt care

#

once u can solve a problem using programming, ur a coder

weary ridge
#

no

viscid gale
#

look, there might be script kiddies among what i described

waxen tinsel
#

Define solve a problem

viscid gale
#

but it's a waste of breath getting all heated up about it

waxen tinsel
viscid gale
#

Define solve a problem
@waxen tinsel u had to, didnt u

#

smh

#

achieve a goal u wanted using code

#

without copy pasting

dark grove
#

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);```
weary ridge
#

imagine copy and pasting...

lofty grove
kind thicket
#

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)

viscid gale
#

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

lofty grove
viscid gale
#

and where were u when the ENTIRE HYPE was going around about discord bot verification

lofty grove
#

Are you talking about this verification?

viscid gale
#

omh

#

yes

#

someone send the invite link to that group..

lofty grove
#

and where were u when the ENTIRE HYPE was going around about discord bot verification
@viscid gale I was in the army

viscid gale
#

oh yes

#

bruh

#

uh

#

ite

dark grove
viscid gale
#

aw cmon

#

breuh

weary ridge
#

umm

viscid gale
#

ok i cant paste the invite here

#

ok that with 1 dot

waxen tinsel
viscid gale
#

;]

weary ridge
#

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?

dark grove
#

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);```

can anyone help with this?

viscid gale
#

oh..

earnest phoenix
#
.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?

viscid gale
#

h

#

code had their question first

weary ridge
#

aight ima resume my coding...

#

cya

viscid gale
#

@earnest phoenix a while loop? or an interval? hmm.. wow i need to learn about these modules before i become a dinasaur

tired panther
#
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?

slender thistle
#

@earnest phoenix hold the fuck up

#

Why

#

AND why

#

also why

#

are you combining while True with wait_for

viscid gale
#

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

earnest phoenix
#

are you combining while True with wait_for
@slender thistle it works lol

pale vessel
#

just because it works doesn't mean you should

slender thistle
#

This

viscid gale
#

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"

fringe pendant
#

split on ",", then for each split on ":" and append the left n number of times

full mortar
#

can someone help me with this?

hollow saddle
#

Your process used too much ram

full mortar
#

yeah i know

viscid gale
#

and how it would be measured is speed ofc
someRecordingVar=new Date().getTime()
loop(999999 times){runUrFunction(thatString)}
console.log(new Date().getTime()-someRecordingVar)

full mortar
#

but how can i fix the problem?

viscid gale
#

sry was doing chores for a bit before i cud get the second part of the challenge in

fringe pendant
#

might be faster to throw that into a JSON array and loop through it that way hmm

#

not sure

hollow saddle
#

You could upgrade your host or mitigate how much ram certain areas use

#

Such as how many messages are cached per channel

fringe pendant
#

how much RAM does the machine have and how much of it is your bot using

viscid gale
#

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

fringe pendant
#

try out those 2 methods I'm curious to see which is faster

viscid gale
#

anyone is welcome to try

#

to see who can get the fastest result

#

it's what made it fun yesterday :}}}}}}}

full mortar
#

how much RAM does the machine have and how much of it is your bot using
@fringe pendant by machine you mean vps?

fringe pendant
#

sure, wherever it's being hosted

full mortar
#

512mb

fringe pendant
#

is there anything else running on it?

full mortar
#

no

fringe pendant
#

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

viscid gale
#

oofTM

#

xD

full mortar
#

yeah

earnest phoenix
#

Why not verification on bots

tired panther
#
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?

full mortar
#

increasing the memory limit of node.js is not going to change anything right? because the problem is the memory limit of the vps

earnest phoenix
#

cache.has("${remind.bumpchannel}")

tired panther
#

yes

earnest phoenix
#

🤟

fringe pendant
#

@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

full mortar
#

ok, thanks

tired panther
#

@earnest phoenix thats ur idea? the same thing thats standing

earnest phoenix
#

😄

tired panther
#

?

earnest phoenix
#

Wdum

tired panther
#

I mean you sent the same thing which is contained in the code @earnest phoenix

sage osprey
#

Can someone tell me how to make a meme command?

viscid gale
#

take command

#

return embed

#

look at a library's documentation for sending embeds

#

the rest is up to ur interpretation

earnest phoenix
#

fetch memes from r/sfw-memes through reddit's API

hardy steeple
#

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

earnest phoenix
#

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

viscid gale
#

that can be implemented using an object

#

or oh yea a database

earnest phoenix
#

if you store the variables in the normal javascript file they'll get deleted after the process stops

viscid gale
#

it depends on how u store it ;]

#

for example, my bot only accesses the database every 15 mins

slender thistle
#

um.. is this shiv or a fan of his..
@viscid gale idk who shiv is

viscid gale
#

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

earnest phoenix
#

I just added every single thonk emote i can find
nitro flex

viscid gale
#

:l

#

ite

earnest phoenix
#

u trolls
@viscid gale trolling is allowed here but to an extent

#

aye @earnest phoenix

viscid gale
#

i didnt mean it in a bad way xD

earnest phoenix
#

Hi, :)
Ping...

sage osprey
#

fetch memes from r/sfw-memes through reddit's API
@earnest phoenix idk how

earnest phoenix
#

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

royal cove
earnest phoenix
#

how to have a transparent effect behind the bot logo
@royal cove CSS baby

royal cove
#

I thought it was a special function

woeful field
#

How do I get support?

earnest phoenix
#

How do I get support?
@woeful field just ask your question

woeful field
#

yeah thanks my man