#development

1 messages · Page 2031 of 1

quartz kindle
#

im talking to callum

earnest phoenix
quartz kindle
#

if you dont know how to code, your only option is to use existing bots that are customizable, or bot making systems that do the heavy lifting for you

earnest phoenix
quartz kindle
#

you need to own the bot to customize that, or you can use webhooks instead of a bot, but webhooks cant do moderation

lyric mountain
#

it's the other way around

#

you input bot into the code

#

but yeah, if u want your own bot, you need to get hands dirty

earnest phoenix
#

I need a teacher

quartz kindle
#

there are many tutorials and courses for beginners online

#

like codecademy, udemy, etc

earnest phoenix
#

ok

#

i will try

quartz kindle
#

w3schools js is too geared towards browser

lyric mountain
#

well, it still teaches u how to use the languages themselves

#

if u learn browser js it shouldn't be too hard to move to node after

#

I mean, that's what happened in my case

quartz kindle
#

yeah but also incorrectly teaches you that browser-specific stuff is part of the lang itself and exists everywhere

#

like document.getElementById

lyric mountain
#

yeah but the important is learning the fundamentals

#

after that the learning curve for other langs gets lower

#

I also added c, python and java tutorials there should he want to fiddle with those

quartz kindle
#

yeah, but for absolute beginners to start with html-specific js is kind of a mistake imo

#

starting with node and then transitioning to browser would make more sense

#

but these courses were written before node existed

#

so its understandable

proven lantern
#

Beginners should use a language with training wheels(static typing) so they learn the type system. JavaScript is too powerful to start with.

earnest phoenix
#

Never start to easy

lyric mountain
#

not "powerful", but too lenient

#

js doesn't give a shit about what you do as long as it executes

#

c/java at least care about how u do things

royal portal
#

and then make something out of it angeryBOYE

shadow fox
#

Bb

fathom sonnet
#

HII people, so i have simple command that sends message to mentioned channel. ```js
const {Discord, MessageEmbed } = require("discord.js")

module.exports = {
name: 'msg',
execute(message, LineSplit) {
try {

        if(!message.member.permissions.has('BAN_MEMBERS')) return message.reply('You cant use this command...')
        let title = LineSplit[0]
        let description = LineSplit[1]
        let guild = message.mentions.channels.first()


        if(!title) {
            message.reply('This message need to have a title.')
            return
        }
        if(!description) {
            message.reply(`You can't send an empty message, please give it description.`)
            return
        }
        if(!guild) {
            message.reply('Please mention channel where you want to send this message')
            return
        }

        


      
        guild.send(`**${title}**

${description}`)

    }
    catch(err){
        console.log(err)
    }
}

}

#
const LineSplit =
          message.content.slice(prefix.length).split(' -- ')
        const LineCommand = LineSplit.shift().toLowerCase()
``` here is also code for the 'LineSplit'
simple stump
#

If I’m making a GET request to a website that has Cloudflare (I’m using axios), how can I “bypass” this restriction? I’ve tried Cloudscraper, but that package is old/deprecated so sites with a captcha don’t work.

spark flint
#

no legit way to

vivid fulcrum
#

what worked for me was using puppeteer

#

there's another problem though

#

hard to get it working headless

#

you can get it to pass in headless by spoofing a user agent but even then you have to pray to god for it to work

crystal wigeon
#

does discordjs embeds support brotli or gz compressed images?

#

can i send .gz or .br urls in embeds?

fathom sonnet
#

i think u will get error like

#

unknown url or cannont access to the url

crystal wigeon
#

hmm

quartz kindle
#

compression is handled by browser automatically

crystal wigeon
#

this is discordjs we talking about

#

what about canvas?

#

does it load bitmap or brotli files to draw on canvas

quartz kindle
#

like if you send an .gz url, it will not work, but if you send a jpg/png url, if the server responds with gz/br encoding, then whatever library they use to make the request will handle it automatically

#

web compression is handled with headers and encoding

#

not with file extensions

crystal wigeon
#

yeah ik

fathom sonnet
#

and isnt .gz extension for compresed folder

crystal wigeon
#

im talking about djs

fathom sonnet
#

like 7zip

crystal wigeon
#

it can be anything

#

its just compression in the end

fathom sonnet
#

ouu

quartz kindle
#

what canvas? i dont understand your question about canvas

quartz kindle
#

that will always get the first channel

fathom sonnet
#

ahhh, so what I can doo to fix that?

split hazel
#

mmmmmmmmmmmmskdjdksoaooaoaoaoaalallalaalaooaoaaooaooooooooooooooooooooooo

quartz kindle
#

instead of !msg title description channel
do !msg channel title description

split hazel
#

I have lost all sense of normal

#

I am putting my os in the recycling bin

quartz kindle
#

nooooo

#

put it on github at least

#

so you can laught about it 20 years later and show it to your kids

split hazel
#

lol it is

#

its just outdated

#

people tell me "use git and you'll never imagine how you lived without it"

split hazel
#

i honestly find it really annoying and slow

#

yeah you get a great code history and backups but meh

#

i find it slow and pressuring

#

anyways enough git talk

#

implementing a compiler for the acpi AML language is impossible

#

luckily other people have done so and shared it to the world

#

so im using an open source AML compiler

#

theres also a library by intel called ACPIAO which is also an AML compiler but is basically a whole wrapper around the ACPI making it more heavy and less satisfying to work with + harder to integrate

#

why i want to delete is because i found a way to optimise my cpu scheduler code and broke my whole os doing so

lament rock
#

it's all fun and games until your os shits itself

delicate zephyr
split hazel
#

slow as in i find it more inconvenient than useful

#

like i have to make the conscious effort to implement something (which I will be testing thoroughly anyway before pushing) then write a message and push

#

and also choose what i want to push and what i dont want to push

#

because i have a lot of test code laying around other files

sharp geyser
#

Alright so I am thinking about how I wanna set up my code base so I can expand it easier in the long run. Say I have two classes WebsocketShard and WebsocketShardManager or whatever right. My thought process is, WebsocketShard will handle all the gateway stuff, and the Manager will handle spawning the shards as it needs it, or closing them as it needs it At least this would be my thought process

#

If my thinking is a bit flawed here please let me know as I wanna learn the most I can from this project and i'd like to do it right

quartz kindle
#

nothing wrong with that

sharp geyser
#

Alrighty

sharp geyser
#

So I noticed yo u send the presence data with the gateway indentify right? So when you wanna change the presence later on how would you do so? Would that be done via the rest api?

vivid fulcrum
#

via a gateway command

#

presence is optional in IDENTIFY

sharp geyser
#

Ah I didn't notice that part

#

Thank you :)

lament rock
#

imagine having to re identify to update your presence

sharp geyser
#

oh god

austere surge
#

people would reach identify limit a lot

sharp geyser
#

I am kinda getting distracted lmao

split hazel
#

ah discord library dev newbie

sharp geyser
#

smh

#

Leave me alone SadPepe

split hazel
#

make sure to handle the ratelimit headers!

wheat mesa
#

He’s gonna have fun implementing caching

sharp geyser
split hazel
#

thats the most fun part

sharp geyser
#

Who needs caching anyway pfft

sharp geyser
split hazel
#

every request to the api discord will send headers which show you how many requests you have left before you are ratelimited

#

and when that ratelimit will reset

#

so your library can back off for x amount of time if the requests left reaches 0

#

because if you have too many rate limit errors discord will ban your bot for an hour

#

dont ask how i know

#

it was a nightmare

quartz kindle
#

dont worry about that yet tho

#

thats rest, not websocket

split hazel
#

😠

#

bro when you disable compiler optimisations my os dont work anymore 💀

#

thats very worrying

quartz kindle
#

lmao

split hazel
#

its also very worrying assembly feels natural to me

#

just like how i feel when i open up a new javascript project

quartz kindle
#

you are beyond help now

split hazel
#

it only took around 9 months

#

i only really learn when actually applying knowledge to something meaningful

quartz kindle
#

same

#

learning in a need to know basis

split hazel
#

yeah

#

also i enabled all warnings for my os and its interesting to see some of the stupid things i missed

#

like testing for < 0 on an unsigned number

#

by the way if for any reason your c/c++ code execution abruptly ends and the compiler doesnt know about it, add __builtin_unreachable(); where the code is unreachable so the compiler doesnt emit a warning + can better optimize dead code

#

in my case its after calling kernel::panic which freezes the whole os in a function that expects a return

quartz kindle
#

panik

sharp geyser
wheat mesa
#

^

sharp geyser
#

Okay waffle it is sad you looked for that just to reply to it

#

get life

wheat mesa
#

didn't look for it

#

just searched it in the discord bar thing

sharp geyser
#

Why you so rude to me

#

This is why you have to pay hospital bills

#

karma

wheat mesa
#

separate those private helper functions into a utility file

#

they'll probably be useful elsewhere in your code

#

I also really like the codebase

#

@sharp geyser might wanna reset that asap

split hazel
#

too late already scraped all data

sharp geyser
#

I already plan on it

sharp geyser
#

:^)

#

Just not sure how I wanna handle sharding

#

I might not even implement sharding rn tho

earnest phoenix
#

Hello

#

I have a question

sharp geyser
#

Then feel free to ask it

#

if we can help we will

earnest phoenix
#

i am copying a auto mod bot from youtube

#

And its on replit

spark flint
#

lmao

sharp geyser
#

Yea?

quartz kindle
#

good luck

spark flint
#

we stan replit

earnest phoenix
#

why?

austere surge
#

replit

quartz kindle
#
  1. copied bot
  2. youtube
  3. replit
    = disaster
#

they said automod tho

sharp geyser
#

Ye my bad

#

i was thinking of smth else

earnest phoenix
dry imp
#

automod

sharp geyser
#

tim my brain fried from this gateway stuff SadPepe

dry imp
#

dead soontm

earnest phoenix
dry imp
earnest phoenix
#

When i type in npm start

#

theres 3 errors

quartz kindle
sharp geyser
#

It is missing a start script in package.json

earnest phoenix
#

I have the package.json

austere surge
#

json.package

sharp geyser
#

That is nice it exists

#

but there is no start script inside it

earnest phoenix
#

Uh this?

quartz kindle
#

yes

sharp geyser
#

Yes

earnest phoenix
#

ok what should i write in the SCRIPTS

sharp geyser
#

a start one

earnest phoenix
quartz kindle
#

the code you are copying from, should have it

#

you pobably skipped it

earnest phoenix
#

They just show how it works

#

in the video

#

did not show how to run and setup it

quartz kindle
#

show the code you're copying

earnest phoenix
#

This one

spark flint
#

AHHH PORTRAIT MODE

sharp geyser
#

oh hello bun

earnest phoenix
#

@sharp geyser can you help me?

#

How to make a discord.js auto mod bot

quartz kindle
earnest phoenix
#

i installed npm

#

and everything

quartz kindle
#
"scripts": {
   "start": "node index.js"
},
earnest phoenix
#

ok thank you Tim

#

i'll try now

earnest phoenix
dry imp
#

no

earnest phoenix
#

the correct way

#

i am kind of the noob here

wheat mesa
earnest phoenix
#

@dry imp

dry imp
#

delete closing bracket and add , after "node index.js"

earnest phoenix
dry imp
#

yes

earnest phoenix
#

sigh even if i try copying from a video or learning

#

i fail

sharp geyser
#

cause you learn nothing by copying

wheat mesa
#

^^^

earnest phoenix
wheat mesa
#

like misty here, he's writing his own discord mini library, which he has no prior experience doing

#

despite not knowing exactly what he's doing, he's learning without copying because he's solving problems as they come up

#

that's what development is truly about

#

problem solving

sharp geyser
#

Well I wouldn't say I am not fully not copying

#

But at least what I do copy I understand

wheat mesa
#

much of the code there is written by you

sharp geyser
#

yee

wheat mesa
#

because only you would produce such an unmaintainable mountain of shit 😉

sharp geyser
#

that send method and those helper functions are all tim tho

wheat mesa
#

jk

#

love u misty

earnest phoenix
#

New error

sharp geyser
#

if u loved me you would be on board with working on this with me ;)

dry imp
#

you are allowed to copy code that you understand because when there is a problem, you know whats wrong

sharp geyser
#

instead of whining about being bored and then playing games all day

wheat mesa
#

I'm totally on board

sharp geyser
#

cough

earnest phoenix
wheat mesa
#

I've just been stressing over exams so been trying to not burn myself out on development

#

especially considering I just had to take a 4 hour cs exam today

sharp geyser
#

honestly felt this, lately I have been busy asf as well so i have been doing less gaming and development

quartz kindle
earnest phoenix
quartz kindle
#

json is a key-value storage format

#

it has a very specific rules for how its organized, if you dont follow them, the file will not work

earnest phoenix
#

JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax. It is commonly used for transmitting data in web applications (e.g., sending some data from the server to the client, so it can be displayed on a web page, or vice versa).

sharp geyser
#

no trailing commas, must use double quotes no single quotes, no comments, etc

wheat mesa
#

json is a way to represent data with keys and values

dry imp
#

jayson

sharp geyser
#

jaystation

wheat mesa
#
{
  "key": 15,
  "anotherKey": "twenty-five"
}
``` ```js
jsonObject.key // 15
jsonObject.anotherKey // "twenty-five"
earnest phoenix
#

where should i write this code?

sharp geyser
#

and if you try and make the key be wrapped in single quotes you will get yelled at

wheat mesa
#

it's just to illustrate how json functions

earnest phoenix
quartz kindle
#

pay close attention to the rules with brackets, commas, colons and quotes

#

and you will see that if your package.json is not working, then its structure is incorrect, ie comma in the wrong place, missing brackets, quotes, etc

earnest phoenix
#

It seems odd

quartz kindle
#

did you fix your package.json?

earnest phoenix
dry imp
quartz kindle
dry imp
#

its fine like that if it is meant like that

earnest phoenix
#

@dry imp can you tell me what to input in the "keywords"

quartz kindle
#

that doesnt matter

earnest phoenix
#

ok it says this****

#

too

#

@quartz kindle

quartz kindle
#

that also doesnt matter

earnest phoenix
earnest phoenix
wheat mesa
#

misty just told the ts compiler that it's wrong and he has no clue what he's doing help

quartz kindle
earnest phoenix
# quartz kindle no it doesnt matter

then what do i do? tell me what to do in my dms i gtg i will check my dms later , if you want to tell me anything tell me in the dms i reallllyyyy need that bot

quartz kindle
#

i told you it doesnt matter

#

just ignore it

earnest phoenix
#

When i run it it shows that

quartz kindle
#

did you press ctrl+C?

earnest phoenix
quartz kindle
#

ctrl+C means stop/shutdown the bot

earnest phoenix
quartz kindle
#

this says you did

earnest phoenix
#

ok how do i enable

#

the bot?

quartz kindle
#

you press the run button

earnest phoenix
quartz kindle
#

show your package.json again

earnest phoenix
quartz kindle
#

show your index.js

earnest phoenix
#

Bro

#

theres tokens

#

a lot of them

quartz kindle
#

remove them

#

why a lot of them? there should be only one?

earnest phoenix
#

no

#

like idk

earnest phoenix
#

Check this

#

theres a LOT OF Random letters and numbers in index.js

quartz kindle
#

this is the token

#

everything else is code

#

its not private nor sensitive

earnest phoenix
#

ok

earnest phoenix
quartz kindle
#

pls dont show it like that

earnest phoenix
quartz kindle
#

did you change anything at all from the file you copied?

#

besides the token

earnest phoenix
#

can't show full lol

#

@quartz kindle check dms

#

byee

dry imp
#

omg swear words in family friendly top.gg server

spark flint
#

omg

#

nooooooo

#

my eyes

wheat mesa
#

I'm trying to do websocket magic fun stuff with misty rn, but I keep getting TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object

#

I'm doing this.socket.send(JSON.stringify(data));, and the error is coming from doing this: ```js
// Identify
this.send({
op: GatewayOpcodes.Identify,
d: {
token: this._token,
intents: this.intents,
properties: {
$os: process.platform,
$browser: 'ChungusCord',
$device: 'ChungusCord',
},
},
});

#

The send function: ```ts
private send(data: GatewayPackets.BasePacket) {
console.log(DATA: ${data});
if (!this.socket) {
return Promise.reject(new Error('Not Connected to the gateway'));
}
if (!isValidRequest(data)) {
return Promise.reject(new Error('Invalid Request'));
}
if (!this._ratelimit.timer) {
this._ratelimit.timer = setTimeout(() => {
this._ratelimit.timer = null;
}, this._ratelimit.time);
}
let count = 0;
const until = Date.now() + 60000;
if (++count > this._ratelimit.limit && ![1, 2, 6].includes(data.op)) {
const error = new Error('Socket rate limit exceeded');
// error['retry_after'] = until - Date.now();
// error['remaining_tries'] = this._ratelimit.remaining - 1;
return Promise.reject(error);
}

    this.socket.send(JSON.stringify(data));
    return Promise.resolve();
}
#

But the really weird part is that it never gets to the send function. The console.log at the top is never logged

#

nevermind

#

the stringify was screwing with it for some reason

sharp saddle
#

what are you trying to do?

sharp geyser
wheat mesa
#

okay now I'm just confused as fuck

#

TypeError: this.sendData is not a function

#
private sendData(data: GatewayPackets.BasePacket) {
// ...
}
``` IT LITERALLY IS
proven lantern
#

looks like the type system is helping

quartz kindle
#

your this var might not be what you think it is

pale vessel
wheat mesa
#

same class as the other

proven lantern
#

this gets bound to global scope when run as a function

#

it's a great security feature

wheat mesa
#

wait a minute

#

wtf

#

it's logging as a WebSocket

#
export class ChungusSocketClient extends EventEmitter {
``` (don't judge the name, I did it to be 100000% sure that there was no way some weird ass name conflict could happen)
quartz kindle
#

how do you create the websocket?

wheat mesa
#

this.socket = new WebSocket(GatewayConstants.GatewayURL);

#
export class ChungusSocketClient extends EventEmitter {
    public socket: WebSocket | null;
    public intents: GatewayIntentBits;
    private _ratelimit: Ratelimit;
    private _heartBeatTimeout: number;
    private _heartBeatInterval: NodeJS.Timer | null;
    private _sequence: number;
    private _token: string;

    constructor(token: string, intents?: Array<GatewayIntentBits>) {
        super();
        this.socket = null;
        this._token = token;
        if (!intents) {
            this.intents = Constants.GatewayConstants.DefaultGatewayIntents;
        } else {
            this.intents = parseIntentArray(intents);
        }

        this._ratelimit = {
            limit: 120,
            remaining: 120,
            time: 60e3,
            timer: null,
        };

        this._heartBeatTimeout = 0;
        this._sequence = 0;
        this._heartBeatInterval = null;
    }
// ...
#

I took most of this from misty who took it from you

#

I think

#

This is by far the weirdest error I've ever encountered

quartz kindle
#

and the connect method?

wheat mesa
#
    public connect() {
        if (this.socket) return;
        this.socket = new WebSocket(GatewayConstants.GatewayURL);
        this.socket.on('message', this.handleData);
    }
quartz kindle
#

this.handleData.bind(this)

wheat mesa
#

welp that worked

quartz kindle
#

functions passed to event emitters are bound to the emitter by default

wheat mesa
#

guess I've got a few things to learn about event emitters then

quartz kindle
#

you need to either bind them back to the container class, or use an arrow function as an intermediary

sharp geyser
#

I told him this btw

wheat mesa
#

I thought it was just a reference to the function

sharp geyser
#

He didn't believe me

quartz kindle
#

it is a reference but without context

wheat mesa
#

I thought I was getting hard trolled by ts for the last hour

quartz kindle
#

like the socket calls the funcion and sees 'this' inside the function body

sharp geyser
#

this is why people need to trust me more 😔

quartz kindle
#

it assumes its its own 'this'

#

because is the socket that is calling it

#

not your class

wheat mesa
#

I assumed something was off because the error was coming from WebSocket.handleData

sharp geyser
#

So I am trying to listen for the debug even on my client, but the issue is I can't listen to my debug events on my socket stuff if I do so, I wanna somehow either make it so when I do client.debug I also get the socket debug stuff or find another way to do it

outer niche
#
    async def start_loop(self):
        await self.api.start_loop()
        print("Post Count")


async def setup(bot):
    cog = DiscordListsPost(bot)
    await bot.add_cog(cog)
    await cog.start_loop()``` ```py
Extension 'cogs.api' raised an error: AttributeError: loop attribute cannot be accessed in non-async contexts. Consider using either an asynchronous main function and passing it to asyncio.run or using asynchronous initialisation hooks such as Client.setup_hook``` I seem to still be having an issue with my code can someone help me please i am using discord.py 2.0
bright thorn
#

Its first time am getting this error

0|Real     | Response: Internal Server Error
0|Real     |     at RequestHandler.execute (/home/ubuntu/Real/node_modules/discord.js/src/rest/RequestHandler.js:357:15)
0|Real     |     at runMicrotasks (<anonymous>)
0|Real     |     at processTicksAndRejections (node:internal/process/task_queues:96:5)
0|Real     |     at async RequestHandler.push (/home/ubuntu/Real/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
0|Real     |     at async TextChannel.send (/home/ubuntu/Real/node_modules/discord.js/src/structures/interfaces/TextBasedChannel
#

anyone can explain me

#

why it is for?

copper cradle
#

That's not the full error

civic jasper
#

Hello , maybe someone knows how to make them see my site in a Google search (as in the picture)

pale vessel
#

that might help

tidal nymph
#

you need SEO

pale vessel
#

oh man i didn't even read the message

#

LOL i just read the "as in the picture" and thought they wanted to replicate the rtl effect

civic jasper
#

lol

spring plank
#

i have written a command, but what I want is that I can only give the x role to members with this command, not allow it when I want to give it with another command can anyone help?

earnest phoenix
spring plank
#

ı didnt understand

earnest phoenix
#

When i run

#

My project

spring plank
#

ha okay

#

thx

earnest phoenix
#

I took it from here

#

Ping me when u answer

spring plank
#

look, I'm giving the role 1 with the x command, but if someone tries to give this role 1 with the y command, I don't want them to allow it

earnest phoenix
#

@spring plank wait @earnest phoenix is helping me

boreal iron
spring plank
spring plank
boreal iron
#

Just check if the role mentioned in command Y is the one you want to exclude and throw an error

boreal iron
#

create an array of role IDs you want to exclude and check if the mentioned role ID is in that array

spring plank
#

ııı ups.. i am using v12

earnest phoenix
#

@earnest phoenix help me come to dms

spring plank
#

wouldn't be a problem

proper belfry
#

Y a t il un français ?

copper cradle
#

Holy

spring plank
#

okay thanks bro

proper belfry
#

Est-ce que quelqu'un voudrais travailler sur un projet avec moi j'aimerais bien que quelqu'un fasses un bot si quelqu'un le voudrais bien un bot qui fait tout

#

French?

bright thorn
copper cradle
# bright thorn what ?

That's just a cut off portion of the error log, show the full log so people can actually help

proper belfry
#

French?

pale vessel
proper belfry
#

Would someone like to work on a project with me I would like someone to make a bot if someone would like a bot that does everything

#

Mp me who can but free please

dry imp
#

a bot that does everything 💀

proper belfry
#

No

#

Bot gestion

#

robot management

boreal iron
proper belfry
#

i would like someone to make me a free bot

dry imp
#

bruh

proper belfry
#

?

boreal iron
#

That’s no ad platform

proper belfry
#

Yes

#

I think

boreal iron
#

Nobody does anything for free especially coding - spending hours just for you

proper belfry
dry imp
#

a bot that does everything for free 💀

proper belfry
#

Pls

boreal iron
#

I have no words

dry imp
#

just token...

proper belfry
#

?

boreal iron
#

Dude stop begging

#

Nobody will do that

dry imp
#

idk anymore.. gl dude ig

boreal iron
#

And you’re wrong here as well

proper belfry
#

Ha

#

Okay

#

You create token

#

And copy

#

A codes

#

Its simple

pine nova
#

spammer 💀

copper cradle
#

If you pay me $1500 I'll build you a bot

spark flint
#

likely spammer

#

i see why theyre a spammer now

copper cradle
spark flint
#

$1498!

near stratus
proper belfry
#

1499?

spark flint
#

yeah

#

the small price of $1498

#

pay in crypto so its untracable smart

proper belfry
proper belfry
#

I would like to make a multifunction bot but without coding you have github links?

cinder patio
#

Either learn coding or pay someone to do it

#

on fiverr or other similar sites

proper belfry
#

No dog

#

I sleep

cinder patio
#

Then use a bot listed on top.gg

boreal iron
#

Eww ads

#

Topgg oldEyes

earnest phoenix
#

Hello

#

I am tryna make it 24/7

#

but i get this error

spark flint
#

quite a bit

earnest phoenix
#

Okay

#

There

#

THERE

#

sorry caps

spark flint
#

people who know postgres

#

how do i force reset postgres user password?

#

idk what the set one was as it was installed with an install script

#

well

#

i can't login

#

so i can't run that

#

yep that worked

earnest phoenix
#

What do i do?

#

oh

spark flint
#

ping?

earnest phoenix
#

keepAlive is not a function?

earnest phoenix
#

Should i not ping you?

#

This

#

in the video too

#

Look

#

It is in Replit

#

@earnest phoenix

#

in the video go here

#

in the timestamps

#

How do you do that?

#

🧠

#

My brain is dying

#

okay

#

I DID that

marble juniper
earnest phoenix
#

i did

spark flint
#

generally try not to do that

earnest phoenix
#

uh

#

nope i did it in index..

#

Lmao

slender thistle
#

Ooo replit

earnest phoenix
#

Ok

#

okay

#

its working now but uh

slender thistle
#

What's that repl name even

earnest phoenix
#

Idkk mann

#

I logged in my account in it ;-;

#

uh oh What do you mean Probably?!?!?

#

Uhhh i am starting to freak out man

#

I hope its not an VIRUS or anything HARMFUL Or DEADLY

marble juniper
#

all it does is make a request to a server every 5 minutes

#

to see if it responds or not

quartz kindle
#

and destroy your pc every 10 minutes

marble juniper
#

kekw

earnest phoenix
marble juniper
#

and load a virus up your ass

quartz kindle
#

and force you to eat broccoli

marble juniper
#

and force you to eat spinach

earnest phoenix
marble juniper
#

and vegetables

earnest phoenix
#

DIET

#

DIE

#

T

quartz kindle
#

are you fat?

earnest phoenix
#

DIE

marble juniper
#

are you 6?

earnest phoenix
marble juniper
#

are you 9?

earnest phoenix
marble juniper
#

Ban

earnest phoenix
#

: )

dry imp
marble juniper
#

No seriously

#

How old are you

earnest phoenix
#

Bro

marble juniper
#

lol

earnest phoenix
#

Joke

quartz kindle
#

being fat is against the tos

earnest phoenix
#

I am 15 currently next week is my b day

marble juniper
#

suspect test

earnest phoenix
#

And i am turning 16

marble juniper
#

Ok

marble juniper
earnest phoenix
quartz kindle
#

nepotism

marble juniper
quartz kindle
#

they bend the rules for self benefit

earnest phoenix
quartz kindle
#

typical corporation

marble juniper
#

It is safe

earnest phoenix
marble juniper
#

100% safe

earnest phoenix
#

okay

marble juniper
#

totally secure

#

100% trustworthy

#

It is 99% secure

quartz kindle
#

and 1% trust worthy

earnest phoenix
marble juniper
#

1% uptime robot

earnest phoenix
#

the only 1%

quartz kindle
#

plant crysis

copper cradle
#

Anyways guys I'm learning haskell

#

Any good resources?

marble juniper
#

protogent

marble juniper
marble juniper
#

Just kidding

earnest phoenix
#

meme

marble juniper
#

I don't know any resources

#

just search for some guides

copper cradle
#

I already did that

marble juniper
earnest phoenix
copper cradle
#

I'm just looking for extra resources to read

marble juniper
#

Text font

quartz kindle
#

stands for this the fuck

dry imp
#

its urmom

marble juniper
#

ttf is a text font

#

lol

earnest phoenix
copper cradle
earnest phoenix
#

lol

marble juniper
#

yes

#

its a font file

copper cradle
marble juniper
#

Jesus christ

earnest phoenix
#

I need help

marble juniper
#

Save me from this hell

dry imp
#

ahyes

copper cradle
earnest phoenix
#

AND GIVE YOU PURE TORCHER

marble juniper
#

No

dry imp
#

i never had that error in python

earnest phoenix
#

where

marble juniper
#

@earnest phoenix Do you even know how to code

#

Do you even know anything

quartz kindle
#

in python you have indentation error instead

earnest phoenix
marble juniper
#

Do you even know what the word know means

earnest phoenix
#

I AM A NUB

copper cradle
dry imp
copper cradle
#

goggle

earnest phoenix
marble juniper
#

Copy paste ur code please

#

Don't make me visit ur re0l

#

Just paste it in here

copper cradle
marble juniper
#

and for gods sake put it in code blocks

copper cradle
#

py-script

marble juniper
#

js2py bridge ez

dry imp
#

yea he clone

earnest phoenix
earnest phoenix
copper cradle
#

dude

dry imp
#

i clone

copper cradle
#

I asked you

#

To take a screenshot

#

Of the code

quartz kindle
#

dont ask him to take a screenshot pls

copper cradle
#

Where is it

quartz kindle
#

he will post 10 screendshots at once

#

with tiny slices of code each

copper cradle
#

I'm on mobile

#

Codeblocks here are cursed

marble juniper
#

Please don't make him do Screenshots of code

slender thistle
#

This place is quite the clusterfuck

near stratus
#

Go to Brasil

marble juniper
#

Make him take Photos of his code with his phone

copper cradle
marble juniper
#

THROW IT ALL IN THE TRASH

#

Get in the Virgin plane

near stratus
#

yea importing discord.js twice
big brain

marble juniper
#

Fucking

#

Virgin plane

#

Lmao

#

I didnt even notice

earnest phoenix
#

i have closed

#

the bracket

#

I DID

marble juniper
#

So fucking stupid

slender thistle
#

Can you shut the fuck up genuinely

marble juniper
#

This is over exeggerating

slender thistle
#

Not even that

earnest phoenix
marble juniper
#

Its like a circuis here lol

slender thistle
#

You're throwing unnecessary shit into an escalateed situation and are doing nothing useful

near stratus
#

TypeError: Brain can't be null
Expecting HumanBrain received null

earnest phoenix
#

okay

slender thistle
#

He sent the link to his repl, didn't he?

earnest phoenix
#

index right?

marble juniper
#

@earnest phoenix try reading the https://discordjs.guide and do it step by step before you do anything else

copper cradle
#

Dude what the fuck is this

marble juniper
#

It also has some great code resources

#

that you can use as templates

marble juniper
#

Don't watch a youtube video

near stratus
slender thistle
#

Ah youtube videos right

marble juniper
#

ty

earnest phoenix
marble juniper
#

There are resources in there too

earnest phoenix
#

okokokokokokokokkkk

marble juniper
#

To help you learn how to code

#

Yes

#

Take one of these guides first then come back here once you have actual knowledge

slender thistle
#

@earnest phoenix Can you publish your repl and send the link to it?

marble juniper
#

Didn't he do that

slender thistle
#

I don't know, the link he sent doesn't seem like his and I cba to check it while getting dressed

earnest phoenix
#

okay

#

i'll send

copper cradle
#

Don't learn javascript, learn something easier like c++ @earnest phoenix

marble juniper
#

Id suggest him to learn how to code in js first before even trying to make a discord bot lol

marble juniper
#

Discord bots are more of an advanced thing

earnest phoenix
#

ik i hided it

#

lmao

marble juniper
#

or assembly 64

earnest phoenix
#

i am not an idiot

copper cradle
#

Yeah rust is very flexible

#

Learn assembly for the intel 8086

slender thistle
marble juniper
#

Rust is not a beginners language though

#

Its far from that

#

lol

near stratus
earnest phoenix
#

BY HIDED I MEAN I DELETED IT

copper cradle
#

Anything but php

marble juniper
#

Id recommend learning a different language before learning rust to get familier with the concept of programming as a whole

near stratus
slender thistle
earnest phoenix
#

OMG EVERYTHING IS SAME FROM THE VIDEO EXEPT MY TOKEN

#

THATS

#

IT

copper cradle
#

Yeah lua is fine

marble juniper
#

Can you stop spamming caps

copper cradle
#

Listen here buddy

#

Go learn Go

marble juniper
#

Don't be under pressure lol

near stratus
#

Learn game development with unity and C# before starting discord bot development @earnest phoenix

slender thistle
#

Eh whatever

marble juniper
#

You are not being chased by tigers

quartz kindle
#

hes being chased by angry devs

marble juniper
#

lol

slender thistle
#

So he forked it without changes and the bot doesn't work?

earnest phoenix
marble juniper
earnest phoenix
#

BRO

#

I AM DYING

#

THIS IS PURE TORCHER

marble juniper
#

Chill oit

quartz kindle
#

its spelled "torture"

copper cradle
#

Also you need some perl knowledge

quartz kindle
#

not torcher

earnest phoenix
#

PAINN

marble juniper
#

Learn swift and make iPhone apps

earnest phoenix
#

thats why

copper cradle
#

No

earnest phoenix
#

my small keyboard

#

GAIN HANDS

copper cradle
#

Have you learned perl yet?

earnest phoenix
#

GAINT

marble juniper
#

Learn javascript and react and svelte and vue and angular and solid js and mantine and nuxt and nextjs

copper cradle
#

Giant*

quartz kindle
#

lmao

copper cradle
#

And RxJS

marble juniper
#

Also learn astro

earnest phoenix
copper cradle
#

Also

marble juniper
#

Astro is pretty cool as a static site generator

copper cradle
#

Switch to emacs

quartz kindle
#

solidjs is quite interesting, but svelte looks more like my type of thing

earnest phoenix
marble juniper
#

it doesn't ship any javascript to the client

#

only the bare minimun

near stratus
marble juniper
#

Instead of react

copper cradle
#

You gotta learn the dot language

marble juniper
#

Which is just the entire Website being javascript

earnest phoenix
#

..

marble juniper
#

This whole chat be trolling lol

copper cradle
#

Also you need to write an emulator for the 8086 microprocessor

marble juniper
copper cradle
#

Write it in scala

earnest phoenix
#

RICK ROLLED

marble juniper
#

Hey

#

no spam

earnest phoenix
copper cradle
#

-ban

slender thistle
#

Can everyone honestly stop

marble juniper
#

Should I ping a mod

#

lol

copper cradle
earnest phoenix
#

wasn't this a spam?

marble juniper
#

No

copper cradle
slender thistle
#

Not necessarily

marble juniper
#

Because it showed ur code

slender thistle
#

@earnest phoenix What changes did you make to the project after you forked it?

marble juniper
#

Can you just give a link to ur repl fork

earnest phoenix
marble juniper
#

Then the original Code must be broken

slender thistle
#

Could you delete the current repl and re-fork it?

lyric mountain
#

that's why cloning is a bad idea

slender thistle
#

And then screenshot what you changed?

marble juniper
#

I still think you should rather use code from the discord.js guide

earnest phoenix
marble juniper
#

Its way better than the code you forked

earnest phoenix
#

I forked it from here

marble juniper
#

that has 2 imports of the same package

earnest phoenix
#

files

near stratus
lyric mountain
#

neither

marble juniper
#

144p screenshot quality

lyric mountain
#

the image is tiny

earnest phoenix
#

or i would have sent 4 screenshots for each

#

folder

marble juniper
#

How about you

#

I don't wanna be obnoxious about it

quartz kindle
#

that wont help him

slender thistle
marble juniper
earnest phoenix
quartz kindle
#

hes having issues with js itself, missing brackets

#

broken copying

#

etc

marble juniper
#

But the code he copied in general is terrible lol

lyric mountain
#

at the end of the day, starting a bot from zero is easier than trying to fix someone else's code

marble juniper
#

Yes

lyric mountain
#

idk why newbies think the opposite

quartz kindle
#

yes because it was made by a youtuber

earnest phoenix
marble juniper
#

Im just trying to tell him to make his own code or at least use code from the discord.js guide

quartz kindle
#

they just put some shit together that works just enough to make a video for their yotube channel

earnest phoenix
marble juniper
#

Anyways im outta here im tired of this

quartz kindle
#

then go back to how it was before

marble juniper
#

I gave my advice and thats it

tidal nymph
#

😂

near stratus
earnest phoenix
#

I am Bored

quartz kindle
#

its quickdb, they store json inside sqlite

marble juniper
#

Yes

near stratus
#

wtf ?

marble juniper
#

huge brain

quartz kindle
#

better than jasondb

marble juniper
#

sqlite.json

earnest phoenix
#

lmao

marble juniper
#

Also

near stratus
#

wh-

marble juniper
#

quick.db is the second reason

#

You shouldn't use that fork

#

Lol

quartz kindle
#

eh quickdb is fine for small projects

lyric mountain
marble juniper
#

Even then

#

there are better options

lyric mountain
#

it's a terrible way of using sql (or not using at all)

earnest phoenix
#

Done?

tidal nymph
#

wat

marble juniper
#

Do you even listen

near stratus
quartz kindle
#

people dont want better options, they want easier options

earnest phoenix
marble juniper
lyric mountain
earnest phoenix
dry imp
#

its cleat

#

r

marble juniper
#

Lol

near stratus
marble juniper
#

Also im on mobile so I can't help you that much

earnest phoenix
#

INDEX.JS

lyric mountain
near stratus
#

how lazy can ppl be ?

earnest phoenix
marble juniper
#

Ok

lyric mountain
#

but yeah, still a terrible way of storing data

#

especially given that people who use it usually store huge amounts of data per table

near stratus
earnest phoenix
#

"token": "My token is here",
"prefix": "!",
"ownerIDS": [
"ownerIDS"
],
"mongo": "MONGO_DB_URL",
"everyoneMention": false,
"hostedBy": true,
"customFilters": {
"clear": "dynaudnorm=f=200",
"lowbass": "bass=g=6,dynaudnorm=f=200",
"bassboost": "bass=g=20,dynaudnorm=f=200",
"purebass": "bass=g=20,dynaudnorm=f=200,asubboost,apulsator=hz=0.08",
"8D": "apulsator=hz=0.08",
"vaporwave": "aresample=48000,asetrate=480000.8",
"nightcore": "aresample=48000,asetrate=48000
1.25",
"phaser": "aphaser=in_gain=0.4",
"tremolo": "tremolo",
"vibrato": "vibrato=f=6.5",
"reverse": "areverse",
"treble": "treble=g=5",
"normalizer": "dynaudnorm=f=200",
"surrounding": "surround",
"pulsator": "apulsator=hz=1",
"subboost": "asubboost",
"karaoke": "stereotools=mlev=0.03",
"flanger": "flanger",
"gate": "agate",
"haas": "haas",
"mcompand": "mcompand"
}
}

#

This is my config.json

carmine summit
#

so uh eh.. huh?

earnest phoenix
#

Index.js and config.json are the only files i edited

quartz kindle
#

@earnest phoenix what the fuck is this

lyric mountain
earnest phoenix
quartz kindle
#

remove that

earnest phoenix
lyric mountain
#

damn I cant find examples of how quick db stores data

earnest phoenix
marble juniper
earnest phoenix
#

Its like that now

marble juniper
earnest phoenix
#

same error

marble juniper
#

To format your code

earnest phoenix
#

I won't invite

#

nah

marble juniper
#

No

earnest phoenix
#

?

marble juniper
#

the tiny icon idk what it is

#

In the editor

#

ah whatever forget it

earnest phoenix
#

this?@

#

@marble juniper

marble juniper
#

No

quartz kindle
#

@earnest phoenix

carmine summit
#

oh wait.. here

earnest phoenix
#

@quartz kindle

marble juniper
#

you forgot the other things

#

lol

near stratus
carmine summit
lyric mountain
#

aha, found one

#

had to go way up in this channel

near stratus
quartz kindle
marble juniper
#

If you don't like it

#

Use Math.round()

near stratus
#

@earnest phoenix
at this point just hire @quartz kindle to make a bot for you

lyric mountain
#

pam pam PAAAAAAAAAM

earnest phoenix
#

@quartz kindle

marble juniper
#

At this point delete ur bot and look at a javascript guide

quartz kindle
earnest phoenix
earnest phoenix
rustic nova
#

@quartz kindle how much do you charge for a bot SCsmug

lyric mountain
#

NoT tHe PlAcE tO aSk FoR a DeV

rustic nova
#

i'd do 69420

lyric mountain
rustic nova
#

-needdev @rustic nova

gilded plankBOT
#

@rustic nova

You seem to be asking for something you don't have experience for or something that hasn't been done yet, but really need for your bot/server.
You can hire developers from Fiverr or Freelancer to code the things you need for your bot/server.

quartz kindle
# earnest phoenix

that part is good now show the full code again to see if theres still something wrong, that last line should not have a red thing at the end

rustic nova
#

say less, i need boat with ping command ok

quartz kindle
#

ok

#

500 trillion zimbabwean dollars

rustic nova
#

very good deal

marble juniper
#

I only charge 1 shitcoin

#

Yes

#

Besides you can't directly fork a bot and just submit that because it will be declined

earnest phoenix
quartz kindle
#

and it runs on v12

lyric mountain
#

if I were an youtube I'd make a clickbait bot tutorial but will instead read out loud each single line of the big java book

earnest phoenix
#

Dk i gtg

#

I gth

#

I gtg

near stratus
earnest phoenix
#

Byeeeeee

#

I will. Go study

lyric mountain
#

How to make a BOT FOR DISCOD 😁😁 [EASY] [GONE WRONG] [POLICE!!]

boreal iron