#development

1 messages Β· Page 1264 of 1

narrow cloak
#

yes little

earnest phoenix
#

what are cookies and why do websites beg us to enable them Thonk

faint prism
#
Cookies are small files that websites send to your device that the sites then use to monitor you and remember certain information about you β€” like what's in your shopping cart on an e-commerce site, or your login information.
Dec 10, 2019
earnest phoenix
#

why do websites beg us to enable them
I see no point in disabling anyways

faint prism
#

Some use for analytics or basic functions

fluid basin
#

tfw websites still uses cookies when session/local storage exists

faint prism
#

Some are so you don't see the re-login page every time you click a link or button

#

tfw websites still uses cookies when session/local storage exists
@fluid basin very true

fluid basin
#

well essential cookies are justifiable

#

but not the non-essential ones

#

and they usually refer to the latter

earnest phoenix
#

well companies use analytics so they know what kind of stuff we like so they don't bombard us with pointless shit but give us actual meaningful stuff
yet some people think a byte of data from their computer being revealed is the end of the world
IT'S IN THE COMPANIES' FUCKING PRIVACY POLICY MATE THEY WON'T REVEAL YOUR DATA WITHOUT YOU AGREEING AND WHY DO I PRESS SHIFT ENTER AT THE WRONG TIMES

fluid basin
#

especially when you visit websites with ads

#

nah cookies are seriously weak

faint prism
#

tfw ad banner stores cookies

fluid basin
#

and also peeps, if you really think using incognito stops websites and stuff from tracking you, think again

#

theres many more methods to track you, one of which is browser fingerprinting

#

some of the advanced techniques used by certain websites

#

and don't forget, if you're using chrome, all your data could be accessed by google without your knowledge

faint prism
#

...YOUR DATA...
@earnest phoenix Websites are free in exchange for privacy 😭

earnest phoenix
#

imagine using Google Ads to advertise your shit trying to get people to use your search engine and NOT use Google

DuckDuckGo's epic marketing strategies

#

So I have the basics of coding down. Like I know what I need to do. How can I get this compatable with a bot. I watched a YouTube video about making it for a discord bot. I followed the steps but made it for my command. Can somebody look over the code and tell me if it'll even work.

#

Ok so it's complicated but I can't

#

Try it

#

because you're a beginner and nobody is born with programming superpowers so you'll need to learn more
(trust me it sucks to make bots when you're only one month into programming)

#

I don't have the ability to download things on my computer and I have no idea how to get this into a discord bot.

#

I don't know how to link the box to the code so I'm just trying to make the code first at least

faint prism
#

wat

earnest phoenix
#

I'm confuzzled too

faint prism
#

then run it in your browser mmLol

earnest phoenix
#

I'm confuzzled too
@earnest phoenix fuzzle fuzzle fuzzle....

faint prism
#

Your code fizzled!

earnest phoenix
#

I don't have the ability to download things on my computer and I have no idea how to get this into a discord bot.
@earnest phoenix WHAT THE FUCK YOU CAN'T DOWNLOAD STUFF ON YOUR COMPUTER

#

No not on my Chromebook

faint prism
#

yes you can

earnest phoenix
#

I can but I can't open files

faint prism
#

I am running a bot from my chromebook

earnest phoenix
#

bruh

faint prism
#

so Ik you can too

earnest phoenix
#

It's blocked because it's my school computer

faint prism
#

well that's why

earnest phoenix
#

But it's my only way to

faint prism
#

run it from your android phone

earnest phoenix
#

I can try. I don't really know how to

fluid basin
#

@earnest phoenix chill lol

faint prism
#

Play store: Termux -> apt install nodejs or node or something

earnest phoenix
#

Bless you

#

It's blocked because it's my school computer
@earnest phoenix just imagine trying to use your school computer to host a freakin' discord bot

also if you are in school right now we can stop swearing if your teacher is staring at your discord

#

Nah it's online school

#

I can try. I don't really know how to
@earnest phoenix hosting anything on android === kaboom

#

And it hasn't started yet

#

are you freaking telling me YOUR ONLINE SCHOOL HASN'T STARTED EVEN THOUGH WE'RE 9 MONTHS INTO 2020 i envy this guy i seriously envy every single thing about this guy

#

I mean the school day hasn't started

faint prism
earnest phoenix
#

Class doesn't start for another half hour

#

Oo

slender thistle
#

Poor fucking display is more shattered than my mental health during the pandemic

faint prism
#

It's an old phone don't worry

earnest phoenix
#

Poor fucking display is more shattered than my mental health during the pandemic
@slender thistle auger's pfp....?

slender thistle
#

The photo

earnest phoenix
#

you won't get it

#

mmLol my jokes are too complex to understand

#

So what do I download to get it to run

#

I mean the bot

faint prism
earnest phoenix
#

@earnest phoenix node.js

faint prism
#

termux first

earnest phoenix
#

node.js is used to run javascript

faint prism
earnest phoenix
#

listen to Auger he'll guide you through the installation cuz me no linux boi

#

So what do I do

faint prism
#

Once you have node installed just run your bot

earnest phoenix
#

I'm confused like what is my first step

restive furnace
#

install termux

faint prism
#

Reread my msgs dude

sonic lodge
#

then node.js

earnest phoenix
#

Ok

#

Thank you

faint prism
#

I shouldn't have to say this, but this is for an Android phone

earnest phoenix
#

I'm on android

faint prism
#

alright, good

earnest phoenix
#

I shouldn't have to say this, but this is for an Android phone
@faint prism he's using a school chromebook..... apparently he's messing my mind now

faint prism
#

He was

#

Not anymore lol

#

If you want to do it on the chromebook, you'd have to setup a chroot or the linux subsystem

earnest phoenix
#
~/codeco-discord-bot$ node command-generator.js
What is the name of the command?
random
A short description for the command:
Generates random stuff like cats and doggos. Do `c.random help` for the stuff which you can do with it.
Should it be allowed in DMs? Give a boolean value in lowercase with no whitespace
true
Should it be hidden to the help command? Give a boolean value in lowercase with no whitespace
false
Any aliases? Seperate each with a "," without any space. Reply with "null" if none
null
Generated the boilerplate for the command file. Check it and edit the stuff where there are comments.
~/codeco-discord-bot$

epic command generator

#

I'm downloading termux

faint prism
#

I'm downloading termux
@earnest phoenix Get familiar with Linux bash commands while you're at it

earnest phoenix
#

Que

#

anybody wanna help me test my server vote webhook? I'm on timer (imagine voting your own server)
(please don't throw a https://dontasktoask.com at my face i didn't know any other way to phrase the question)

#

Like touch, man, grep and stuff?

#

What do I need them for

faint prism
#

Like touch, man, grep and stuff?
@earnest phoenix ayy you already know some?

earnest phoenix
#

I'm confused on what I will need the bash commands. what step in the process of making a discord bot does that do

#

I know almost nothing about Bash

faint prism
#

A lot of people get frightened by CLIs, so it helps if you know at least how to use echo, cat, ls, nano or vim

#

basic editing from bash

earnest phoenix
#

I'm confused on what I will need the bash commands. what step in the process of making a discord bot does that do
@earnest phoenix creating files, running your bot code (crucial thing), deleting files, using npm, doing almost ANYTHING, etc.

#

Ok

#

So I don't need to learn it ;)

faint prism
#

Mostly you'll just be changing directories, making folders, maybe use git if you have a repo, and nano to edit

earnest phoenix
#

A lot of people get frightened by CLIs, so it helps if you know at least how to use echo, cat, ls, nano or vim
@faint prism only stuff i know: ["echo","that's it"]

#

I'm probably going to make a main.js

faint prism
#

ok

earnest phoenix
#

Right

#

That's an example of what I can do?

#

I'm probably going to make a main.js
@earnest phoenix index.js will be a better name cuz it's industry standard

faint prism
#

You mean "default" lol

fluid basin
#

@earnest phoenix not really tbh

earnest phoenix
#

I don't know I'm so confused

faint prism
#

I don't know I'm so confused
@earnest phoenix with what?

fluid basin
#

index.js is just commonly used, but not to be strictly followed

earnest phoenix
#

This is helping but slowly

fluid basin
#

unless you're making a module or something

earnest phoenix
#

repl.it not allowing deletion of index.js intensifies

#

I'm slowly catching on to this

fluid basin
#

well electron uses main.js

#

and not to mention its usually better to name a file after what it does

earnest phoenix
#

This is helping but slowly
@earnest phoenix that's great PartyCat

obtuse jolt
earnest phoenix
#

Feck

#

and not to mention its usually better to name a file after what it does
@fluid basin repl.it won't lemme delete index.js so i made it a side-process to my bot because it's not a good idea to store your express.js server code in the file that gets a hundred edits a second (bot-code.js)

obtuse jolt
#

It’s still using my mic

faint prism
#

It’s still using my mic
@obtuse jolt blow into it

fluid basin
earnest phoenix
obtuse jolt
#

@obtuse jolt blow into it
@faint prism yes

steel shell
#

anyone here know the command code for memes

earnest phoenix
#

anyone here know the command code for memes
@steel shell that's spoonfeeding spoonfeed we won't just give you code

fluid basin
obtuse jolt
#

@steel shell that's spoonfeeding spoonfeed we won't just give you code
@earnest phoenix give me some code

#

I told my server it would take months to fix my api token checker, in reality it look about 5-10 minutes

earnest phoenix
#

@earnest phoenix give me some code
@obtuse jolt
Here's a dramatic way to leak your .env

const express = require("express");
const app = express();
app.listen(8080);
app.use(express.static(__dirname + "/.env"));

And a dramatic way to delete it:

const fs = require("fs");
fs.unlink("./.env");
obtuse jolt
#

fuck yeah free code

#

I’m not gonna read the text above it

faint prism
#

yoink

obtuse jolt
#

Because I like copy and pasting code

earnest phoenix
#

star plz lel

#

Hello how to make bots ?

#

Own bots Ok!

slender thistle
#

Assemble code, run code

earnest phoenix
#

**undecancered fucking terrible unfunny name (@earnest phoenix) ** is typing...
why you guys use non qwerty characters it sucks

slender thistle
#

On a serious note, it requires knowledge of a programming language

#

Imagine being able to not comment on every single thing you don't like

eternal osprey
#

hey

#

how do i fix this problem? (node:3632) DeprecationWarning: Collection#find: pass a function instead

earnest phoenix
#

Imagine being able to not comment on every single thing you don't like
@slender thistle then why you guys decancer names in five seconds of spotting

umbral zealot
#

code keeping his opinions to himself? impossibru

earnest phoenix
#

how do i fix this problem? (node:3632) DeprecationWarning: Collection#find: pass a function instead
@eternal osprey that's not a problem that's a deprecation warning

slender thistle
#

We don't make a big deal out of any unmentionable names afaik unlike you mmLol

eternal osprey
#

so it won't intervene with my code?

faint prism
#

anyone here know the command code for memes
@steel shell

client.on('message', message => {
  message.reply('no u');
}
quartz kindle
#

@eternal osprey it is a problem, are you using discord.js v11?

earnest phoenix
#

so it won't intervene with my code?
@eternal osprey not necessarily

eternal osprey
#

v12

quartz kindle
#

afaik it was completely removed in v12

eternal osprey
#

i made a discord to twitter bot

earnest phoenix
#

i usually don't care for deprecation warnings (unless they're for one of my dependencies instead of a weirdo built-in node module that i don't use anyways)

faint prism
#

i usually don't care for deprecation warnings
@earnest phoenix that's pretty bad...

slender thistle
#

I can imagine the rage of the devs who actually put those deprecation warnings there

faint prism
#

Especially if they are breaking

slender thistle
#

just for them to be utterly ignored

quartz kindle
#

@eternal osprey you're using .find("a","b") right?

eternal osprey
#

yeah

umbral zealot
#

@eternal osprey
DeprecationWarning: Collection#find: pass a function instead
If you're getting a warning about passing a function when using Collection#find, this is because Discord.js version 12 removes the ability to use .find("name", "value") and will require a function instead. For 11.x you can easily ignore this warning (deprecation does not mean "not working", just that it will be removed). It's good practice to prepare for the future, however, so here's how you use a function in find():

// get a role by name
guild.roles.find(role => role.name === "Rolename");

// get a user by tag
client.users.find(user => user.tag === "username#1234")

// find a channel that starts with "test-"
guild.channels.find(channel => channel.name.startsWith("test-"))```
quartz kindle
#

are you sure you're on v12? im pretty sure it was removed completely in v12

earnest phoenix
#

gtg guys mom is bringing a knife

obtuse niche
#

Gl

eternal osprey
#

nvm

#

discord.js@11.6.4

#

i am using 11.6.4

faint prism
#

oof

#

use v12

quartz kindle
#

^

eternal osprey
#

on it guys

faint prism
#

There are breaking changes

#

so make sure to read the changelog @eternal osprey

fluid basin
#

Expected end of life for v11 is 7th Oct when intents are introduced, unless you have modified the library to fix that (which is pretty complex trust me)

#

this should cover most breaking changes in v12, but again go back to the docs if something isn't working correctly

umbral zealot
#

That reminds me I have 2 weeks to update literally all my bots.

restive furnace
#

JS libs in nutshell:
Eris -> No breaking changes (do it properly first time) + supporting latest gateway.
Discord.js -> Many breaking changes + support latest (probably even more % than eris) gateway.
I'm not saying D.JS is bad/awful, it's just the fact + I use D.JS too.

fluid basin
#

That reminds me I have 2 weeks to update literally all my bots.
LOL same

#

my almost-3-year-old bot finally needs an upgrade

quartz kindle
#

just remembered i have a bot still running on discord.js v12.0.0-dev

distant bramble
#

Ello

#

Omg my wifi is shit

obtuse niche
#

That reminds me I have 2 weeks to update literally all my bots.
@umbral zealot how much do u have zoomeyes

restive furnace
#

just ctrl + h

umbral zealot
#

uh... actually just Etiket officially but I made a bot for work and I should probably update it for them even if I'm leaving the job next week

#

that would be quite the fun: "you left last week and now the bot is broken, gee thanks buddy". good way to burn bridges.

obtuse niche
#

Ahhahahahahahah

faint prism
#

uh... actually just Etiket officially but I made a bot for work and I should probably update it for them even if I'm leaving the job next week
@umbral zealot Might want to show them how to maintain it themselves

slender thistle
#

uh... actually just Etiket officially but I made a bot for work and I should probably update it for them even if I'm leaving the job next week
@umbral zealot burn bridges or cause hormonal chaos...

opal plank
#

AAAAAAH i hate localization

faint prism
#

hormonal chaos
You mean hysteria mmLol

umbral zealot
#

I mean I actually did send them the code, but it's v11 code, so I will update and send them again

slender thistle
opal plank
#

does anyone know if i can change grafana's localization?:

#

i hate that its pulling my local language for uptime

#

Even though browser lang is english

faint prism
#

I mean I actually did send them the code, but it's v11 code, so I will update and send them again
@umbral zealot That's a good amount of work for that

#

I'd probably pivot to just showing them how to update it themselves

umbral zealot
#

Eeeeeh it's a little bit of work, mostly I'm just using the caches thing so it's not that hard

#

I'll just host the damn thing until it breaks

faint prism
#

I'll just host the damn thing until it breaks
@umbral zealot You're hosting a service for a company?

#

Don't they own their own servers?

umbral zealot
#

yeah they do but it was sort of a thing I did on my own time

faint prism
#

yeah they do but it was sort of a thing I did on my own time
@umbral zealot so uh... Was it something you were paid for?

umbral zealot
#

not officially no

faint prism
#

officially

opal plank
#

Shady bizz

umbral zealot
#

I could most definitely go "oh whatever I don't owe them anything" but I don't wanna be the asshole

faint prism
#

wha-

umbral zealot
#

By that I mean I officially did this on my own personal time, but unofficially I did some work during business hours.

faint prism
#

If they want it maintained and not abandoned, ask them to buy it wtf

inner wharf
#

Has anyone here done much work with youtube-dl/ffmpeg for discord.py? I'm getting some errors, that I have a solution for but can't use that solution. (if that made any sense at all)
Quick overview:
I'm basically trying to download and play music with my bot. this works fine
The issue happens when I try to download music. I haven't added my ffmpeg to my PATH in favor of just keeping it inside my bot folder. I know I could move it into PATH, but I much rather not. The error effectively is the downloader being unable to find the ffmpeg executables.
Does anyone know of a way I can reference the location of the executables to youtube-dl?

faint prism
#

get paid for it

#

fr

umbral zealot
#

I was getting paid $77k/year I think I was properly compensated.

faint prism
#

So it's their IP

#

Therefore they own the source

umbral zealot
#

eh, yeah sure, more or less. it's a gray area I guess.

faint prism
#

If you worked on it AT ALL while on the clock, it's their IP

#

or at least they have a claim

umbral zealot
#

I gave them the code already, so that part is covered. Β―_(ツ)_/Β―

faint prism
#

Yeah

#

But if they want it hosted, that's their problem

umbral zealot
#

That is true, but it costs me exactly nothing to keep it alive until they do , and for the forseeable future.

opal plank
#

I dont see why not profit it

faint prism
#

So, you can explain to them how to host, or you're essentially a hosting their IP from a rouge server (your own)

opal plank
#

i see it as either 'profit' or 'not profit', not as 'not an issue' or 'issue'

#

you are providing an extra service and not being paid for

faint prism
#

I dont see why not profit it
@opal plank you can't profit from their IP though if you leave the company

#

Once you leave, you don't own it anymore and can't use it anymore

opal plank
#

i mean, i guess

muted venture
#

is anyone here has a music bot that uses ytdl core?

faint prism
#

Right.
My point is, I don't recommend hosting it even if "it costs me exactly nothing to keep it alive"

#

while your outside the company

earnest phoenix
#

Hello

faint prism
#

Sounds like a potential legal issue

muted venture
#

i use the lib YTDL-Core, sometimes it gives me "Couldn't Find player config", any idea?

umbral zealot
#

@faint prism dude it's a moderation bot for a server, not a merchandise store, geeze. πŸ˜‚

#

I've given them the instructions on how to configure it and run it, and the bot can be kicked from the server once they've done that. At that point, I'll know, and delete the whole thing from my end.

fluid basin
#

yes, usually for one-off projects the company/business should be the handling infrastructure and what nots

faint prism
#

I'm just saying

umbral zealot
#

I mean you're right in saying it, but this isn't a case for the lawyers. MindGeek is not so anal as to sue an ex-employee for running a moderation bot done as a side-project to help the server.

faint prism
#
Job opening for Content Protection and Anti-Piracy Expert
at MindGeek Careers

You're good anyways lmao

umbral zealot
#

lmao

fluid basin
#

By that I mean I officially did this on my own personal time, but unofficially I did some work during business hours.
it would be arguable then, if you have proof that you spent most of your personal time on that it will be mostly owned by you

#

although some companies can be real dicks

faint prism
#

Good luck surviving the suit though

umbral zealot
#

I mean most of this code was boilerplates I wrote years ago too

faint prism
#

wtf why are they hiring so many PHP devs

fluid basin
#

well you gotta know corporate is at least a few years behind latest standards and technology (especially big companies that do not specialise in the tech field)

faint prism
honest perch
#

php

fluid basin
#

and they insist on using and upgrading their current systems

#

so Β―_(ツ)_/Β―

faint prism
#

what's their discord tho

#

I wish my company had a discord lmao

#

But they are probably still using COBOL for their mainframe
so I doubt they know what discord is

fluid basin
#

although some companies can be real dicks
if they don't like you they will try take everything from you, literally

faint prism
#

I watched Silicon Valley mmLol

umbral zealot
#

@faint prism because pornhub and every single back-end is written in PHP, that's why.

#

Also most API systems

faint prism
#

Where is that statistic from?

pale vessel
#

myanimelist THCwearybread

faint prism
pale vessel
#

pixiv THCwearybread

umbral zealot
#

From literally being an employee there.... tHONK

faint prism
#

and Angular for FE

#

From literally being an employee there.... :tHONK:
@umbral zealot You worked for PH?

umbral zealot
#

I work for MindGeek which owns PH and most of the largest adult entertainment domains out there

faint prism
#

oh shit

umbral zealot
#

I mean, I work, for the next week, then I'm gone, but yeah

fluid basin
#

what are you planning to do next though?

faint prism
#

MindGeek has its origins in Mansef and Interhub (owners of Brazzers and Pornhub respectively)

honest perch
#

But they are probably still using COBOL for their mainframe
so I doubt they know what discord is
@faint prism A lot of large companies still use COBOL

umbral zealot
#

Oh I guess we're going for an /r/iama. I'm moving to a more local startup company doing some B2B2C app for residential building owners providing services to their residents.

faint prism
#

Ik

#

That's why there was an uptick in COBOL devs recently

fluid basin
#

nice, supporting local startups is really great

#

hope you find a nice employer

umbral zealot
#

I already did πŸ˜„

#

Sorry, the startup itself provides the b2b2c apps, I'm going to work for them.

#

it's usewalter.com if you wanna take a look. Cool stuff, not as exciting as adult entertainment, but the techs used are some that I haven't used so I'm just learning new stuff.

fluid basin
#

wew netlify

faint prism
#

I can't click back when I select an option reeee

fluid basin
#

I'm assuming vue/angular for the website?

faint prism
fluid basin
#

oh gatsby

#

reactjs it is

#

no wonder the website structure looks so much like react

#

com.janitor.app really? weird org name LOL

umbral zealot
#

Because it's used by residents to request things, as one would a janitorial staff.

#

y'all are just gonna poke at this for hours aren't you. I really shouldn't link this anymore.

faint prism
#

Well yeah

#

We gotta explore this new company together :>

fluid basin
#

nah, just interested on their stack XD

umbral zealot
#

I think gatsby is only used for the site (since, y'know, it's a marketing site), but the stack itself is react, react-native for mobile, graphql for APIs (apollo), that's pretty much what I know.

fluid basin
#

wew, as expected from a company using react. The app is react native

#

ah nice

#

graphql, a nice one too

faint prism
fluid basin
#

at least they're willing to adopt new technologies

faint prism
#

mhm

#

that's a plus

umbral zealot
#

Well it's a startup so... yeah.

faint prism
#

Tbh their site and app pics look great

umbral zealot
#

imagine a startup buying an AS/400 and doing jquery development πŸ˜‚

faint prism
#

v modern looking

fluid basin
#

wait what official languages are there in canada

#

kinda nice also to see everything offered in english first

faint prism
#

FR and EN

fluid basin
#

ah

umbral zealot
#

most of these 1-star reviews are people that had an issue with the app and decided negative feedback were the way to go. Ugh. people.

faint prism
#

Yeah, that's the problem with people only wanting to leave feedback if they had a bad experience

earnest phoenix
#

lmao @thick gull why did you react with πŸ‘Ž to my server's rules

eternal osprey
#

hey

earnest phoenix
#

owo

thick gull
#

development

earnest phoenix
#

ok

faint prism
#

hey
@eternal osprey What's up?

earnest phoenix
#

more like WASSSAAAAAAAAAAAAAAAAP

#

Can you use Firebase's database in a Discord bot?
They don't have anything for Node.js applications

prisma oriole
#

i'm pretty sure there is a node sdk

drifting wedge
#
lvltog = pre["Levels_Toggled"]
KeyError: 'Levels_Toggled'```
#

why doesnt think work?

#

tjhats the error

#
levle = collection.find(guild_id2)
            for pre in levle:
                lvltog = pre["Levels_Toggled"]```
fluid widget
earnest phoenix
#

help me to fix this i dont know how
@fluid widget please send the code on https://hasteb.in because we cannot help without knowing what anarchy is going on in the back

faint prism
#

The first one sounds like a rate limit

fluid widget
#

this

faint prism
#

oh my

earnest phoenix
#

how do i see my shards lmao

#

i know i sound dumb rn

#

but never understood shards

misty sigil
#

client.shard

earnest phoenix
#

omg

misty sigil
#

there’s docs

earnest phoenix
#

that was it lmao

#

thank you

misty sigil
#

wait u on DJS?

earnest phoenix
#

ye

misty sigil
#

that’s client.shard

earnest phoenix
#

cheers mate πŸ™‚

faint prism
#

whitespace is important dude :kekw:

frozen crest
#

Hello can I get some help

faint prism
#

Hello can I get some help
@frozen crest just ask your question

misty sigil
frozen crest
#

How long do you think it takes for it for my bot to be done

faint prism
#

wat

earnest phoenix
#

huh

faint prism
#

what is "done"?

misty sigil
#

wHAT

frozen crest
#

I left my bot to this 2 weeks ago

misty sigil
#

6+ weeks

earnest phoenix
#

^

faint prism
#

I thought it was +5 wks for approval rn
edit: oh it is 6, damn

earnest phoenix
#

went up ig

frozen crest
#

Oh ok

#

Thanks for help

eternal osprey
#

@faint prism sorry, i have recently made a bot that send twitter mesasges to discord.

#

i there any way to do it the other way around?

faint prism
#

a webhook?

eternal osprey
#

yeah

vernal rivet
#

either webhook, or api.

ancient nova
#

does anyone have a moment to check out my website?

eternal osprey
#

i am using twit package

ancient nova
#

I need feedback

umbral zealot
#

@ancient nova this is not a web design feedback service.

ancient nova
#

oh

#

alright

#

I'm just asking people if they like the website I'm making, to make it look better to everyone

umbral zealot
#

I'm sure you can find a better place to ask people to rate your website. There are plenty of general programming guilds, maybe even some ux-specific ones.

vernal rivet
#

^^^^^^

restive furnace
fluid widget
ancient nova
#

alright @umbral zealot

faint prism
ancient nova
fluid widget
#

I did not understand you @faint prism

valid frigate
#

an internal server error?

faint prism
#

sounds like a ratelimit

valid frigate
#

wouldnt the library return something more descriptive in that case since it must be common?

faint prism
#

It might lose some details being inside a promise function, idk

valid frigate
#

hmm

fluid widget
#

I did not understand

valid frigate
#

wouldnt that mean that something is discords fault if its returning a 500

faint prism
#

regen token and try again with new token

#

ghost ping reee

fluid widget
#

you have a code ban timer @faint prism

faint prism
#

uhhh

earnest phoenix
#

wot moment

faint prism
#

sure

#

lol

fluid widget
#

@faint prism can you give me the code ban timer

earnest phoenix
#

wait wot

valid frigate
#

what is that

earnest phoenix
#

server?

faint prism
#

@faint prism can you give me the code ban timer
@fluid widget pls stop pinging me
I have no idea what you're asking me for

urban jacinth
faint prism
#

What is This Group?
@earnest phoenix This channel is for talking about development topics

restive furnace
#

Isn't thanks word, not a thing?

#

but ok

#

no

#

sorry

pale vessel
#

Not Me Sorry

restive furnace
#

i assume you're on js

little elk
#

!website

#

!site

#

?Website

restive furnace
#

js is a programming lang and @little elk #commands

little elk
#

Thx

restive furnace
#

lol no

#

It's guide written by idiots for beginners*

umbral zealot
#

what links

#

both the guides linked previously are perfectly fine

faint prism
#

yeah both are fine

#

I just got rick rolled.
@earnest phoenix Not sure if you mean that literally or not

#

When i say rickrolled i mean that it's no help yet.
@earnest phoenix That's not a rickroll...
That just means you haven't read the website links. Because it literally has a step by step guide

earnest phoenix
#
@client.command()
async def send(ctx,member:discord.Member,amount = None):
    await open_account(ctx.author)
    await open_account(member)
    if amount == None:
        await ctx.send('Please enter the amount of WCash to send')
        return
    bal = await update_bank(ctx.author)
    amount = int(amount)
    if amount>bal[1]:
        await ctx.send('You dont enough WCash to send')
        return
    if amount<0:
        await ctx.send('WCash must be positive')
        return
    await update_bank(ctx.author,-1*amount,'bank')
    await update_bank(member,amount,'bank')
    await ctx.send(f'You sent {amount} WCash to (member:discord.Member)')```
i get this reply ``You dont enough WCash to send``
though i have 98 and wanted to send 20
#

can someone help me with this?

compact otter
#

if amount>bal[1]:
await ctx.send('You dont enough WCash to send') check this line of code :D

earnest phoenix
#

isnt it the same lol

faint prism
#

What is the 8bl command?
@earnest phoenix It's just finding a random number then if it's above 50/100 say "true" else say "false"

#

Pretty easy to do

drifting wedge
#

Wuts a key error

faint prism
#

I'd imagine it means the index/key doesn't exist in the dictionary

toxic jolt
#

guys please help me its a my bot log's screenshot

client.on('guildCreate', guild => {
console.log('Bot added: ' + guild.name + ' ID: ' + guild.id)

client.shard.broadcastEval(`
const Discord = require('discord.js');

let cortex = new Discord.RichEmbed()

.setColor("GREEN")
.addField("Guild Name:", '${guild.name}')
.addField("Guild Owner", '${guild.owner}')
.addField("Guild ID", '${guild.id}'
.addField("Guild User Count:", '${guild.memberCount}')
.setThumbnail('${guild.iconURL}')
this.channels.get("604740616584429574").send(cortex)`)
})```
faint prism
#

green on black 🀒

toxic jolt
#

so many i started bot.

#

sorry πŸ˜„

faint prism
#

COLOR 0a ftw

toxic jolt
#

oh man look pls :c

#

what is this

thin turret
#

Read it

faint prism
#

RichEmbed

toxic jolt
#

its a impossible

faint prism
#

Use V12

toxic jolt
#

v12?

faint prism
#

yeah

toxic jolt
#

i using shard.js

faint prism
#

v11 is deprecated

slender thistle
#

I thought I told you what KeyError is

toxic jolt
#

my bot 310 k user and 4 k server :c

#

so many code change a v11 to v12

faint prism
#

yeah

toxic jolt
#

and my windows has been crashed now.

#

omg

faint prism
#

better do it in development and not in prod

toxic jolt
#

...

faint prism
#

l0l

#

guess view more details

toxic jolt
#

nice.

#

@faint prism

client.on("guildMemberAdd", async member => {
let use_channel = await db.fetch(`register_${member.guild.id}.channel`)
  if (!use_channel) return;
  member.setNickname(`Type a name`)```
#

i make it this but so high memory using now

#

discord.js v11

thin turret
#

Is that the entire block?

faint prism
#

}

toxic jolt
#

so many code.

#

sorry πŸ˜„

#

i dont send all code

thin turret
#

If you dont close that event it will stack with other events

#

Which will cause a memory leak

faint prism
#

If you dont close that event it will stack with other events
@thin turret wtf JS is insane

thin turret
#

Its just a matter of })

toxic jolt
#

okay but i dont send all my code

thin turret
#

i dont send all code
Just make sure that event actually closes before the next event inline

earnest phoenix
#

where can i get my patreon bearer token

toxic jolt
#

omg i dont fixed...

dreamy cedar
#

how i make the reaction work only if the user has specific permission or role

fickle sapphire
#

Using a filter in the function

shy turret
#

can sqlite dbs break from connections overwriting each other?

umbral zealot
#

not if you use WAL mode

#

as well as syncronous

#

look up PRAGMA for journal_mode and synchronous

earnest phoenix
#

thread locking :p

faint prism
#

lock (obj)

restive furnace
#

mutex

earnest phoenix
#

lock (obj)
@faint prism ew sync

#

semaphore slim is pretty good but it's still pretty bulky

#

it's like 71ns compared to lock around a few ns

#

What the fuck is a memory leak

faint prism
#

That should answer your question

sonic lodge
#

ooh cardi b's getting into programming

toxic jolt
#

Hello i how to view my bot top.gg dbl token?

sonic lodge
digital ibex
#

ooh cardi b's getting into programming
??????

ancient nova
#

does anyone how to hide your source code from other poeple viewing it? (html/js/css)

sonic lodge
#

because the comments demonstrate nicely the style of cardi b's tone

#

you can't

toxic jolt
#

@sonic lodge thanks bro

ancient nova
#

isn't there any way

#

I don't want poeple looking through my code

digital ibex
#

oh

#

i never read it

ancient nova
#

or make it harder to look at it

sonic lodge
#

there's no way to hide the front end bits

ancient nova
#

or encrypt it

#

any way?

digital ibex
#

you cant

ancient nova
#

what

digital ibex
#

probably can encrypt it, but theres no point

ancient nova
#

I'll try

digital ibex
#

its just unnecessary, inspect element & decrypt

#

also, why are you even trying to hide ur code?

ancient nova
#

because I don't really want poeple looking through ig

#

it*

digital ibex
#

uh ok

sonic lodge
#

there shouldn't really be anything sensitive

digital ibex
#

its not that big of a deal, you can view any sites client side code

toxic jolt
#

nice ^-^

#

thanks for helping @sonic lodge

ancient nova
#

@digital ibex yeah, still I'm not really okay with it

drifting wedge
#

how can i do if string 'true' or str 'false' not in arg

#

run this

digital ibex
#

how-

#

convert html to js?

#

wut

ancient nova
#

yeah well that works somehow like that

#

it uses js to decrypt the html code

thin turret
#

how can i do if string 'true' or str 'false' not in arg
@drifting wedge str === 'true'?

earnest phoenix
#

How can I use Turkish characters like â ğ ç ş in node-fetch? In URL
I tried to escape but I couldn't

drifting wedge
#

@drifting wedge str === 'true'?
@thin turret if not

digital ibex
#

get an api which url is in turkish or something

sonic lodge
#

encodeURI()

drifting wedge
#

so like not if str == true

#

if str is NOT true

digital ibex
#

oh yeah and that lol

thin turret
#

@thin turret if not
@drifting wedge use !==

digital ibex
#

what

#

use is

drifting wedge
#

!==?

thin turret
#

!== is not operator

digital ibex
#

idk what he's talking about

drifting wedge
#

oooh

#

python?

thin turret
#

str !== 'true'

digital ibex
#

not in python no

drifting wedge
#

ok

#

o ok

#

im python

digital ibex
#

thats not a thing in python p sure

thin turret
#

Are you python or js?

drifting wedge
#

py

thin turret
#

Sorry I assume you are js

digital ibex
#

use is 0Exe

thin turret
#

Or than for python

#

if not str === 'true':

ancient nova
#

can't you block the use of developer tools for poeple visiting your website though?

digital ibex
#

no

drifting wedge
#

?

#

the var name is arg

thin turret
#

Then replace it with arg

drifting wedge
#

str?

thin turret
#

so like not if str == true
@drifting wedge

drifting wedge
#

its not a boolean

#

its a str

#

so like its the word true

thin turret
#

if not str === 'true':
@thin turret

drifting wedge
#

not the value true

#

yea

#

if not arg == 'true' or 'false':

thin turret
#

Righr

#

So whats your question

drifting wedge
#

that

thin turret
#

That what

faint prism
#

if (myBalloon)

digital ibex
#

my balloon lol

half bear
#

am i going good? @opal plank

ancient nova
#

@digital ibex alright I decided to keep it decrypted

#

that's too much hastle

faint prism
#

?

half bear
earnest phoenix
#
await message.guild.channels.create(`ticket-${message.author.username}`, { type: 'text', permissionOverwrites: [
        {
            id: message.author.id,
            deny: ['VIEW_CHANNEL'],
        },
    ] });
``` Why wont this add any actual permissionOverwrites, It's like its ignored
ancient nova
faint prism
#

Just do something simple then

#

Like OTP

digital ibex
#

yeah, ide think it's possible thinking it through more

faint prism
#

What were you trying to do?

digital ibex
#

trying to encrypt client side code

#

so no one can see his code

faint prism
#

You can obfuscate it. But client-side is public

ancient nova
#

@faint prism yeah I did obfuscate it but the problem is, I would have to put the obfuscated code in the index too, which means I won't be able to edit the website anymore

faint prism
#

I wasn't really keep up with the convo prior to now..

#

oh

#

yeah

#

you can't do what you're asking

ancient nova
#

I see

faint prism
#

HTML is meant to be plaintext, so you know, it can be interpreted by the browser

ancient nova
#

yeah the thing is I have few strings of code that I REALLY want to hidr

#

hide*

faint prism
#

You can remove newlines to make it hard to read, but pretty-print is a thing so...

ancient nova
#

oh wait

faint prism
#

yeah the thing is I have few strings of code that I REALLY want to hidr
@ancient nova then you should not have them in the html...

ancient nova
#

I can just obfuscate only that part of code

#

I'm stupid

faint prism
#

no you're approaching this wrong

#

you should not have secrets in the html at all

#

That's what APIs are for

#

It sounds like you're asking for exactly what an API would give you

ancient nova
#

I see

#

I'll think about it

faint prism
#

an API is basically code that runs on your own protected server and sends the result to the client

#

So a website can be like: "Hey API, give me the data for X." and the API uses some secrets to build X and says, "Here you go website" hands over X.

#

@ancient nova And boom, no secrets exposed

ancient nova
#

I see

indigo folio
#

in discord.js how do i get total servers throughout all shards

#

using discord.js shardingmanager

ancient nova
#

@faint prism I just want to obfuscate meta parts of the html tbh

#

nothing else matters to me

faint prism
#

why

ancient nova
#

because I have card stuff in there

faint prism
#

Can you show an example?

ancient nova
#

uh sure

misty sigil
#

in discord.js how do i get total servers throughout all shards
@indigo folio broadcastEval

#

it returns a promise that resolves to an array

ancient nova
#

<meta charset="utf-8" />

earnest phoenix
#

PING

indigo folio
#

so i just have to add up each value in the array

faint prism
#

<meta charset="utf-8" />
@ancient nova That's needed by the browser

misty sigil
#

client.shard.broadcastEval("this.guilds.cache.size") then reduce it

faint prism
#

Why would you hide that

misty sigil
#

don’t use .then tho it doesn’t work

ancient nova
#

because I want to keep those parts private

indigo folio
#

i saw that but i was wondering if there was a simpler way of going about it

misty sigil
#

But that’s needed

#

i saw that but i was wondering if there was a simpler way of going about it
@indigo folio not really

faint prism
#

because I want to keep those parts private
@ancient nova metadata is supposed to be public

indigo folio
#

ok ty

earnest phoenix
#

@ancient nova use google analytics for your website

ancient nova
#

@misty sigil so there's no way to obfuscate/hide it or make it harder to acess IN ANY WAY?

misty sigil
#

There is

#

bUT WHY

ancient nova
#

like what?

misty sigil
#

ITS METADATA

#

it’s required

faint prism
earnest phoenix
#

what is your end goal

ancient nova
#

I just want to hide that and only that one part

faint prism
#

He's trying to hide some card data in metatags for some reason

misty sigil
#

BUHT WHYY

faint prism
#

no idea

ancient nova
#

BECAUSE

faint prism
#

use an api to hide data

ancient nova
#

just wanna hide it

misty sigil
#

ITS METADATAAAAAA

ancient nova
#

just because lol

earnest phoenix
#

why do you want to hide it

#

that's not a valid reason

misty sigil
#

you don’t hide metadata

faint prism
#

reeeee

ancient nova
misty sigil
opal plank
#

Yeah, you can come to my house, just dont look at the ceiling nor the floor, just look at the wall trophies

ancient nova
#

I've been trying to hide it

opal plank
#

thats basically what you are trying to do

ancient nova
#

already for like 2.5 hours

#

can't find a good way to do it

misty sigil
#

Don’t hide metadata

earnest phoenix
#

what's your reason to

faint prism
#

because nobody does it

#

and you shouldn't either

earnest phoenix
#

"because" is not a valid reason

faint prism
#

because that's not it's purpose

earnest phoenix
#

this is exactly why xyproblem forms

ancient nova
#

@earnest phoenix ok theres no reason I just don't feel like sharing that part of html code to anyone

misty sigil
#

bruh

faint prism
#

that's what an API is for

ancient nova
#

nothing else in particullar

misty sigil
#

it has to be shared

earnest phoenix
#

so dont have metadata there in the first place

ancient nova
misty sigil
#

Or just don’t put metadata

ancient nova
#

@earnest phoenix I need it for a lot of things

faint prism
#

what

earnest phoenix
#

html is always going to be public and you can't hide it, it tells the device how to behave

ancient nova
#

alright then I guess BC_sadness

opal plank
#

BEST case scenario use an api to make it harder to get that info

#

that wya you can dynamically inject code from api rather than having it directly on the site

#

js script to fetch from API => getByElementId() => replace content

faint prism
#

tfw hide secrets in your html just for your bot to scrape it bc you don't know how to make an API

ancient nova
#

alright

#

I have last idea

opal plank
#

lets hope its not as bad as the first one

#

lets hear it

ancient nova
#

couldn't I use document.write('obfuscated code)'

#

I mean

misty sigil
#

Don’t obfuscate html

#

please

faint prism
#

lmao

misty sigil
#

It’s so fucking stupid

faint prism
#

security through obscurity is no security

#

if I could star that, I would. Everyone should know that fact

opal plank
#

theres no reason whatsoever to hide stuff with html

ancient nova
#

alright

opal plank
#

out of curiosity, what exactly do you want to hide?

ancient nova
#

for some reason I feel unsafe sharing my keys, metas etc im html code

opal plank
#

i know you said meta, but what specxifically?

faint prism
#

"card stuff"

ancient nova
#

keys, cards, fonts etc

opal plank
#

keys you shouldnt share

#

cards as in url's?

#

you afraid of copied content?

ancient nova
#

well I guess you could say that

opal plank
#

Hmmm

#

you could lower res or add watermark

ancient nova
#

I see but what about the keys

opal plank
#

do you NEED keys?

#

and keys for what?

#

without a proper explanation of what it is i cant think of a way to help you find a better solution

faint prism
#

sounds like you just need a database or an api

ancient nova
#

like for example adding image to a card you paste a key to get that image from your assets

opal plank
#

then rather than doing that

ancient nova
#

someone can take that key

#

paste it to their code

#

and they have my stuff

opal plank
#

database then

ancient nova
#

I don't like that

earnest phoenix
#

key? isn't that just the path to the file

opal plank
#

host the images in your own website

#

example

ancient nova
opal plank
#

website/assets/(filename)
fetch from database or somewhere for a href to replace the last bit of the url

faint prism
#

You can't use HTML metatags in place of a database. Wtf, I shouldn't have to say that reeeeee

earnest phoenix
#

your client (browser) is going to make a request to the image anyways which will show in console and networking tab so there's no point in hiding it

opal plank
#

or base 64 it across the client

#

make a small bomb lmao

ancient nova
#

I just realised how easy it is to steal content from someone lol

opal plank
#

get the client to convert base64 into their browser

earnest phoenix
#

firefox evaluates b64 properly

opal plank
#

it SHOULD be fine to use b64 but i cant see if being friendly whatsoever if you start doing it a lot

#

no url there

#

Β―_(ツ)_/Β―

#

nor keys

faint prism
#

b64 is not security

ancient nova
#

I mean like I can go to facebooks page , get's it source and make my own website with it called firebook.xyz and boom I'm a billionare like Mark Zuckerberg

opal plank
#

it isnt about security

earnest phoenix
#

it seems like you're misusing html

opal plank
#

he wants to not have keys in the html

misty sigil
#

I mean like I can go to facebooks page , get's it source and make my own website with it called firebook.xyz and boom I'm a billionare like Mark Zuckerberg
@ancient nova no.

opal plank
#

im providing ways he can avoid it

misty sigil
#

You need backend too

faint prism
#

If I see base64 I always decode it

ancient nova
#

I'm just saying

misty sigil
#

and then the database systems

ancient nova
#

not that you could actually do thst

misty sigil
#

You can’t do that

ancient nova
#

so easily

misty sigil
#

why did you say it then

ancient nova
#

I said it as an example

earnest phoenix
#

you need a backend server if you don't want to expose api keys, fin. every other attempt at a solution makes you look like an idiot

#

Shitty example then

opal plank
#

like i told him auger, he can use a logo/watermark to prevent stolen assets.
His next concern was keys, which is from what i gathered the identifier of the card
With a database he can request the card by name rather than key and beam the b64 converted image to the client
@faint prism

obtuse niche
#

Yeah just copy each page

#

Hahah

ancient nova
#

I see

earnest phoenix
#

disable CORS on your backend and you're good

faint prism
#

So are you trying to scrape your own website html or something

ancient nova
#

no all I wanna do is hide like 4 lines of code with like 4k chars at max but

#

I'm giving up

misty sigil
#

just don’t hide it

#

hiding shit in html is useless

opal plank
#

just dont put sensisitve shit in the html

misty sigil
#

ITS FRONTEND ITS SUPPOSED TO BE DISPLAYED oooooooooooh

faint prism
#

reminds me of a Google CTF a while ago about a JS Safe 2.0 or something

ancient nova
#

alrighty then

#

well I'll take you guys words and try using your methods

faint prism
#

I think that's it

opal plank
earnest phoenix
#

i miss doing CTFs

#

literally no time to participate in any

#

:(

faint prism
#

rip

earnest phoenix
#

so i'm making a bot in BDscript and I was wondering if there's a way to use a user's username instead of mentioning them

#

like how dankmemer does

misty sigil
#

By making a bot in js or similar languages

earnest phoenix
#

go nag the developer

misty sigil
#

or that

#

because I can guarantee about nobody here knows, nor likes, BDScript.

earnest phoenix
#

ok

faint prism
#

so i'm making a bot in BDscript and I was wondering if there's a way to use a user's username instead of mentioning them
@earnest phoenix embeds don't mention users

earnest phoenix
#

nobody provides support for bot makers because you don't have direct control over the code, go nag the developer of the maker for that

#

yeah but they get mentioned when you run the command

faint prism
#

then code it differently

grizzled raven
#

man i dont know what to uh

earnest phoenix
#

ok how would i do it in javascript?

#

depends which library

grizzled raven
#

eh i'm replying to an old message lol

#

but

#

does discord contact you about your verification form via email?

earnest phoenix
#

ES5+BD.js is the java library i'm using

#

Is it normal for the node not to respond after starting its bot? When mine says "Ready!", I can't give any more commands on the terminal.

misty sigil
#

bruh

#

yes

faint prism
#

l0l

misty sigil
#

kek

faint prism
#

Is it normal for the node not to respond after starting its bot? When mine says "Ready!", I can't give any more commands on the terminal.
@earnest phoenix yeah. Because it's a running CLI application

#

you can interact when the node process exits

#

and unless you are reading in a character(s) from console, then it's output only

earnest phoenix
#

Oh, thanks> _ <

iron mantle
#

how do i get a bot in my server

faint prism
#

how do i get a bot in my server
@iron mantle invite one

iron mantle
#

o k

opal plank
#

i killed my debugger console again with the sheer spam lmao

#

fml cant believe imma have to restart cuz of this

faint prism
#

rip

opal plank
#

Uuugh this is a bother

#

lemme at least add some extra shit before i do that

somber wigeon
#

Hello

vernal rivet
#

hi

boreal iron
#

Hey, just a quick question...

For example GET GUILD CHANNELS
Returns a list of guild channel objects.

Is it possible to define the fields of the channel object I wanna receive instead of receiving the whole object?

#

(within the request)

faint prism
#

Hey, just a quick question...

For example GET GUILD CHANNELS
Returns a list of guild channel objects.

Is it possible to define the fields of the channel object I wanna receive instead of receiving the whole object?
@boreal iron Can you give an example?

#

Because you can get a guild or all guilds and filter it by a channel or channels that match a specific property

opal plank
hushed berry
#

opinions on what

opal plank
#

still adding some extra monitors to the bot, though this is only the twitch one

#

on how it looks

lime gorge
#

Hey guys, have any of you had success sending a buffer as an image attachment? (using discordjs)

#

Trying to do so, but all I can get is the following when sending a valid png buffer

#

File size is right, works when writing to disk then sending using the path to the img

boreal iron
#

@faint prism
Example API request: GET /channels/{channel.id}/messages

It will return a list of messages as object.

I don’t need to receive the whole message object.
Just need the message[id] and message[content]

hushed berry
#

you cant

#

@boreal iron

opal plank
#

^^

lime gorge
#

yup, doing so

#

just can't get the image to display, either with or without passing a filename as argument

#

Β―_(ツ)_/Β―

opal plank
#

if you save that same file sent and open it, opens fine as an image?

lime gorge
#

yup, writing the buffer to a file and reading from same file works fine

#

or even sending from that file for that matter

opal plank
#

not sure if the message :image works with buffer

lime gorge
#

its just sending the buffer directly that somehow doesnt create a preview

boreal iron
#

Ok ty

opal plank
#

for embeds i mean

lime gorge
#

oh, its a regular attachment

opal plank
#

did you provide the extension and such?

#

pic.png?

lime gorge
#

yup, well, the filename

#

both with and without

#
const attachment = new Discord.MessageAttachment(buf, 'image.png');``` Β―\_(ツ)_/Β―
opal plank
#

hmmmm i havent had that problem before, though i dont usually send them

#

i guess a workaround is to simply use locally

#

though thats a bit odd

#

actually

#

holdup

#

i may know the culprit

lime gorge
#

well, kind of a wreck in term of perf and disk usage having to write the image to disk then reading from it instead of directly passing the buffer from memory, but guess I don't have a choice

opal plank
#

gimme 1 sec

#

Try it this way

modest smelt
#

anyone here play among us?

opal plank
#
let buff = you know the drill

<channel>.send('test', {files: [buff]})
#

my bad

lime gorge
#

aight, lemme see

opal plank
#

i edited

#

actually

#

my bad again, you need that as second param

#

i just noticed that field i was checking is second parameter

lime gorge
#

Don't think you're tagging the right guys πŸ˜›

#

But yeah, let's see

opal plank
#

oops lmao

lime gorge
#

nope, and for some reason discord defaults to a jpg

opal plank
#

Hmmmmm

#

doesnt....

#

holdup

#

i have seen a friend encounter the same issue

#

but im not sure it has been fixed

lime gorge
#

this almost makes me miss doing string extraction with from executables in node lol

opal plank
#

yeah im lost on this one too tbh

lime gorge
#

Same, works perfectly offline, its kinda peculiar, encoding input to images uses rgba as values, but never had any probs loading the images anywhere else

opal plank
#

i thought the repo i first showed was outdated

#

then i went to the recent docs to check under the <channel>send()

#

which does have attachments

#

but i guess theres something missing

lime gorge
#

yeah, guess i'll have to find some workaround, thanks for looking though!

opal plank
#

sorry for not being able to help any further

faint prism
#

anyone here play among us?
@modest smelt #general

opal plank
lime gorge
#

Not bad!

opal plank
#

yay ty

lime gorge
#

I'm kinda stuck on my end, can't verify my bot cuz my ID is expired lol

opal plank
#

im gonna cry if my verification on twitch comes before my discord one

#

Cuz leviathan started as a Discord Bot

lime gorge
blissful nexus
#

Sad

opal plank
#

F

lime gorge
#

Only the French administration takes 2month to renew an ID

#

Β―_(ツ)_/Β―

opal plank
#

Can u not use passport instead?

#

or depeding on your age, a guardian/parent

lime gorge
#

Passport expired last month too, same time as ID, i'm 25, so no "guardian" to help here, just gotta wait for the administration to take its time.

trim saddle
#

oh shit

opal plank
#

F in chat then

lime gorge
#

Only stripe would deny a month old expired ID

trim saddle
#

verification effects go active next month 0_PogChamp

lime gorge
#

Would still be valid for anything else here.

opal plank
#

same here

blissful nexus
#

Can you just show them a bill with your name on it???

opal plank
#

DNA samples should work too mmulu

iron mantle
#

wait

opal plank
#

waiting

iron mantle
#

how do i invite a bot into my server

opal plank
#

with an url/invite

iron mantle
#

im dumb so im getting my friend and cousin on it

lime gorge
iron mantle
#

oh ocean man
take me by the hand
give me a sun tan
lead me to the land
a place you understand

opal plank
iron mantle
#

ok

earnest phoenix
#

how can i use slice and join here ${sampiyon[oh.freeChampionIds]}

lime gorge
#

But yeah, regarding the images, guess i'll just write them with a random filename, send and then delete file

#

Just creates unnecessary write time and stress to the disk, tho this bot is mostly on private servers

opal plank
#

@earnest phoenix what?

sage bobcat
#

One message removed from a suspended account.

drifting wedge
#
async def prefix(ctx):
    mongo_url = "url"
    cluster = MongoClient("pp")
    db = cluster["db3"]
    collection = db["prefixes"]
    guild_id = int(ctx.guild.id)
    guild_id2 = {"_id": guild_id}

    prf = collection.find(guild_id2)
    for pre in prf:

        preefix = pre["prefix"]
client = commands.Bot(command_prefix = f"{preefix}")```
#

how can i make this work

earnest phoenix
#

I'm trying but I'm getting an error ${sampiyon[oh.freeChampionIds].slice(0,5).join('\n')}

#
TypeError: Cannot read property 'slice' of undefined
opal plank
#

then sampiyon[oh.freeChampionIds] is undefined

#

log that value beforehand

#

@earnest phoenix

silver lintel
#

How do I save a canvas into a embed thumbnail?

earnest phoenix
#

I need big help

#

I have some code I want to have in a discord bot

#

And I'm using js and termux

#

But I big confused on how to set up what I need to code and where to do so

silver lintel
#

what are you confused about? is this your first time? do you know javascript l? what code do you want?

earnest phoenix
#

It's my first time. I know JavaScript and have the basics of my commands already written

silver lintel
#

okay, what are you confused about? whats the problem

earnest phoenix
#

I just don't know what to do once I'm in termux

#

Like how to set everything up to the point where I can enter the code

silver lintel
#

ahh, you need to login with your token

opal plank
#

thats one -5IQ of cooldown your commands

silver lintel
#

yes

earnest phoenix
#

Hm?

opal plank
#

that function simply says you can use the command after 3 seconds, it doesnt block any other attempt

earnest phoenix
#

Oh yeah that's on purpose

opal plank
silver lintel
#

and it just sends the message after 3 seconds

earnest phoenix
#

It needs to log a certain message exactly three seconds after you make the command

silver lintel
#

doenst do anything

opal plank
#

then use a collector

earnest phoenix
#

He just wants to send a message after 3 seconds

#

I'm really new at this and this command will work . It might not be as clean as a collector but it should do its job

#

Why a collector

#

I don't know ;-;

opal plank
#

It needs to log a certain message exactly three seconds after you make the command

#

thats the whole point of a message collector