#development

1 messages · Page 1253 of 1

graceful drift
#

also pretty sure get uses round brackets

#

but may be wrong

modest smelt
#
    channel = client.get_channel(guildInfo.get[str(member.guild.id)])
TypeError: 'builtin_function_or_method' object is not subscriptable```
#

@graceful drift

graceful drift
#

you need to use round brackets @modest smelt

modest smelt
#

for everything?

graceful drift
#

[] tries to index it like it's a list

modest smelt
#

ok

graceful drift
#

yes

next flax
#

How can i Set Status To my Bot
bot.on("ready", () => console.log(`${bot.user.tag} music is setup `))

#

here is my ready event

#

Me New 😄

wicked pivot
#
          if(first == second == third){//this
                if(first && second && third == "![detente_casino](https://cdn.discordapp.com/emojis/756891193350029404.webp?size=128 "detente_casino")"){
                    return msg.edit(embedfinalwinseven)
                }else{
                    return msg.edit(embedfinalwin)
                }
            }else if(first == second || second == third || first == third){
                return msg.edit(embedegal)
            }else if(first !== second && second !== third && first !== third){
                return msg.edit(embedloose)
            }```
this does not work
#

it's kind of a casino but even when i win it doesn't work

next flax
#

@wicked pivot u have any idea 😄

#

?

fathom topaz
#

what do u prefer lava link or other apis

earnest phoenix
#

how to i make v12 bot help!

fathom topaz
#

Go to my

#

Profile

#

Go to my yt

wicked pivot
#

@next flax use "setPresence"

fathom topaz
#

And see my tutorial

vernal rivet
#

@next flax did you check docs?

fathom topaz
#

@G

next flax
#

ok

fathom topaz
#

Yes

#

Anybody code on mobile

#

I don't but jus tellin

midnight blaze
#

when would you use void expression in a js code?

vernal rivet
#

If you don't want to return a type

tender zealot
#

Hi

vernal rivet
#

Void doesn't have a return type, so it usually is used for methods/function that doesn't return anything. Return keyword can still be used in a void method/function, but it can't return anything

#

Hi

restive furnace
#

@fathom topaz @earnest phoenix does

#

and his bot is pretty good

earnest phoenix
#

Hello

restive furnace
#

(and sorry for ping voltrex lol)

earnest phoenix
#

Anybody code on mobile
@fathom topaz I do, got any questions?

#

when would you use void expression in a js code?
@midnight blaze To do functions but return no result, as it's meant to return undefined

silk chasm
#

ok so i am leaving python and start learning javascript... fuck you python

restive furnace
#

js isn't easier than python to newcomer

#

you just gotta learn the basics

restive pebble
silk chasm
#

js isn't easier than python to newcomer
@restive furnace it's not my choice i m forced to do it cuz of some unknown error

#

and i think js is short and easy than python

restive pebble
#

k

vernal rivet
#

Js is as easy as py, idk where people are thinking it's harder. They are about the exact same

restive furnace
#

py errors might be more complicated, but overall they're pretty much same

earnest phoenix
#

Js or py none are easier than each other, it's just the fact that you should go with the one that comforts you

vernal rivet
#

^^^

silk chasm
#

and many people use js more so it would be easier to understand what the hell they talk cuz i see them writing so much commands and i only talk with pythonists so imma learn js thats it

earnest phoenix
#

JavaScript or Python is hardly human readable but easier, languages such as C++ are more human readable but way harder than these

vernal rivet
#

shrug I prefer js over py any day. It's more about syntax. I hate whitespace syntax, and it annoys me when I can't use semis at all.

earnest phoenix
#

But the errors tho, it's just that you have to handle your errors correctly, but in a efficient way related to the programming language you're using

vernal rivet
#

Mhm

silk chasm
#

i just saw that python tutorial was of 6hrs but js is of 1hr only...

opal plank
sudden geyser
#

I'd say Python is more beginner friendly than JavaScript or C++

#

There are too many flavors of JavaScript

vernal rivet
#

Js is more flexible in code style. Py is more strict on code style

opal plank
#

both have its perk tbh

vernal rivet
#

Mhm

opal plank
#

i just personally prefer Ts

vernal rivet
#

Ts is god

opal plank
#

it has the safe guards while also being Js

earnest phoenix
#

Hi

silk chasm
#

so at end js is better or not

opal plank
#

o/

fathom topaz
opal plank
#

its preference

#

to be completely honest

vernal rivet
#

I will take a language where type matters over ones that type doesn't matter

sudden geyser
#

TypeScript is about correctness but in the end you're still inheriting some of JavaScript's problems

fathom topaz
#

Get

#

Rickrolled

sudden geyser
#

ok

opal plank
vernal rivet
#

^^

fathom topaz
#

Ok

silk chasm
#

can we list the benefits of javascript

opal plank
#

can run rather easily on web

sudden geyser
#

It's easy and popular.

earnest phoenix
#

TS is just javascript with type guards

vernal rivet
#

It can be run in a V8 environment

opal plank
#

js is more of a web lang, py iirc is more multi-usage

sudden geyser
#

Atwood’s law:

“Any application that can be written in JavaScript, will eventually be written in JavaScript”

vernal rivet
#

J's is more scripting, and py is a go lang

#

Go

restive furnace
earnest phoenix
#

Hmm yes, the floor here is made out of floor

sudden geyser
#

doubt

vernal rivet
#

Gp*I hate autocorrect

opal plank
#

C++ beginner friendly

silk chasm
restive furnace
#

uhh, it really is, that book explains everything.

vernal rivet
#

Cpp is always beginner friendly Sadness I started with it

earnest phoenix
#

C++ is like Java but easier

silk chasm
#

c++ can never be a beginner friendly lang...lol

sudden geyser
#

not really volt

opal plank
#

here

#

friendly

earnest phoenix
#

Java is the hell redefined

restive furnace
#

c++ can never be a beginner friendly lang...lol
@silk chasm how so?

opal plank
#

friendly

sudden geyser
#

That's like saying Rust is beginner friendly because their book is simple to read

restive furnace
#

not really, same as any other lang

opal plank
#

fuck, it, go haskell

vernal rivet
#

Cpp is very rough for newer programmers. It's extremely rough, but I mean I survived

earnest phoenix
#

It's like saying brainfuck (A programming language) is beginner friendly because it might look easy

restive furnace
#

what about jsfuck?

vernal rivet
silk chasm
#

ok guys say something good about js so that i won't feel bad in leaving pythong and starting js

earnest phoenix
#

guys

opal plank
#

is this technically a lang war?

earnest phoenix
#

it's getting offtopic

#

jsfuck is at least understandable

vernal rivet
#

Nah man, it's like saying glass is beginner lang

sudden geyser
#

@silk chasm it's extremely popular. You can probably do anything in JS at this point.

silk chasm
#

ok guys say something good about js so that i won't feel bad in leaving pythong and starting js

vernal rivet
#

Ok time to move this

restive furnace
#

it's getting offtopic
@earnest phoenix not really, talking about programming langs is kinda development

silk chasm
#

@silk chasm it's extremely popular. You can probably do anything in JS at this point.
@sudden geyser good say more

sudden geyser
#

Like, people have the choice to use native APIs to write GUIs, but they prefer to use Electron because they don't have to change up their code base.

earnest phoenix
opal plank
#

@silk chasm

earnest phoenix
#

ok guys say something good about js so that i won't feel bad in leaving pythong and starting js
@silk chasm Easier, more human readable, runs web environment easier

misty sigil
#

use addFields please

opal plank
#

@earnest phoenix addFields() ffs

earnest phoenix
#

While you're talking about rust, c++, javascript, python, i am here coding in java.

opal plank
restive furnace
#

why C# forgotten 😢

sudden geyser
#

It's hard to think of advantages to JS since I haven't touched it in a while, and other languages I've used simply do more than JS could do, but for a beginner, learn it and see if you like it. You don't need a particular reason to use something. A lot of people like writing Haskell yet I have not found a reason to use it yet.

vernal rivet
#

Rip

earnest phoenix
#

@restive furnace it's microsoft's java

restive furnace
#

yes, but still

#

many ppl use it tho

drifting wedge
#

how can i check if arg = to a set of numbers

#

like if arg = 1 do this

#

if arg = drnfdfuhoufdb do that?

#

py

#

just another question

#

with python, you can do everything other languages do?

#

just in other ways?
or r there limitations?

restive furnace
#

not everything, every lamguage has it's limits.

sudden geyser
#

Every language has its ups and downs.

earnest phoenix
#

.addFields("📑 Channels", ${server.channels.size}, true)?

sudden geyser
#

I like Python because it's very simple and, as a scripting language, would prefer it any day of the week over JS.

drifting wedge
#

ah

#

i only prefer it wednesdays

#

the other days i use discord.pp

restive furnace
#

many native apps use python for build scripts too.

sudden geyser
#

But Python is known for being slow. Yet I'm weighing productivity over speed.

#

what about thursdays o.o

drifting wedge
#

discord pp is so good

#

not py, pp

silk chasm
#

** it is better to use Python for backend development and stick to JavaScript for frontend.**
this sentence was in the article can u explain what is frontend and backend

#

??

tired nimbus
#

I know this question is pretty dumb but
how do you enable rest mode in eris?

restive furnace
#

front end = website

#

back end = rest api and the bot

sudden geyser
#

frontend = html, css, js // what the user sees.
backend = what the user doesn't see: other langs, sql, etc.

vernal rivet
#

Rip

drifting wedge
#

how can i check if arg = to a set of numbers
like if arg = 1 do this
if arg = drnfdfuhoufdb do that?
py

tired nimbus
#

Eris's REST mode is disabled by default and Im kinda new to it so how exactly do you enable it?

sudden geyser
#

It's in the client options when you initialize the client.

tired nimbus
#

ok hold on let me see

sudden geyser
#

It's somewhere in the docs on the client class

restive furnace
#

@tired nimbus js new Client(token, { restMode: true });

tired nimbus
#

oh ok

drifting wedge
#

is eris good?

#

what lang is it using?

restive furnace
#

depends

#

and js

drifting wedge
#

coolio

tired nimbus
#

I didnt see it in the docs but thanks

silk chasm
#

front end = website
@restive furnace means like the dashboard of bot can be made by js and the bot by python?

restive furnace
#

ye

earnest phoenix
#

.addFields("📑 Channels", ${server.channels.size}, true)?
@earnest phoenix js MessageEmbed.addFields() takes an array as a parameter

restive furnace
#

rough example is that bot is made in c++ and dashboard with js + vue.

#

and no problems

opal plank
#

@earnest phoenix you will recieve a message from @gilded plank if your bot gets approved

silk chasm
#

ye
@restive furnace that completely means that js is better so website and bot both can be made by me...yasssssssssssssssssssssssss

opal plank
#

np

earnest phoenix
#

@sinful belfry qt

#

WOOPS

restive furnace
#

@restive furnace that completely means that js is better so website and bot both can be made by me...yasssssssssssssssssssssssss
@silk chasm it doesn't make JS better

earnest phoenix
#

WRONG CHANNEl

opal plank
earnest phoenix
#

SORRY GUYS

silk chasm
#

@silk chasm it doesn't make JS better
@restive furnace but still u told me somethin' that made me ultra motivated...thanks!

opaque seal
#

I made this function to check if some text contains something like {word1//word2//a phrase} and substitude that whole thing with one of the options inside it, any suggestion on how to improve this?

const regExp = /{.+?}/
const matched = newName.match(regExp);
const groups = matched.slice(1);
groups.forEach(group => {
    let options = group.split('//');
    let selected = options[Math.floor(Math.random() * options.length)];
    newName.replace(group, selected);
})
earnest phoenix
#

Bruv

opal plank
#

@earnest phoenix you mean submitting or approval?

earnest phoenix
#

H m m

restive furnace
#

@restive furnace but still u told me somethin' that made me ultra motivated...thanks!
@silk chasm well go with JS then ¯\_(ツ)_/¯

opal plank
#

submitting it should be instant, the moment you put your bot on top.gg it shows up in #logs

silk chasm
#

@silk chasm well go with JS then ¯\_(ツ)_/¯
@restive furnace ok that emoji thing removed my motivation

restive furnace
#

@restive furnace ok that emoji thing removed my motivation
@silk chasm lmao

#

actually you can use 90% of py in the dash too

opal plank
#

are you sure you finished the submission?

#

all good

silk chasm
#

actually you can use 90% of py in the dash too
@restive furnace why tf r u trying to demotivate meh

restive furnace
#

@restive furnace why tf r u trying to demotivate meh
@silk chasm what i'm just ✨ saying ✨

opal plank
#

then thats the problem

#

just fix it and resubmit

#

stuff about your bot

restive furnace
#

it's not essay

opal plank
#

try not to list many commands if possible

#

what does your bot do?

#

why is it better than other bots?

#

what are the key features of it?

restive furnace
#

I can get 200 words about just writing text how the bot works and Privacy stuff

leaden rover
#

How do I make an easy changeable prefix command? As in with discord.py

opal plank
#

ty

#

oh frick my rp went off

#

Aight, now its time to get my hands dirty again with Twitch API BS

earnest phoenix
#

the patreon api is even worse

#

undocumented mess

opal plank
#

undocumented is a thing

#

but when this shit is DOCUMENTED and doesnt work half of the fucking time, thats when it pissed me off

opaque seal
#

Why isn't this RegExp mathing something like {test//another}

const regExp = /{(.+?)}/g
earnest phoenix
#

How do i make my bot send a automatic message, when its added?

opal plank
#

IRC limits bending me over like a lil bitch not gonna lie

#

either the lib is doing requests in the background or the api dislikes me

#

the former being more likely

#

but i dont see anything that exposes nor handles the limits, so im having to do guess work

earnest phoenix
#

tried sniffing the traffic? i know it's reaching but it's worth to check it out w something like wireshark

acoustic sandal
#

TokenError
at Strategy.OAuth2Strategy.parseErrorResponse (/rbd/pnpm-volume/99237f07-02b4-47d9-b8fb-f2bca84951f8/node_modules/.registry.npmjs.org/passport-oauth2/1.5.0/node_modules/passport-oauth2/lib/strategy.js:358:12)
at Strategy.OAuth2Strategy._createOAuthError (/rbd/pnpm-volume/99237f07-02b4-47d9-b8fb-f2bca84951f8/node_modules/.registry.npmjs.org/passport-oauth2/1.5.0/node_modules/passport-oauth2/lib/strategy.js:405:16)
at /rbd/pnpm-volume/99237f07-02b4-47d9-b8fb-f2bca84951f8/node_modules/.registry.npmjs.org/passport-oauth2/1.5.0/node_modules/passport-oauth2/lib/strategy.js:175:45
at /rbd/pnpm-volume/99237f07-02b4-47d9-b8fb-f2bca84951f8/node_modules/.registry.npmjs.org/oauth/0.9.15/node_modules/oauth/lib/oauth2.js:191:18
at passBackControl (/rbd/pnpm-volume/99237f07-02b4-47d9-b8fb-f2bca84951f8/node_modules/.registry.npmjs.org/oauth/0.9.15/node_modules/oauth/lib/oauth2.js:132:9)
at IncomingMessage.<anonymous> (/rbd/pnpm-volume/99237f07-02b4-47d9-b8fb-f2bca84951f8/node_modules/.registry.npmjs.org/oauth/0.9.15/node_modules/oauth/lib/oauth2.js:157:7)
at IncomingMessage.emit (events.js:185:15)
at endReadableNT (_stream_readable.js:1106:12)
at process._tickCallback (internal/process/next_tick.js:178:19) what say ı am not understand

earnest phoenix
#

How do i make my bot send a automatic message, when its added?
@earnest phoenix

#

you cut more than half of the error message off

opal plank
#

i can prob give it a try, the problem though is the stupid amount of traffic going outbound and inbound

midnight blaze
#

@earnest phoenix i still don't get why you want to return nothing. That doesn't make any sense.

opal plank
earnest phoenix
#

@earnest phoenix in which library

opal plank
#

imagine wiresharking this

earnest phoenix
#

oh

#

yuck

opal plank
#

yeah

earnest phoenix
#

@earnest phoenix in which library
@earnest phoenix discord.js

opal plank
midnight blaze
#

Can someone give me an explanation when it's useful to use void in js?

earnest phoenix
#

js has void?

vernal rivet
#

Yes

opal plank
#

void is when you dont need to recieve the returned value

#

aka, void it

earnest phoenix
#

interesting

opal plank
#

you'll likely see static void in a lot of places

midnight blaze
#

Ok. But why!!

earnest phoenix
vernal rivet
#

Void doesn't have a return type. It is use for methods/functions that doesn't need to return anything

midnight blaze
#

I know what it does

opal plank
#

wdym why? its what it does

midnight blaze
#

But when or where to use it 🤔

opal plank
#

if you dont need the returned value, void it

earnest phoenix
#

It is use for methods/functions that doesn't need to return anything

vernal rivet
#

When you don't need to return anything

midnight blaze
#

Ok. I see that 😅 but I can't think of an example

#

Where that would be useful

opal plank
#

remote execution

#

say you want a function that sends an api call

#

why would you want to return a value from that?

#

just do the call

#

period

#

@earnest phoenix nice

vernal rivet
#

By default Js methods are the type of void. They change it's type when it returns something

midnight blaze
#

I see, but you can create functions w/o a return. Isn't that the same?

earnest phoenix
#

I made this function to check if some text contains something like {word1//word2//a phrase} and substitude that whole thing with one of the options inside it, any suggestion on how to improve this?

const regExp = /{.+?}/
const matched = newName.match(regExp);
const groups = matched.slice(1);
groups.forEach(group => {
    let options = group.split('//');
    let selected = options[Math.floor(Math.random() * options.length)];
    newName.replace(group, selected);
})

@opaque seal

vernal rivet
#

Yes

opal plank
#

sure

vernal rivet
#

Methods and functions follow the same return type rule

midnight blaze
#

When I create a function without a return. Isn't that like using a void?

vernal rivet
#

Yes

opal plank
#

indeed

opaque seal
#

@earnest phoenix yeah the /g was fucking it up

opal plank
#

its even more relevant on typescript where you need to infer the types of your functions

#

already did

vernal rivet
#

Mhm

midnight blaze
#

Ok. Then I don't know why people even use void on js.

earnest phoenix
#

its even more relevant on typescript where you need to infer the types of your functions
generics mmLol

opal plank
#

i gave u an example davon

earnest phoenix
#

Sometimes it's just used to make things smaller, for example, instead of typing undefined, you can do void 0

restive furnace
#

Ok. Then I don't know why people even use void on js.
@midnight blaze because they don't need a return value?

midnight blaze
#

Then create a function without a return

restive furnace
#

like setStatus?

vernal rivet
#

That's what a void method/function is

opal plank
#

function sendTextToAPI(text):void { api.send(text) }

vernal rivet
#

Ah yes ts syntax

opal plank
#

or promises

#

ive had to assert type void on promises a couple times

vernal rivet
#

Mhm

earnest phoenix
#

Or something like this

function send(content) {
void ChannelHandler.appendMessage(content);
}```
opal plank
#

75

#

and you need it to be approved first

#

@earnest phoenix to get bot tick you need to submit it once you have 75 servers to discord

earnest phoenix
#

i'm assuming void also has its advantages because of the GC

#

GC instantly picks it up since it's marked as void

vernal rivet
#

By default variables are type of any. Methods/functions are void by default unless told other wise in comment blocks using the return tag.

opal plank
#

i have way too many any's floating in my code

vernal rivet
#

Lol

opal plank
vernal rivet
#

I use comment blocks using the type and param tags now

earnest phoenix
#

when you pull a lib from npm
and it doesn't have type definitions
:(

vernal rivet
#

Oofers

opal plank
#

npm @types

earnest phoenix
#

my luck is that it won't exist

#

void is completely something that js devs implemented when they were drunk, like tell me the difference between

void message.channel.send("bruh");``` and
```js
message.channel.send("bruh"); undefined;```
opal plank
#

it likely exist

midnight blaze
#

That is why I am confused

flint yew
#

anyone help

opal plank
#

@earnest phoenix second returns undefined, it ACTUALLY has a value returned, void doesnt return ANYTHING

midnight blaze
#

Oh

earnest phoenix
#
this.client.users.fetch()```
opal plank
#

though logic wise they work the same

#

not compiler wise

vernal rivet
#

Fetch user doesn't exist on the client type

midnight blaze
#

Wait void doesn't return anything at all

earnest phoenix
#

like i said void also has GC advantages

vernal rivet
#

Yes

earnest phoenix
#

@earnest phoenix second returns undefined, it ACTUALLY has a value returned, void doesnt return ANYTHING
@opal plank Absolutely no, both has no value

opal plank
#

with void it doesnt even read the value

#

the compiler doesnt expect anything

midnight blaze
#

So the performance is better?

flint yew
#

TypeError: this.client.users.fetch(...) is not a function

#

@earnest phoenix

tired nimbus
#

I LOVE ERIS

earnest phoenix
#

Wait weren't you using commando @flint yew

flint yew
#

yea

opal plank
#

commando, yikes

flint yew
#

its commando

vernal rivet
#

Oofers commando

earnest phoenix
#

Commando, more like please make me a command handlero

vernal rivet
#

Isn't it safer to have it be void, than undefined?

opal plank
#

void isnt READ

vernal rivet
#

Right

opal plank
#

undefined is READ but has no value

midnight blaze
#

So void has a value?

earnest phoenix
#

a void is a void

opal plank
#

void voids it

#

as the name suggests

earnest phoenix
midnight blaze
#

I void people

vernal rivet
#

I know that part. But when a undefined method is called on it acts like a void correct?

earnest phoenix
#

what is it in this context

midnight blaze
#

But either way your code looks more fancy with void

earnest phoenix
#
void someCode```
↓
```js
I'm just gonna execute this but return literally no fucking result cuz void```
↓
🕳️
opal plank
#

hmmm

vernal rivet
#

Mhm

#

Void has no return type

earnest phoenix
#

i'm wondering how the v8 engine translates functions into voids

vernal rivet
earnest phoenix
#

Wait isn't that obvious

#

surely it needs to decide when it should actually be a void

#

from reading up a few articles

#

the garbage collector picks up every value in a void

#

V8 engine has builtins of checking them, if void appears before anything, just execute it and return undefined

#

It's just simple

#

But it also triggers GCs

restive furnace
#

wait, can you manually call GC in node?

opal plank
#

good question

#

im not sure actually

earnest phoenix
#

It has a flag to manually activate it

#

I forgot what it was tho

restive furnace
#

hmm

midnight blaze
#

Can someone tell me how to call it

vernal rivet
#

Call what?

midnight blaze
#

I want too see the garbage weirdsip

earnest phoenix
#

You don't see garbage collected inside GCs

split hazel
#

i think the flag is --expose-gc

earnest phoenix
#

It just shows status of it

split hazel
#

then you can call gc with global.gc()

opal plank
#

and there you have it

split hazel
#

but its not recommended to mess around it

restive furnace
#

to expose what it collects you have to make your own GC i think? 🤔

midnight blaze
#

Global.destroy() oliypls

opal plank
#

setinterval(()=>{global.gc()}, 10)

split hazel
#

the gc is automatic for a reason

opal plank
#

best performance code

vernal rivet
#

Yes

opal plank
#

run collector every 10 ms

#

300iq

earnest phoenix
#

cpp devs are shaking in their grave

vernal rivet
#

It won't work lol

opal plank
earnest phoenix
#

And slow down your code by 69x

vernal rivet
restive furnace
#

cpp devs are shaking in their grave
not really, std::shared_ptr. (and bunch of other "smart" pointers)

midnight blaze
#

Slow motion code

earnest phoenix
#

Your code will run slower than yandere simulator if you do that

vernal rivet
#

Lol

#

It won't work either way

earnest phoenix
#

-69420 frames per seconds

vernal rivet
#

Caps the I, then it will

earnest phoenix
#

i wish the gc in node was as good as the gc in net core

#

the net core gc is blazing fast and super optimized

restive furnace
#

compare that to cpp stack GC

midnight blaze
#

Node sucks. We need node2weirdsip

vernal rivet
#

Gc in net core is so good

restive furnace
#

Node sucks. We need node2weirdsip
@midnight blaze no, we need done.

earnest phoenix
#

Imagine binding net core's GC to v8 engine of google

midnight blaze
vernal rivet
#

Oh god

earnest phoenix
#

Everyone goes js dev

vernal rivet
#

Lol

earnest phoenix
#

Haha brain goes big

#

google devs and ms devs working together

#

yikes

#

ms? Microsoft?

#

yes

fickle arch
#

my user command is broken, before it working fine showing someone date of joining a discord, pfp, etc, can anyone help lol

earnest phoenix
#

net core is made by ms

fickle arch
#

it was working before.

earnest phoenix
#

Show code

#

google devs and ms devs working together
@earnest phoenix on one side minecraft is dying on the other side nobody cares about it

vernal rivet
#

Your object/property that name is apart of us undefined

earnest phoenix
#

minecraft is far from dying christmasthink

fickle arch
#

@earnest phoenix you mean entire code 🤔

earnest phoenix
#

Minecraft goes more popular actually

#

@fickle arch No the part where it errors

#

granted mojang devs are idiots

#

If you don't know where, show stack trace

restive furnace
#

@earnest phoenix on one side minecraft is dying on the other side nobody cares about it
@earnest phoenix far away from dying, minecraft has millions of players (thx to pewdiepie and bunch of other big ytubers)

fickle arch
#

the part of error were name not defined, but I had like 8 name on the search list

earnest phoenix
#

If you don't know where, show stack trace

fickle arch
#

how

vernal rivet
#

Under the error

earnest phoenix
#

The full error under the error message

vernal rivet
#

That's stack trace

earnest phoenix
#

That's called error stack trace

#

Yea

vernal rivet
#

^^^

earnest phoenix
#

And here he goes to the moon and never comes back just like my dad

fickle arch
earnest phoenix
#

The full part of that

vernal rivet
#

Oofers

fickle arch
#

aah

earnest phoenix
#

Oofers
@vernal rivet Jokes

vernal rivet
#

Yes

earnest phoenix
midnight blaze
#

My_girlfriend = void 0

vernal rivet
#

Lol

earnest phoenix
#

java13+ is rather ok

#

i still wouldn't take it as a production language

#

Bruh why does he keep deleting the image

restive furnace
#

just censor ur name lol, rather than deleting the message instantly.

fickle arch
earnest phoenix
#

Show the 32nd line on your user.js

#

if you don't want to leak your name
why 👏 make 👏 your 👏 irl 👏 name 👏 your 👏 username 👏 in 👏 the 👏 first 👏 place 👏

restive furnace
#

^ and that, usually my username is fs or fr lol

midnight blaze
#

Because big brain

fickle arch
#

It's my mid name 🤷‍♂️

vernal rivet
#

Yes

fickle arch
#

status = `Custom Status:\n${cstatus}\nApp:\n${muser.presence.activities[1].name}

midnight blaze
#

U miss '

#

`

earnest phoenix
#

Why 👏 to 👏 even 👏 exist 👏 in 👏 the 👏 first 👏 place 👏

vernal rivet
#

Its funny, because mine is korea FLdogekek idk why it's like that, I don't remember making it like that. But my computer thinks it's in korea

earnest phoenix
#

@fickle arch activities[1] is not always available

fickle arch
#

👏 I'm 👏 dumb 👏 as 👏 frick 👏 thanks 👏 to 👏 reminds 👏 me 👏

earnest phoenix
#

Not even the 0

#

Just do a simple check

#

windows sets itself up in croatian for me because i'm in croatia and it pings the location, it's super annoying when you always work with the english version

vernal rivet
#

Oofers

earnest phoenix
#

and then proceeds to download the wrong keyboard language

vernal rivet
earnest phoenix
#
message.author.presence.activities[1] ? message.author.presence.activities[1].name : "No other activities";```
vernal rivet
#

Ah yes elvis operators, my Lord and savior

fickle arch
#

I 👏 c 👏 ommu👏ni👏ca👏te👏wi👏th👏emo👏ji👏s bec👏👏👏ause I am a dumb Facebook person
@midnight blaze m 👏 y 👏 e 👏 y 👏 e 👏 s 👏 hurt

earnest phoenix
#

Now we can stop, my eyes melt

vernal rivet
#

Same

fickle arch
#

Same

earnest phoenix
#

@coral trellis off topic bois here

coral trellis
#

Keep this on topic please

earnest phoenix
#

sorry for ping btw

fickle arch
#

yes

earnest phoenix
#

@earnest phoenix wdym

fickle arch
#

back to scramble my code

midnight blaze
#

botdonefordummys

earnest phoenix
#

LMFAO

midnight blaze
#

?

restive furnace
#

@earnest phoenix yes with custom commands or smth

midnight blaze
#

Oh

earnest phoenix
#

BRUH

#

Botum Desginerum Forum Discodum

midnight blaze
#

Pretty much this

fickle arch
#

hicus picus I lost my brain functions.

earnest phoenix
#

I highly recommend not to use BDFD

restive furnace
#

bdfd nowdays has partitial js support tho

earnest phoenix
#

Still not good to use it

restive furnace
#

but still yeah ^

midnight blaze
#

That's great. Like anyone who knows js would use that trash

earnest phoenix
#

we're kinda getting GENERAL (don't ask me why #general was renamed)

#

*off-topic

midnight blaze
#

Code stop snitching bruh

earnest phoenix
#

ye ik

#

my brain doesn't function at 10 pm

#
const brain_cells = undefined;```
drifting wedge
#

whats the isdigit check?

#

for py

#

ping plez

earnest phoenix
#

ping plez
here goes your free ping: @drifting wedge

drifting wedge
#

@earnest phoenix wow so much help, thanks

earnest phoenix
#

lol

#

me dunno python
all i know is that it sucks for me

drifting wedge
#

can i be toxic

#

or is it too mean?

nimble kiln
#

Against code913 you can be toxic, yes

drifting wedge
#

o ok

#

nobody asked golden apple lookin ass

earnest phoenix
#

Against code913 you can be toxic, yes
@nimble kiln i don't really care if someone messes with me I'm friends with discord staff anyways

nimble kiln
#

uuuuuu now i'm scared 😱

opal plank
drifting wedge
#

so scawwed

earnest phoenix
opal plank
#

there an employee and 4 discord api mods in the server i shittalk in, does that gimme special perks?

earnest phoenix
#

nobody asked golden apple lookin ass
@drifting wedge Wtf I'm dying

#

yeah

#

i got people spamming the n word in my DMs

tired nimbus
#

what does guildChannel.type return for text and vc channels in eris?

drifting wedge
#

how can i check if args is a digit?

silent cloud
#

guys

#

i need help with discord.js bot

#

hosting on glitch

#

why it write error

#

but in heroku nothing

vernal rivet
#

What's the problem?

silent cloud
#

look

vernal rivet
#

Did you check if flat is a function of fields?

silent cloud
#

idk

#

but

#

3 commands working, more doesnt

#

it working

#

but how example

#

that doesnt working

vernal rivet
#

You should check that. The error is saying it is being treated as a function, but it is a property

silent cloud
#

im looking on my code

#

around 5 hours

#

....

#

trying all

#

and nothing

#

OHHH

#

I FOUND IT

#

writes an error only with embed messages

vernal rivet
#

Ok

silent cloud
#

but....why....

#

i rly idk

opal plank
#

is that a json database?

earnest phoenix
silent cloud
#

lel

#

yep

#

it working

opal plank
#

someone link this person that big ass wall explaining why json is bad pls

silent cloud
#

but OTHER COMMANDS NOT

earnest phoenix
#

@silent cloud because 👏 fields.flat 👏 is not 👏 a function

fluid basin
silent cloud
#

@silent cloud because 👏 fields.flat 👏 is not 👏 a function
@earnest phoenix where is it...

#

fields.flat

#

in code

earnest phoenix
#

BRUHHHHHHHH

digital ibex
#

its in the source code of discord.js

#

you need to update nodejs, script

silent cloud
#

ohhhh

#

how

#

what command

digital ibex
#

what os?

silent cloud
#

ohhh rly idk

#

glitch 😄

fluid basin
#

flat is only supported in v12 onwards iirc

digital ibex
#

did u install nodejs from https://nodejs.org ?

silent cloud
#

im hosting

#

not in my pc

digital ibex
#

idk how glitch works so uninstall nodejs and install it again

silent cloud
#

need npm command

digital ibex
#

how did u install nodejs?

earnest phoenix
#

probably one of glitch templates for node.js

#

i didnt use glitch tho, so idk

digital ibex
#

same

silent cloud
#

how did u install nodejs?
@digital ibex xd

#

it automatical was

digital ibex
#

google how to update node.js on glitch

silent cloud
#

YAY

#

IT WORKING

#

thx

drifting wedge
#

how can i check if like an int in a var is = to this?

digital ibex
#

np

#

wdym 0exe?

drifting wedge
#

if '1','2','3','4' in arg:

#

like so if one of these numbers are in the var arg

#

do this

digital ibex
#

what language?

drifting wedge
#

py

digital ibex
#

if <string> in <string/list>:

drifting wedge
#

but like multiple ints

earnest phoenix
#

How do i make my bot send a message when it is added (Discord.js)

digital ibex
faint prism
#

How do i make my bot send a message when it is added (Discord.js)
@earnest phoenix yeah^ listen to the event

earnest phoenix
#

what?

faint prism
#

like so if one of these numbers are in the var arg
@drifting wedge for loop over args and check if <i> is in args

warm canyon
#

bot.on('guildCreate')

faint prism
#

The same way you listen for the message event

what?
@earnest phoenix

earnest phoenix
#

im new to making bots, so im new to events, and such

faint prism
#

Well the bots work by listening to specific events from discord

earnest phoenix
#

Everytime im here, i feel like im gonna get clowned on...

faint prism
#

Then you need to understand the language at least

earnest phoenix
#

I do, a bit

#

Json

vernal rivet
#

How much do you understand?

faint prism
#

What, except for events specifically? Lol

earnest phoenix
#

basics

#

See, lmaoo

#

bye

faint prism
#

You're good dude

vernal rivet
#

Json and Js are not the same thing my dude

earnest phoenix
#

Json and Js are not the same thing my dude
@vernal rivet I know

#

lol

faint prism
#

Json is a serialized object

earnest phoenix
#

I know

faint prism
earnest phoenix
#

Yes

#

Bot.on('guildCreate')?

faint prism
#

Are you saying your bot has no <bot>.on('someEvent') ?

earnest phoenix
#

when i turn the bot on, i have a console.log that automatically activates when it turns on
like "Im online"

#

;-;

vernal rivet
#

How much do you understand what events are?

faint prism
#

Have you seen a template bot script?

#

Like the one on Discord.JS's website?

earnest phoenix
#

Have you seen a template bot script?
@faint prism nope

faint prism
#

Then look at it

earnest phoenix
#

How much do you understand what events are?
@vernal rivet Barely anything

#

Then look at it
@faint prism Can i have the link to the thing? ;-;

faint prism
#

Do you know how to Google "Discord.js docs" ?

earnest phoenix
#

no

vernal rivet
#

Then I recommend you learn what they are before continuing working on your bot. Events are something you are going want to learn for d.js

earnest phoenix
#

I know that

faint prism
#

no
@earnest phoenix https://bfy.tw/P77J

earnest phoenix
#

@earnest phoenix https://bfy.tw/P77J
@faint prism Lmaoo, smartass

ionic dawn
#

wait

faint prism
#

I mean 🤷

ionic dawn
#

you can actually check if a user have nitro or not and display the actual flag

#

i've been told that wasnt possible

vernal rivet
#

There wasn't any accurate way of doing it back then

faint prism
#

It's the first link

ionic dawn
faint prism
#

As you can see. It uses events

ionic dawn
#

come on

vernal rivet
#

For which field?

#

I am guessing premium_types

tired nimbus
#

How can you make a reaction collector in eris?

#

dont see anything in docs

vernal rivet
#

shrug don't work with eris

tired nimbus
#

I recently moved to eris because Im at 700 and I want to prepare for future

digital ibex
#

emit an event to listen to a reaction on the message being sent

ionic dawn
#

yeah premium types shows the nitro level

digital ibex
#

then listen to it

vernal rivet
#

Neat

ionic dawn
#

what you can't see is the booster level

earnest phoenix
#

Bot.on('guildCreate')
message.channel.send("REEE")

vernal rivet
#

I see

#

No

ionic dawn
#

but most of the bots only shows: balance developer

#

when I userinfo my self

#

and Nitro is actually displayable but they don't do it lol

vernal rivet
#

Cosmetic you have to make a function as a parameter in the event

earnest phoenix
#

Nitro info isn't exposed to bots so you can't show that badge

#

re

faint prism
#

Bot.on('guildCreate')
message.channel.send("REEE")
@earnest phoenix sure. If your bot client object is named that

digital ibex
#

not quite

#

u need to have it in the parameters and create the function

vernal rivet
#

^^^^

#

Like I said I recommend you learn what events are and how to make one/emit it before continuing

earnest phoenix
#

@earnest phoenix sure. If your bot client object is named that
@faint prism re

faint prism
#

Why don't you just send your code (minus the token)

earnest phoenix
#

Alright

#

const discord = require("discord.js")

const client = new discord.Client();

const prefix = "RE "

client.once('ready', () => {
console.log("FuckerBot is fucking online, u fucking piece of TRASH")
});

client.once('message', message =>{
if(!message.content.startsWith(prefix) ||
message.author.bot) return;
});

'use strict';

client.on('guildMemberAdd', member => {

const channel = member.guild.channels.cache.find(ch => ch.name === 'general');

if (!channel) return;

channel.send(Welcome to the server, ${member});
});

client.login('StupidStupidSTUPID')

ionic dawn
#

pastebin that shit

earnest phoenix
#

re

#

aight, good idea

digital ibex
#

strict mode lol

earnest phoenix
#

any bin but pastebin

faint prism
#

Is it once?

#

You should probably have them as on

pale vessel
#

both kinda work

faint prism
#

Are they identical??

pale vessel
#

once stop after emitting once iirc

digital ibex
#

once = happens once (doesnt restart)
on = opposite to what flaz person said

pale vessel
#

not a good idea for non functions

faint prism
#

No

on() you attach a full listener, versus when you use EventEmitter. once(), it is a one time listener that will detach after firing once. Listeners that only fire once don't count towards the max listener count. Jul 25, 2018

earnest phoenix
#

how to i make v12 bot

#

im in pain.

digital ibex
#

oh so

#

it doesnt count towards the event count? if that make sense

ionic dawn
#

@earnest phoenix do you have a v11 bot?

#

if thats the case just read the v11 -> v12 changes and apply them

digital ibex
#

omg

#

i just had the best idea

earnest phoenix
#

i havent

ionic dawn
#

then just read some tutorial to get started

earnest phoenix
#

ok

ionic dawn
earnest phoenix
#

im looking now

digital ibex
#

if discord.js devs didnt make u need to add the .cache, if u added it it gets it from the cache, otherwise it gets it from the rest hahaha lmfao

#

it would break bot “developers”

pale vessel
#

uwotm8

digital ibex
#

like

earnest phoenix
#

I swear if cache existed on games, it would run slower than yandere simulator

digital ibex
#

instead of getting data from the cache as normal, it would always get data from the rest every time

#

but if u added the .cache how it is now in v12, it gets data from the cache and not rest

#

if that makes a bit more sense idk

quartz kindle
#

wdym if cache existed on games

#

all games have caching

slender thistle
#

I'm sorry what

thick gull
#

wat

earnest phoenix
#

As heavy as djs

faint prism
#

Lol

slender thistle
#

Are videogames really comparable to a Discord API wrapper in terms of RAM

earnest phoenix
#

^^^

quartz kindle
#

lmao

#

i mean, games are unoptimized af these days

#

they just abuse your cpu because your pc can handle it

slender thistle
#

cough me playing Arma 3 on 6 GB of RAM

digital ibex
#

now i wanna make a game

#

why

slender thistle
#

Game dev sounds more fun than Discord bots tbf

thick gull
#

yes

digital ibex
#

i was going to make a game a while back

opal plank
#

make a game IN discord, both worlds

digital ibex
#

but i realised how much shit game devs get

#

the whole community of discord bots is so narrow

opal plank
#

prob get better treatment than discord bots tbh

digital ibex
#

anything is better than discord bot development

opal plank
#

'what do you do for a living? i code discord bots'

digital ibex
#

ew cringe

opal plank
#

lmao

earnest phoenix
#

Game development is sure more fun than bot development, but after you try it and get stuck and try to fuck go back, that's the part where it gets unfun

opal plank
#

at least i can call my shit "Inter Platform bridge/relaying system"

earnest phoenix
#

Looking at one part of the code for 10 hours still can't find any issues

#

That's how game development works

quartz kindle
#

the problem of game development is ideas

#

literally everything has already be done before

digital ibex
#

i wanna make an open world game

slender thistle
#

Ehh just start small like a snake

#

I'll rewrite CoD in compiled Python yolo

quartz kindle
#

working on things that already exist is no fun

opal plank
#

or make some shitty low graphic quality game like among us and fall guys

#

gameplay > visuals

digital ibex
#

fall guys is shit

slender thistle
#

Ey fax

opal plank
#

worked out greatly for them

#

look at terraria

#

minecraft

#

and a ton of other games

#

they are heavily focused on graphics

#

and look where they at

earnest phoenix
#

or do non euclidean worlds in ue which totally won't make you go insane because non euclidean geometry is fucking not insane

opal plank
#

its either 8 or 80 from what i see

#

you either a AAA game dev or you an indie that pulled off and amazing gameplay game

slender thistle
#

8-bit NFS

restive furnace
#

just make a open-world 3D game where you can freeplay and has some sort of story and boom you have game what hasn't been done beforeish.

#

I actually don't know pretty much games what allows player do following

#

actually I don't know any

slender thistle
#

Dark Souls?

restive furnace
#

hmm

#

i meant more real-lifeish, like GTA series (the graphics and stuff, not the gameplay, unless you wan't to make GTA stylish game).

faint prism
#

compiled in Python
@slender thistle wot

drifting wedge
#

@drifting wedge for loop over args and check if <i> is in args
@faint prism how tho?

faint prism
#

With a for loop

drifting wedge
#

ive never used one b4

faint prism
#

Have no never heard of a for loop before

#

Wow

drifting wedge
#

yea lol

#

Have no never heard of a for loop before
@faint prism ive head abt loops

#

but not for loops

faint prism
#

Sounds perfect for your use case

drifting wedge
#

Sounds perfect for your use case
@faint prism lol

faint prism
#
for (int i = 0; i < myArr.length; i++)
  myArr[i].doThing()```
#

The syntax varies very slightly across languages

opal plank
#

capital I

drifting wedge
#

can i just use if?

opal plank
drifting wedge
#

like if number 1 in arg

#

do this?

slender thistle
#

Why

#

What's the initial question

opal plank
#

i =/= I

faint prism
#

Sorry on mobile

drifting wedge
#

What's the initial question
@slender thistle so its for a thing where the user can switch out their backgrounds in levels and profiles

opal plank
#

there we go

#

i can rest in peace now

faint prism
#

Yeah. Mobile auto caps sucks

drifting wedge
#

i want to like make it so the user can can do !background 1

#

but not like !background 69420

opal plank
#

i got a new keyboard, finally not gonna be coding with that shitty laptop hellspawn keyboard

#

80% of the spacebar doesnt detect on press

restive furnace
#

i =/= I
weird operator, never heard of, i always use i != I.

opal plank
#

usually used in math

#

=/=

#

=

restive furnace
#

hmmmmmmmmm

faint prism
#

yeah, math. not code

slender thistle
#

I don't see how a for loop is helpful there

opal plank
#

different than

#

want me to fuck it up?

#

here

restive furnace
#

never heard of still

opal plank
#

sql

#

<>

faint prism
#

because he is comparing ints against a string. so it will increment until his specified max

I don't see how a for loop is helpful there
@slender thistle

slender thistle
#

What max

faint prism
#

whatever he wants

#

I think his example was 0-4

slender thistle
#

Isn't it literally just a settings[user_input]

#

In any case

#

@drifting wedge what do the backgrounds happen to be

#

images?

opal plank
#

why not regex or index of while joining?

drifting wedge
#

@drifting wedge what do the backgrounds happen to be
@slender thistle oh

#

u want me to send it?

opal plank
#

if you going to search args, join them into a single string then either indexOf() != -1 or regex

drifting wedge
#

i made like 50

opal plank
#

string.match(regex)

slender thistle
#

Y'all seem to be overcomplicating this imo

drifting wedge
#

for example

#

something like this

#

but i made like 50 of them lmao

opal plank
#

i dont even know what the quesiton was tbh

slender thistle
#

Show me how you loaded that image through the command

drifting wedge
#

@slender thistle i dont need help with that

#

just need help with the arg part

#

and like only using the correct args

proven lantern
#

among us is just the video game version of the board game secret hitler

drifting wedge
#

among us is just the video game version of the board game secret hitler
@proven lantern fax

opal plank
#

what

slender thistle
#

Do you think you can use a dictionary, set numbers as keys and file/image names as values?

proven lantern
opal plank
#

never heard of

#

im thinking about decreasing the cache refresh to 5 minutes but idk if that'd be a really smart move

#

🤔

slender thistle
#

Only one way to find out

opal plank
#

to get ratelimited again

#

yes, lets get our token revoked

warm canyon
#

lol

opal plank
#

i shit you not i think ive hit 429's almost 100 times the last 3 days

proven lantern
#

write a script to replace revoked tokens

opal plank
#

im amazed they havent revoked or flagged my app

#

though tbf the helix api seems fine with me

misty sigil
#

loll

opal plank
#

the IRC is the one bending me over like a lil slut

faint prism
#

Do you think you can use a dictionary, set numbers as keys and file/image names as values?
@slender thistle <int, string> you mean?

slender thistle
#

Aye

faint prism
#

yes

slender thistle
#

not even necessarily an integer

faint prism
#

ulong even

#

any numberical key is fine

slender thistle
#

<string, string> KEKW

faint prism
#

no u

#

I mean you can do string keys in some dbms. but idk about a dictionary

#

you could probably do it where the key is the character codes -> ascii decimal value

slender thistle
#

Python though

faint prism
#

yeah, unless python does it for you

#

lol

slender thistle
#

does what? GWchadMEGATHINK

#

Storing ASCII character codes?

faint prism
#

implicitly convert for dictionary keys

slender thistle
#

Ehh... no

#

Shit's added as-is

faint prism
#

didn't think so

#

you can implement a class to handle it for you

slender thistle
#

Objects, classes, all that stuff if explicitly stored as-is

#

I don't think there's need for a class for that tbf

faint prism
slender thistle
#

I'm not exactly sure how ASCII got involved kek

faint prism
#

because that's a character encoding

proven lantern
#

what are you using the dictionary for?

slender thistle
#

Who?

proven lantern
#

shivaco. are you caching to improve performance?

faint prism
#

so if a dictionary didn't support strings as keys. you could implement it yourself by converting the string -> char codes (integers), then storing that int as the keys

#

is what I'm saying

slender thistle
#

"Am I the one that's having an issue here" is the question I'm tempted to ask

#

scroll up, I was suggesting a dictionary as a solution :^)

faint prism
slender thistle
#

Nah Auger, Python dictionaries support string objects just fine, so no need for all that headache

faint prism
#

lol alright

earnest phoenix
#

help me please, when I put the command !ban doesn't let this error appear

faint prism
#

rate limited?

opal plank
#

someone called me?

faint prism
#

lol

#

is rate limit in the 5xx status code?

opal plank
#

no clue

faint prism
#

thanks rate limit master

#

lol

opal plank
#

lmao

#

it should be obvious im a genius when it comes to ratelimits the moment i say i got ratelimited over 100 times in the past 4 or 5 days

#

best person to ask for ratelimit advice is the guy constantly getting ratelimited

#

still fine tuning this shit but im confident its the library reconnecting to some channels and ending up abusing my count

restive notch
#

i think im going to kill my other bot @astral cedar as he only gives you a joke and i cant do much with him as i feel it kill the aspect of having it as a joke bot

opal plank
#

ads are getting smarter

#

👀

restive notch
#

👀

#

yeah hes headed for the chopping block i decided

opal plank
#

EEEEEY

#

make 101 ratelimits

#

ratelimited again

restive notch
#

rip

#

yeah hes going to be completely rebranded so i dont have to wait 5 weeks again

proven lantern
#

i am adding a command that will set the bot command prefix for a guild. i am planning to create the below command and start with a default prefix of !. if the prefix is changed the below command will still have the prefix of !. is this the right approach for a command to change the bot prefix for a guild?

!set-team-up-bot-prefix

thick gull
#

what

#

ohh

#

no not really

#

i would change the prefix for all commands

opal plank
proven lantern
#

can my bot have a unique status message for each guild?

opal plank
#

i think im about to get my 5th ratelimit today

#

no

#

status is per user

#

Well today we learned

#

clustering and ratelimits dont go well together

#

they will BOTH spam the api

proven lantern
#

sockets dont like scaling

opal plank
#

why doesnt twich do sharding? like ffs

#

gonna have to come up with something

#

i wont sleep till i get my cache stressed up to 7 days uptime with 10k streams

proven lantern
#

are you queueing request that get rate limited?

opal plank
#

im fairly certain reconnects count as join attempts

#

so ontop of MY requests the library is doing reconnects in the background

#

hence it fucks up my limit

#

i cant think of any way to avert this than just being 'careful' or patching someones lib which is equaolly a bad idea

proven lantern
#

rate limit is 10k per 5 minutes right?

opal plank
#

its not discord

#

its 20 attempts per 10 seconds

proven lantern
#

use ease off reconnect logic

opal plank
#

wdym?

proven lantern
#

actually the library probably handles the reconnect logic right?

modest smelt
#

hello

#

i have a question

opal plank
#

i assume so yeah

thick gull
#

imagine the pain nightbot is going through

#

if its not sharded

proven lantern
#

the first time you fail you wait 5 seconds, second time you wait 10 seconds and so on

opal plank
#

thats the issue

#

im going on nightbot levels of shi

#

shit*

thick gull
#

damn

opal plank
#

the thing is ben

#

im already being as careful as i can

thick gull
#

buy a dedi KEK

pale vessel
#

jeez

sudden geyser
#

:one: isn't an emoji

#

\1️⃣ would be the emoji

modest smelt
#

1️⃣

sudden geyser
#

damn it doesn't work

modest smelt
#

?

pale vessel
#

oof

proven lantern
#

shard the app and get a second api key

opal plank
#

its 20 attempts per 10 seconds

modest smelt
#

@sudden geyser ?

opal plank
#

im waiting 1.5 secs PER iteration

#

and ontop of that im also doing 11 on the last attempt

#

1.5 x 19 + 11 seconds

sudden geyser
#

1️⃣ would be the emoji

opal plank
#

and im STILL encountering ratelimits

proven lantern
#

get a second api key and rotate between the two

pale vessel
#

1⃣

#

hmm

#

1⃣