#development

1 messages · Page 1919 of 1

earnest phoenix
#

ik

spark flint
#

for example i would to <meta property="og:image" content="https://sadburbur.xyz/bun/sadbun.png" />

earnest phoenix
spark flint
#

i fixed

earnest phoenix
#

lol

#

oh ok

#

ok i work tysm

#

may i ask what dose the keyword do?

spark flint
#

keywords for google iirc

#

dont quote me on that

earnest phoenix
#

or how do i make like if on google i searched Tryhard it show my website

#

how to?

#

@spark flint

spark flint
#

i'll google it

#

idk

earnest phoenix
#

ok tysm for everything

spark flint
#

What Are Meta Keywords? Meta keywords are a <meta> tag option that could be used to give more information to search engines on what a page is about. A <meta> tag defines what different types of metadata are about in an HTML document.9 Jul 2020

spark flint
earnest phoenix
#

so if i added like ZEIN_TRY as a keyword when i search ZEIN_TRY on google it will shoe the website?

#

oh hi FakE

boreal iron
spark flint
#

^

boreal iron
#

You need to integrate the tags into your html code

#

(into the head tag)

earnest phoenix
#

wdym?

#

like how?

#

ah i did

boreal iron
#

As the examples written below my answer showed it.

earnest phoenix
#

i puted the tags in the head part

#

just anwser my question

#

if i added like ZEIN_TRY as a keyword when i search ZEIN_TRY on google it will show the website?

boreal iron
#

Not really as it doesn’t mean to be indexed yet anyways

boreal iron
#

Without optimizing how you can be found in search engines the result of being found is poorly

earnest phoenix
#

wdym?

boreal iron
#

This poor result increase over time if lots of people visiting your site and if your site map got uploaded to Google Sense as well as if links of your site being shared on already popular indexed (top) sites on Google

#

That’s actually a complicated process to be found in the net

earnest phoenix
#

ouf

boreal iron
#

SEO analytics and optimization is not as easy as you might think

#

But defining keywords will help when it’s getting indexed

sterile brook
#

where else i can get user if it not in cache

boreal iron
#

fetch an user by his ID

tribal crow
#

Hey hey! When deploying my slash commands, i get this error that says Package subpath './v9' is not defined by "exports"

#

And that error comes from this: const { Routes } = require('discord-api-types/v9');

#

I've followed the guide, and done this on my other bot (there it works fine), but here it doesnt seem to.

#

Does anyone know why?

wheat mesa
#

Not that hard to make an exponential equation, it’s just y = ab^x

sterile brook
#

Had on message event been renamed?

wheat mesa
#

in v13 it’s messageCreate

sterile brook
#

ty

tribal crow
boreal iron
#

Simple math…
Increase the amount of XP each time by a few percent

lament rock
boreal iron
#

For example by 5%
XP * 1,05

#

Or go further and include the level as percentage of 1000

#

Adding it to the new XP

#

Not really difficult

lament rock
#

You might want to be careful with numbers in JS since commas don't count as valid float identifiers iirc

boreal iron
#

Well then * 105 / 100

lament rock
#

1.05

boreal iron
#

You didn’t respect the *

#

Rounded cough

tribal crow
#

Error: Expected token to be set for this request, but none was present

#

whats this

lament rock
boreal iron
#

Eww ads everywhere

quartz kindle
#

Error: Expected an ad to be shown in this chat, but none was found

boreal iron
#

Wait wait

#

I got a good one somewhere

#

Haa!

#

FakE modern boy posting memes

#

In the wrong channel of course

#

To fight the system and it’s rules!

quartz kindle
#

thats what i like to see :^)

boreal iron
eternal osprey
#

Hey I am reacting to certain messages using my bot made in v12. The reaction emojis are custom ones. However, the custom emojis change every day in terms of if which makes the bot not work.

#

Why is that?

boreal iron
#

Never worked with emojis but why should their ID change every day?

#

Don’t you specify an emoji ID and name when using custom ones?

vivid fulcrum
#

i think they're referring to the name changing

boreal iron
#

Even tho why should the name be changed?

tired panther
boreal iron
#

Thinking about that makes me wonder why you even need an emoji name if you need to provide an ID anyways
nvm then

eternal osprey
#

No sorry I actually found out that the command which sends out an embed with the reaction emojis, stop working after one day, so you will have to use the command again for the new embed to work.

#

I honestly have no idea why. And sorry for referring wrong. I will send a little code snippet soon

nova basin
#

i have enable client intents but same error

/home/runner/jhgfrftgyhzujidkolcvfdjheduhdnjyioqsminfbqheinjsbdiquhiznjd/node_modules/aoi.js/node_modules/discord.js/src/client/Client.js:544
      throw new TypeError('CLIENT_MISSING_INTENTS');
      ^

TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
quartz kindle
#

the only way to make reactions work forever is to use the messageReactionAdd and messageReactionRemove events, with some code to check if the message is valid

#

anyway, using reactions for functionality is not a good idea now that we have buttons

nova basin
#

no

#

thx

eternal osprey
#

So it shouldn’t matter

#

But after a day the bot says invalid emoji

#

In the logs

quartz kindle
#

then youre doing something wrong

woeful pike
wheat mesa
#

Been in Texas all my life and I’m ashamed to say that I read it the same way

quartz kindle
#

all yall

wheat mesa
#

I never even say y’all, I just hear it so much that it becomes natural

woeful pike
#

I use yall instead of guys now, still hasn't started feeling natural but we're getting there

sterile lantern
#
 const filter = m => m.author.id === message.author.id;
        let DM = await message.author.send({ embeds: [q1] })
        let plannedtime = await DM.channel.awaitMessages({ filter, max: 1, time: 180000
        })
        console.log(plannedtime.first())
        if (!plannedtime.size) {
            return message.author.send({ embeds: [timeout] });
        }```

This doesn't work despite having message content intent turned on, the console.log part returns undefined and the only thing the bot does is return a timeout msg, its supposed to go onto the next part (send another DM) which doesnt work
#

nvm ^

hybrid cargo
#

guild_messages and direct_messages are seperated into two different intents, you need to specify it while u are creating an instance of your client

pale vessel
#

Read the message below

earnest phoenix
#

lmao

clever thorn
#

Y does this unban command not work?

@has_permissions(ban_members = True)
async def unban(self, ctx, member:discord.Member):
    banned_users = await ctx.guild.bans()
    member_name, member_discriminator = member.split("#")

    for ban_entry in banned_users:
        user = ban_entry.user

        if (user.name, user.discriminator) == (member_name, member_discriminator):
            await ctx.guild.unban(user)
            await ctx.send(f'**UNBANNED {user.mention}**')
            return```
 
This is in a cog
Error:-
```raise MemberNotFound(argument)
discord.ext.commands.errors.MemberNotFound: Member "295499172994351105" not found.```
#

the user is banned

#

Um..... Anyone?

sterile lantern
weary root
#

It's 7:30 am here xD so cant help right now

near ether
#

what causes this error?
HTTPError [AbortError]: The user aborted a request.

clever thorn
near ether
#

just anything

lament rock
near ether
#

oh okay, ty!

lament rock
clever thorn
#

anyways ty

earnest phoenix
#

what does visual studio build tools 2017 do

pale vessel
#

tools for building

earnest phoenix
#

noice

#

do I need it for using visual studio communism with unity

olive wadi
#

;-;

earnest phoenix
#

the message can't be sent after your code ran Thonk

vagrant prairie
#

anyone know how an equip command would work for a discord economy bot?

novel jetty
#

How can i shorten this time? Like in format. DD.MM.YYYY - Hour.Min.Sec

earnest phoenix
#

spoonfeed

#

stackoverflow has code explanations

earnest phoenix
earnest phoenix
#

wait

vagrant prairie
#

my code be bilt differently

earnest phoenix
#

I gave you code for pick up

vagrant prairie
#

built*

earnest phoenix
#

lmao

#

by equip you mean take an item from their inventory and put it in their hand right?

vagrant prairie
#

yes

#

but 1max

#

i havent built the hand system yet only inv. thats why i came here

earnest phoenix
#
if (user has the item in their inventory) {
  change the currently equipped item to the new item
}
#

you're welcome

vagrant prairie
#

that still wont help

#

because

#

thats not what im asking abt.

#

i want to make a system for the equipped item

#

like i have the items, and inventory but nothing associated to equip

#

its just a command like t!equip eurotodayzoom1

#

ik how to make the conditions, just not how to make them equipped/unequipped

#

anyway thx for trying to help

hybrid cargo
urban moon
#

Here i want to directly assing @urban moon to m : discord.Member in 2nd argument insted of taking it from user
what should i do?

@b.command()
async def yayy(ctx,  m : discord.Member):
urban moon
novel jetty
#

What am i doing wrong here?

pale vessel
#

You imported something called threadCreate and you have variable called threadCreate

harsh blade
#

is there a way to trigger a discord command remotely from a file? Lets say i have a bat file on my second computer, when i run it, a discord bot runs the specified command in that file

feral aspen
vagrant prairie
#

thx

earnest phoenix
#

I would write a recursive decent parser for it ,to directly evulate or too create expression of it

lyric mountain
#

exactly what u wrote

#

let y = Math.sqrt(x / (5 ** 2 + 1))

#

nope

#

that'll result wrong

#

u missed bodmas at the end

#

it'll divide first before adding

#

but ur latex adds before dividing

#

I mean this

#

it is resulting right bcuz u rounds after calc

#

but it'll miss by 1 every 30 levels or so

#

lul

#

u can just floor it

#

since it should complete a level after or at 100%, nothing less

#

u can round any amount of decimals, but the last decimal must be floored

#

else it'll push up the total value

#

like, 5.999999, if u round the last value it'll push everything else to 6

#

but if u floor it'll stay at 5.999999

#

just do this val = Math.floor(val * precision) / precision

lyric mountain
#

floor it

#

flooring will remove the decimal

#

5 in this case?

#

ah

#

decimals = val - Math.floor(val)

lyric mountain
#

lul

#

just don't round it after sqrt

#

eh

#

yw bruh

#

sure

#

message.createdAt iirc

#

for my bot I store a "last earned xp" timestamp, then check how far it is from the next xp instance

#

if it is below 1 second, I multiply it by a value between 0 and 1

pale spindle
#

always having error "cannot find module"

pale spindle
#

yea got it

#

thanks

vivid fulcrum
#

huh

#

you want to check if the difference between the two timestamps is 60 seconds?

#

there's no layout

#

they're numbers

#

it's ms

#

so it would be 1000

#

correct

#

yes

lyric mountain
#

I just assign zero as default value

woeful pike
#

I recommend using a promise-based driver for whatever db you're using (probably mysql) so you don't have to do the ugly golang approach of

if (err) {
  console.log(err)
  return;
}

and can just await the thing you need and have one error handler that wraps the command take care of that instead

#

better-sqlite does everything synchronously from what I understand

marble juniper
#

Unrelated but
why do you have soooo many function parameters

#

also why do you have args twice

quartz kindle
#

there's a pretty good explanation on the readme

#

sqlite itself cannot write concurrently, everything is serialized

#

so even if you use async, 10 async writes at the same time will still be ordered and executed one at a time by the sqlite engine itself

#

so using async for sqlite is basically useless, thats the main point of better-sqlite3

blissful coral
#

Does this look better than constantly doing string.replace() over and over again at the end of the code

quartz kindle
#

sure

blissful coral
#

both ways wack but oh well

hybrid cargo
# blissful coral both ways wack but oh well
const replacements = {
  '{page}': `https://top.gg/blah blah`
}
for(const key of Object.keys(replacements)) {
  string.replace(key, replacements[key])
}
```I think this would be much better if this actually works. Im not sure about this tho, TIm? Your opinion?
blissful coral
#

hmmm

#

Does that work?

hybrid cargo
#

I think it should

quartz kindle
#

sure, thats fine too

blissful coral
#

oh pog

#

Slightly cleaner lul

hybrid cargo
#

😂

quartz kindle
#

does a given string always have the same replacements?

#

or do you have different strings, each with different replacements?

blissful coral
#

diff strings with diff replacements

#

oh

#

wait

#

no same string has the same replacements

#

the string value always goes through the same ones

quartz kindle
#

as long as the placeholders are unique

#

for example

blissful coral
#

I am going to be adding more but thats just the starting list I have created

quartz kindle
#
globalList = {
  "{a}": "...",
  "{b}": "...",
  ...
}

for(const key of Object.keys(globalList)) {
  if(string.includes(key)) {
      string.replaceAll(key, globalList[key])
  }
}
blissful coral
#

hmmm

#

That's usefull

distant cobalt
#
client.on('messageCreate', async message => {
    console.log(db.get(`counterGameNumber`))
    if(db.get(`counterGameNumber`) == null){ db.set(`counterGameNumber`, 0)}

    if(message.channel.id != "908384000610025554") return

    if(message == db.get(`counterGameNumber`) + 1){
        console.log('number')
        db.add(`counterGameNumber`, 1)
        message.react("✅")
    }
})``` why won't it work. it won't print `number` or react with ✅
quartz kindle
#

first of all, message can never be equal to a number

#

message is the full message object with all the message properties, not the actual content of the message

#

you're looking for message.content

#

second, dont call the database multiple times like that, its extremely slow

#

database should always be used as few times as possible

#

store the results in a variable then use the variable

distant cobalt
#

ohhhh

#

alr thankss

boreal iron
#

Finally, the hardware arrived oldEyes

#

Look at that beast

urban moon
#

Here i want to directly assing @urban moon to m : discord.Member in 2nd argument instead of taking it from user
what should i do?

@b.command()
async def yayy(ctx,  m : discord.Member):

btw discord.py

sterile brook
#

Anyone know best replacement for this v12 structure in v13?

stone coyote
# distant cobalt ```js client.on('messageCreate', async message => { console.log(db.get(`coun...

Slightly better version, should do the job whatdogdoin

client.on('messageCreate', async message => {
    console.log(db.get(`counterGameNumber`));
    if (db.get(`counterGameNumber`) === null) db.set(`counterGameNumber`, 0);
    if (message.channel.id !== "908384000610025554") return;
    if(parseInt(message.content) === db.get(`counterGameNumber`) + 1) {
        console.log('number');
        db.add(`counterGameNumber`, 1);
        message.react("✅");
    }
})
urban moon
boreal iron
#

I see 3 db queries pepowot

stone coyote
#

Won't fix everything for them, but yeah, can be shorten by making a variable for it

boreal iron
#

get the game number and save it in a var wtf

quartz kindle
#

thats what i said lmao

earnest phoenix
slow ibex
#

Uuuh.. quick question.. when i start my bot with its Token.. it starts really slow and i get undefined warnings..
But when i start it with the Token of my Test-Bot.. it starts almost instantly and doesnt throw any warnings

boreal iron
#

It starts slowly because it receives the READY event which contains all guilds, missed messages etc.

#

Take can sometimes take seconds/minutes depending on the size of data

#

Guilds can sometimes be unavailable becasuse of whatever reason

#

They may cause this issue

slow ibex
#

Alright.. i was wondering if there was an issue with the bot.. if it got shadow banned or something like that.

boreal iron
#

That's why I told you a few weeks/months ago to check if a guild is available in your event IN THE FIRST PLACE

slow ibex
#

It started with Server Outage warnings, then it randomly crashed. Thats all i know.

#

Check if a guild is available? Doesnt the discord api do it by itself?

boreal iron
#

No.

#

And Yes

#

djs has it's own property for it

slow ibex
#

So.. i may have Servers listed in my Guild cache that doesnt exist?

boreal iron
#

<guild>.available

#

Nope they aren't in the cache

#

Since the whole guild obj is undefined but the ID still exists

slow ibex
#

Now im actually confused.

#

Okay.. so.

#

In my event handler.. i have an Event for when a Guild becomes Unavailable

#

But all i do is log it do the console.

boreal iron
#

In your event you will receive the guilds from Discord, djs caches them in a collection, collections are using the guild ID as key, and the data as value

#

You still receive the unavailable guild ID from Discord, but no data

slow ibex
#

If i understood you correctly.. i should remove that server from the client.guilds.cache

#

Okay

boreal iron
#

The ID always exists but no more data about the guild

slow ibex
#

Thats also for when the Bot gets removed from a guild, right?

boreal iron
#

In any event you use/need the guild object, check once if the guild is available if(!guild.available) return;

boreal iron
#

That's for guild being unavailable

#

For whatever reason

slow ibex
#

Okay

boreal iron
#

The guilds are unavailable BY Discord not your code

slow ibex
#

Oh okay

#

But.. if the guild is not avail.. it cant interact with the Bot.. so it shouldn't matter right?

boreal iron
#

If a guild is unavailable, there's no data you can get other than the ID and nothing you can do with the guild, yeah

slow ibex
#

Ooooh okay xD

#

I initially thought that it was much more worse than that

sterile brook
#

me dying without extends

slow ibex
#

So its only.. right now... for what i use the data... a "Displaying and Analytical" issue

slow ibex
boreal iron
#

Guilds can be unavailable and available a few minutes later, that's how it is

#

If you check if a guild is available before logging stuff in the associated event, you won't get undefined results

#

As I wrote

#

if(!guild.available) return;

#

for example in your message_create event, guild_create, guild_delete etc

slow ibex
#

Yup. Thats right.

boreal iron
#

I'm fucking nervous

slow ibex
#

Why tho?

boreal iron
#

doing a BIOS update over ASP

#

hoping it doesn't reset my RAID controller

slow ibex
#

I mean.. i work with Enterprise Stuff.. but ASP?

boreal iron
#

Best message I ever read

slow ibex
#

Oh

boreal iron
#

long time

slow ibex
#

that ASP

boreal iron
#

lol not MS ASP

#

the protocol

slow ibex
#

Me owning a Fujitsu Primergy as 24/7 Server @ Home and dont know what ASP is.

#

Nice

boreal iron
#

Those things a fucking amazing

slow ibex
#

Yes

boreal iron
#

...and the network died

slow ibex
#

I own a TX120 S3... Really nice for the Formfactor

boreal iron
#

omg

#

TX2540 M1

slow ibex
#

Upgraded the CPU to an E3-1260L.. Installed ESXI 7... Extra NIC, LSI Megaraid Controller.

#

Its a beast

#

In the format of a Folder

boreal iron
#

Upgraded the parts today

slow ibex
#

Uh 2450 V2

#

nice

boreal iron
#

Yeah

slow ibex
#

Reg DIMMS?

boreal iron
#

ecc yeah damn expensive

slow ibex
#

Expensive? I can only Put UDIMMS ECC into my Server

#

Thats the most expensive ram

#

ffs

#

Reg ECC? Nah..

#

Non ECC? Nah

boreal iron
#

Yeah RAM alone 500 bucks for 96 GB ECC

#

reg

slow ibex
#

Wanted to max out my lil Server to 32Gigs.

#

Would be 200-400€

boreal iron
slow ibex
#

Maybe i will decom. the Server next year and Upgrade to a newer TX..

#

Or maybe i will downsize my Network and Move to a powerfull NAS

boreal iron
#

Phew… BIOS update worked without issues

slow ibex
#

Did you got an IRMC Advanced License with your Server?

split hazel
#

why update bios

#

unless there is a very compelling feature available youd be risking it for nothing

boreal iron
#

spectre and latest hardware support

split hazel
#

sussy

glacial vapor
# boreal iron

"dont interrupt this installation process"

proceeds to highlight close button

split hazel
#

isnt spectra a cpu vulnerability

boreal iron
slow ibex
#

IRMC Advanced = KVM Access

azure lark
#

how could i make a timer command with djs that keeps updating to show how much time is left?

boreal iron
#

Not sure where the license shows up

slow ibex
#

Yesss

#

Same

#

lol

lyric mountain
boreal iron
#

Finally got power backup unit for my RAID controller in cases the PSU fails or my electricity provider

split hazel
#

who is raid

boreal iron
#

he/she/it raid

slow ibex
#

BBU is for people who are afraid of Dataloss

boreal iron
#

Aye

#

Dude the drives are so fucking expensive and my data is important, too

#

As I'm moving my centralized database from my root server, home into my local server

boreal iron
#

Redundancy is fucking important

#

There are so many VMs running on it

slow ibex
#

Running for 7 Years.. still being strong

boreal iron
#

Yeah Fujitsu servers are damn good hardware

#

But anyway, got a extra hardware for any case

#

3 more hot plug PSUs

#

1 more RAID controller

#

(my old) CPUs since before the upgrade

#

2 RAM modules

#

etc

#

Guess it will last the next 10 years

slow ibex
#

Maybe get one or two spare fans

boreal iron
#

Yeah it got 3 and already one extra

#

Even if the RAM is expensive, most expensive shit are good drives

#

RAID0 - Seagate IronWolf Pros
RAID0 - Samsung 970 EVO Plus (mounted on PCIE cards)
RAID0 - Fujitsu SAS 15k RPM
RAID0 - Samsung 870 QVO
and two small SSDs via SATA for what so ever

#

Yes and while I wrote RAID0 I mean RAID1 lol

slow ibex
#

Nice

boreal iron
#

That's the price of getting old, too old

lyric mountain
#

raido

earnest phoenix
boreal iron
#

No just power on cycle

earnest phoenix
#

ah okay

boreal iron
#

7 years without a restart and without updates would be long

slow ibex
#

i mean.. hehe

#

We have a few workstation with 3y Uptime

boreal iron
#

Imagine 3 years without electric outages

#

weew

slow ibex
boreal iron
#

Phew all drives back in and the controller could save import the old setup

#

GOD THANKS

slow ibex
#

Oh no

#

Not SeaBIOS

boreal iron
#

That’s the LSI MegaRaid controller lol

#

Not the BIOS KEKW

slow ibex
#

Yeah i know.. i also have an LSI Megaraid xD

earnest phoenix
boreal iron
#

You just don’t know how complex that setup is combined with your houses electric system and how expensive

#

Not worth in my case

#

But yeah you could theoretically

azure lark
#

how to i find the name of a category with djs

lyric mountain
#

channel -> channel.category

#

either null or the category itself

azure lark
#

so i can do .addField(`Channel Category`, `${channel.category || "None"}`, true)

lyric mountain
#

u still need to get the name of it

azure lark
#

so then just add .name?

lyric mountain
#

else u'll get [Object object]

#

I guess so

earnest phoenix
lyric mountain
#

generators are cheap

#

the installation tho...

azure lark
#

channel.category returns undefined

lyric mountain
azure lark
#

oh ok

boreal iron
#

Those generators start at about 2000

#

And yes the installation to even be a redundant device is fucking expensive, too

#

Close to be ready

#

Proxmox is close to be installed

#

Let’s hope the ZFS raid doesn’t kill my drives too fast

azure lark
#

how do i list all the perms a channel has on it for the @ everyone role

boreal iron
#

<guild_channel>.permissionsFor(…)

proven lantern
#

ParseInt both numbers and see if they are the same

#

Or Math.floor

lament rock
#

just floor both numbers and check
if (num1 + 1 === num2)

lyric mountain
#

just revert the equation

#

save the previous experience before running update

lament rock
#

Ideally, you should calc xp first then calc level then only do 1 update of xp and level if applicable to update level, else just update xp

#

(good on you for using prepared statements btw)

lyric mountain
#

ah, for that

#

do it in the same place you're adding the exp

#

you're not doing the sum directly on database are you?

#

where u get this?

#

there u have it

#
const toLvl = x => Math.floor(Math.sqrt(x / (5 ** 2 + 1)));

let expUpdate = row.exp + rand;
if (toLvl(expUpdate) > toLvl(row.exp)) {
      // Notify lvl up
}
proven lantern
#

mutation rears it's ugly head

lyric mountain
#

no problem, the value will only be updated after u rerun SELECT

#

don't worry, that's normal

azure lark
#

why dose this not work? \`\`\`\n${channel.permissions.toArray().join(", \n")}\n\`\`\

lyric mountain
#

errr...

#

wait lemme see that formatted

proven lantern
#

", \n"

#

",\n"

lyric mountain
#

ah yeah

proven lantern
#

maybe

#

what's wrong?

lyric mountain
#

actually

#

can't u just use join on a collection?

#

set it as index

proven lantern
#

oh yeah, it's not a string

lyric mountain
#

or use ORDER BY

proven lantern
#

nm, i'm confused too

#

apex time

lyric mountain
#

HOW doesn't it work? what's the expected result vs the actual result

#

also u don't need to use .toArray() if it's already a collection

azure lark
#

i want to list all the perms a channel has in an embed

lyric mountain
#

ok, what's the actual result?

azure lark
#

Cannot read properties of undefined (reading 'toArray')

#

this is it in an embed,
.addField(`Channel Permissions`, `\`\`\`\n${channel.permissions.toArray().join(", \n")}\n\`\`\``)

lyric mountain
#

channel probably doesn't have a permissions property then

#

check the docs

azure lark
#

ok

#

roles has it

lyric mountain
#

maybe it's permissionOverrides

#

or smth like that

azure lark
#

cant find anything,

lyric mountain
#

search harder

boreal iron
#

@slow ibex Turns out the installation of the hardware has its downsides
Tried to install Proxmox on the PCIE NVMEs but they aren’t bootable
Need to check the BIOS for CSM Settings tomorrow but I assume it’s basically unsupported

#

Which would be less than unfortunate

keen obsidian
#

Who else keeps their bots code clean for the first 1 or 2 updates and just stops trying to keep it clean?

#

Lol

earnest phoenix
#
ui: MariaDB database PHPMYADMIN user interface NODE.JS```
boreal iron
#

There’s no difference loading the commands from a database or directly from the file system

novel jetty
#

What does this mean? Can someone help me fix this please?

split hazel
#

it looks like you havent specified all of the parameters it requires

vivid fulcrum
#

no

#

just wrong types

novel jetty
# split hazel can you send the first line of code for the `messageUpdate` function
import Discord from 'discord.js'
import { client } from '../index'
let message: Discord.Message  
export async function messageUpdate(oldMessage: Discord.Message | Discord.PartialMessage, newMessage: Discord.Message) {
  const j2embed = new Discord.MessageEmbed()
  .setColor("ORANGE")
  .setAuthor('Message Updated')
  .setDescription(`${newMessage.author} edited their message in ${newMessage.channel}`)
  .addField('Jump to Message', `[Click Me](https://discord.com/channels/${newMessage.guild.id}/${newMessage.channel.id}/${newMessage.id})`)
  .addField(`Old Message`, `${oldMessage.content}`, true)
  .addField('New Message', `${newMessage.content}`, true)
  .setTimestamp()
  let channel = client.channels.cache.get("875064682434691078") as Discord.TextBasedChannels
  channel.send({ embeds: [j2embed]})
}
split hazel
#

yes

vivid fulcrum
#

you're lacking | PartialMessage on the newMessage param

split hazel
#

such a typescript moment

vivid fulcrum
#

any 😎

novel jetty
vivid fulcrum
#

it should

#

lacking means missing

split hazel
#

doesnt discordjs just have a global type specifically for message params

#

to avoid a mess like this

novel jetty
#

I fixed it

#

Thanks!

#

Oh wait

#

I didn't...

split hazel
#

caught lacking

novel jetty
#

I did fix it nvm

#

Thanks for the help!

split hazel
#

if you're talking about relational databases the best way would probably either be bitfields or a lot of columns

#

yes bitfields

earnest phoenix
#

1. creating 50 servers and 50000 lines to check the commands when they type it in
2. 1 board has all the command names, a tiny intel and the sid associated```


1 solution with a picture
https://cdn.discordapp.com/attachments/272764566411149314/908450790920818738/unknown.png


2 solution with a picture
https://cdn.discordapp.com/attachments/272764566411149314/908450847309049866/unknown.png
lyric mountain
#

no need to

#

think of bitfields as " boolean slots"

#

0000 0000 here I have 8 slots

#

let's say I want to enable slot 2

split hazel
#

though you'll run out of bits quickly lol

lyric mountain
#

0000 0010

split hazel
#

so youd need to store them across multiple columns

#

or use some kind of bigint type

#

well in a for example 32 bit environment the most individual bits you can set is well 32

#

so 32 commands

sterile brook
#

why this gives error?

#
DiscordAPIError: Invalid Form Body
 at RequestHandler.execute (C:\Users\User\Desktop\Kek\node_modules\discord.js\src\rest\RequestHandler.js:349:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (C:\Users\User\Desktop\Kek\node_modules\discord.js\src\rest\RequestHandler.js:50:14)
    at async TextChannel.send (C:\Users\User\Desktop\Kek\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:172:15)
    at async Help.run (C:\Users\User\Desktop\Kek\Commands\General\help.js:113:28) {
  method: 'post',
  path: '/channels/864902366952554556/messages',
  code: 50035,
  httpStatus: 400,
  requestData: {
    json: {
      content: undefined,
      tts: false,
      nonce: undefined,
      embeds: [Array],
      components: [Array],
      username: undefined,
      avatar_url: undefined,
      allowed_mentions: undefined,
      flags: undefined,
      message_reference: undefined,
      attachments: undefined,
      sticker_ids: undefined
    },
    files: [ [Object] ]
lyric mountain
#

there, I forgor how to turn specific bits

#

had to look at my code

#

to turn off specific bits just use val &= ~(1 << index)

earnest phoenix
#

1. creating 50 servers and 50000 lines to check the commands when they type it in
2. 1 board has all the command names, a tiny intel and the sid associated```


1 solution with a picture
https://cdn.discordapp.com/attachments/272764566411149314/908450790920818738/unknown.png


2 solution with a picture
https://cdn.discordapp.com/attachments/272764566411149314/908450847309049866/unknown.png
eternal osprey
#
{"345138133429649408":{"id":["trTJQT6o3"],"name":[["Sehun"]],"group":[["EXO"]],"number":[["#006"]],"condition":["5"],"concept":[["Universe"]],"file":["./cards/6.PNG"],"print":[1]},"367251020914491392":{"id":["lNcOqyE3B"],"name":[["D.O."]],"group":[["EXO"]]```hey how would i change the key? In this example, the user id?
#
   for (const key in userdatabase){
      if(key == message.author.id && userdatabase[key].id === test[0][2]){
       key = m.id
        let gift = Number(currency[message.author.id].gift + 1)
    currency[message.author.id].gift = Number(gift)
        
      }
    }```i tried this
earnest phoenix
eternal osprey
#

to a variable for example named: user1

#

(which holds another id)

sterile lantern
#

How do we check if a user has a role in discord.jsv13, member.roles.has doesn't work

eternal osprey
earnest phoenix
sterile lantern
#
if (member.roles.cache.some(role => role.id === myRole)) {
  console.log("has role")
}```

I tried this but it doesn't console.log
#

Yeah I tried that

#

Does it work with IDs?

earnest phoenix
#

it should work or it still works for me

sterile lantern
#

Ah wait it's bc myrole is defined as finding a role

#

Got it ty

lyric mountain
#

what exactly u want to do?

visual forge
#

What's an easy way to have an api call and display the number of servers the bot is in without showing my API key in the client side. I'm having a hard time finding a solution

earnest phoenix
# lyric mountain what?

I would like to store the commands that server id brings and can be switched on and since there are many commands / servers I want to create a simple but easy to use table structure that is not loaded and easily accessible in MARIADB

sorry for my english

woeful pike
#

have a public endpoint that specifically only shows that data

lyric mountain
#

if it's a low count just use bitflags

earnest phoenix
#

50+ command/server

lyric mountain
#

50+ commands then, not /server

#

use an array of disabled command names

#

like, lets say you have

!!doritos
!!nachos
!!ping
!!help
#

I want to disable nachos

#

just save on database as ["nachos"]

#

then when running the command check if it is in disabled commands list

earnest phoenix
#

cmd list

#

disabled cmd

#

?

#

so you think that

#

now the test2 comand on the xy server is turned off

lyric mountain
#

just make an array of blacklisted commands ids then

#

like [1,2,3]

#

so commands 1, 2 and 3 are disabled

#

do note tho, the command names are already ids (no 2 commands with the same name)

#

u don't need a numeric id column

earnest phoenix
#

thank you very much for your help a lot with this

lyric mountain
#

yw

eternal osprey
#
 for (const key in userdatabase){
      if(key === message.author.id && userdatabase[key].id === test[0][2]){
        console.log("yess")
       key = m.id
        let gift = Number(currency[message.author.id].gift + 1)
    currency[message.author.id].gift = Number(gift)
        
      }
    }```how would i change the key to a different id?
lyric mountain
#

if that's sql, use UPDATE <table> SET <column> = <new value> WHERE <column> = <old value>

hoary elm
#

Can anyone tell me what a good perm requirement would be for a warn command? Maybe MANAGE_MESSAGES or?

#

True enough, thanks ❤️

fathom kite
hoary elm
fathom kite
#

ok

hoary elm
#

True

azure lark
#

how do i send an embed then put a reaction collector on that embed

lyric mountain
#

I vote for MANAGE_ROLES too, warns are usually linked to how users behave

hoary elm
azure lark
#

how do i check the collected response

fathom kite
#

k

fathom kite
lyric mountain
wicked pivot
#
for(var i = 0; i < 3; i++){

}``` timer ? 0 (delay 5 seconde) ... 1 (delay 5 seconde) etc etc how to do ?
eternal osprey
#
{"345138133429649408":{"id":["trTJQT6o3"],"name":[["Sehun"]],"group":[["EXO"]],"number":[["#006"]],"condition":["5"],"concept":[["Universe"]],"file":["./cards/6.PNG"],"print":[1]},"367251020914491392":{"id":["lNcOqyE3B"],"name":[["D.O."]],"group":[["EXO"]]```how do i change the 324513342964.... entry?
lyric mountain
#

but well, you can just use setInterval(() => { what to do }, 5000)

wicked pivot
#

I need the "for" otherwise I will have done like that

lyric mountain
#

why u need it?

#

u can also use a promise-based sleep to delay next pass

#

and please, forget var exists

wicked pivot
#
for(var i = 0; i < 180; i++){
    SendRequest(i*100)
}```
#

sendRequest = request to an API

#

that's why i need a delay to not spam the api

lyric mountain
#

yk setInterval can be cancelled right?

#

anyway, I gave u 2 options

wicked pivot
#
for(var i = 0; i < 180; i++){
    setTimeout(function(){
        SendRequest((i*100))
    }, (i*5000))
}```how good that would not it?
lyric mountain
#

no good

#

that'd actually DOS the api

#

either use setInteval or use promise-based sleep to delay next pass

wicked pivot
#

setInteval ? how do you want to do it ? knowing that I need the "i"

lyric mountain
#

use promise-based sleep then

#

u didn't say u needed to use i

wicked pivot
#

SendRequest(i*100) x) sorry

#

promise-based what this ?

lyric mountain
wicked pivot
#

it works thank you

spark flint
#

what is the best cheap cdn

#

i can't use cloudflare as it doesn't really fit into my use case

#

Gone for a hetzner storage box

lyric mountain
#

Why not cf?

#

Also, there's always Discord as cdn mmLol

spark flint
#

I cancelled my storage box because it’s not right for my use case

lyric mountain
spark flint
#

Epic ty

lyric mountain
#

And as I said, discord is always a fallback option kekw

spark flint
#

Won’t work

#

As I’m making a upload.systems alternative for friends

lyric mountain
#

Cf for u then

spark flint
#

Yep

boreal iron
#

As it’s not designed as cdn

#

Also a cdn is a network of content delivery means not only one server/region

#

It’s like a server mesh delivering the same content which makes it redundant in the first place and due regional cdns fast accessible for users around the globe

late parrot
#

@grizzled junco

#

and then copy the final url

grizzled junco
#

ight

late parrot
#

that's ur bot's invite

grizzled junco
spark flint
#

A tool I recommend is Discord permissions calculator

#

Look that up on google

#

It generates an invite with the permissions you want for the bot

grizzled junco
#

eh

spark flint
#

That

#

It’s great

grizzled junco
#

eh

#

i just want my bot's inv url ToT

pale vessel
#

...why use that

#

Everything is already there in the developer portal

grizzled junco
woeful pike
#

if it makes you feel any better I have to google how to find my bot's invite url every single time too

grizzled junco
#

...

pale vessel
#

Permissions 8 RaidenAcid

lyric mountain
late parrot
grizzled junco
#

ok

sly sierra
#

@earnest phoenix look

#

just send me an image of your code

#

and let me see what lang it is

#

then why are you asking

#

ohhh

#

wait

#

oh

late parrot
#

xD

wheat mesa
#

This isn’t a channel for help with bots you didn’t program

#

It’s for development

#

Hence the name

delicate shore
#

Hello guys

#

I have everything setup on a gh repo say username/x

#

I want to move all the data including branches and codes to a diff repo username/y

#

I don't want to rename x to y because y already exists and has over 50 stars

#

But x was supposed to be a temp repository for me to work on

#

How can I shift?

lament rock
#

you'd have to move manually instead of the conventional transfer

azure current
#

hey guys can i ask u something. i was made a discord bot , its on the site repl.it but when i made it i dont know how to do it online can someone help me ?

earnest phoenix
azure current
#

Wheres it

earnest phoenix
#

bruh

#

screenshot your screen

azure current
#

I mean set online discord bot , not mine profile

azure current
earnest phoenix
#

yeah

azure current
#

Oh just moment

#

It is this?

earnest phoenix
#

damn

#

not that

sly sierra
#

their asking for the repl itr

earnest phoenix
#

i said the replit

azure current
#

Ohh

earnest phoenix
#

oh i didnt said replit

#

mb

#

yeah screenshot replit

azure current
#

Okay moment

#

This one?

earnest phoenix
#

yes

sly sierra
#

its so blurry

earnest phoenix
#

press the green button

#

at the very top

azure current
#

But i had a problem because i can connect the bot with discord

earnest phoenix
#

wym you can connect your bot

azure current
#

I mean connect the bot token with replit

clever thorn
#

Any good hosting services?
replit + uptime is just too slow

earnest phoenix
lament rock
#

none that are free

#

buy your own

clever thorn
clever thorn
#

ok

azure current
lament rock
#

Contabo is cheap

clever thorn
clever thorn
lament rock
#

5 eur for 4 cores 8 GB

earnest phoenix
azure current
#

Okay

#

Do i need to create ".env" file

azure current
earnest phoenix
#

just read the article

azure current
#

Okay

delicate shore
lament rock
azure current
#

@earnest phoenix hey man im again.
What is the code for connect? Its on the site?

slender thistle
#

Hi again

novel abyss
#

How

#

To

#

Reset my bot

#

Like

#

Turn him offline then online

upper moss
#

eh

#

just kill the terminal and run it again

earnest phoenix
#

my bot joining and instantly leaving a server ?
help me pls
pls
2 peopleinvited my bot
and not event 1 second
it left
how is it possible ?
if someone dont likes it would take some time to remove
but

lament rock
#

Probably an automated system removed it or the guild went into an outage at a coincidental time and GUILD_DELETE was fired. You should be checking guild.available for if the guild went into an outage or if it was actually removed

loud tree
#

list_num = numbers.split()

list1 = []
for n in list_num:
    list1.append(int(n))

multiply = 1

for x in list1:
    multiply *= x
    
print(multiply)```
#

i am using this as to make list and give multiply those

#

any other short trick?

#

Making list is compulsory

pale vessel
#
multiply = 1

for x in list1:
    sum *= x
    
print(multiply)```
#

I don't get this part

#

You're not doing anything with multiply

crystal wigeon
#

hey

#

how do i get the user id who reacted to an embed with message.awaitReactions?

crystal wigeon
#

thanks

earnest phoenix
# clever thorn only free

someone would have to be really stupid to give away computer processing power with unlimited internet bandwidth for free

earnest phoenix
earnest phoenix
summer acorn
#
async def foo(x):
  # code
    return foo(x)

I keep getting the error TypeError: 'NoneType' object is not callable, also testing different types of things, it's still not working, so I am pretty sure I am just doing it wrong. How do I call an async def function inside of itself in python?

#

google is of no help either

earnest phoenix
#

does it work with sync functions?

summer acorn
#

yes

#

but I can't make the function a sync function

earnest phoenix
#

try awaiting before returning

summer acorn
#

I've tried awaiting

earnest phoenix
#

don't use python

#

problem solved

summer acorn
#

with await, I just get NameError: <Javascript ReferenceError>: await is not defined

summer acorn
#

I just have to fix it

earnest phoenix
summer acorn
#

for some reason I can't call an async def without await but I can't use await without an async

#

like what

earnest phoenix
#

and def keyword for functions

rust is so much more fun

woeful pike
#

you can't wait for an async thing to finish if your caller isn't in turn waiting for you

summer acorn
#

every other lang be like: 👀

woeful pike
#

every other language also does this

woeful pike
crystal wigeon
#

any workaround for this?

#

do i need to check the cache to get the user who reacts to the embed>?

pale vessel
#

But you're using awaitReactions()

#

It returns right after a user reacted, no?

crystal wigeon
#

no

pale vessel
#

It wouldn't be gone straight away

crystal wigeon
#

if i wait 30secs and react, its empty

#

actually its gone after 5secs

#

maybe i'll try createReactionCollector

pale vessel
#

How long did you set it to run for and what's the reaction limit/filter?

#

You don't really need to use the collector if you'll be collecting one reaction

crystal wigeon
#

filter is !user.bot and [emoji].includes

#

time limit is 30sec

#
                    msg.awaitReactions(filter, {
                        max: 1,
                        time: 60000,
                        errors: [ "time" ]
                    }).then(async (collected) => {
                        const reaction = collected.first();
                        const { name } = reaction.emoji;
                        if (name == check) {
                            const claimer = reaction.users.cache.filter((u) => !u.bot);
                            console.log(claimer);
                            channel.send("claimed");
                        }
                    });```
#

claimer is empty after 10sec

cobalt junco
crystal wigeon
#

i've been using it that way for a long time and it works

#

well i mean, filter doesnt mean the "claimer" would be empty after 5secs

#

i tested it

#

if i react before 5secs, I get the user

quartz kindle
#

v12 or v13?

spark flint
#

how do i use ftp in node.js

#

i'm using express-formidable to get the files sent in a post request and i need to then upload it to ftp

earnest phoenix
#

server and commands_settings and plugins_settings saved
ahhhh

con.query(`INSERT INTO servers (sid,server_name,prefix,lang) VALUES (?,?,?,?)`, [guild.id, guild.name, '-', 'en']);
        con.query(`SELECT * FROM plugin_list`, (err, plugin_row) => {
          plugin_row.forEach(plugins => {
            con.query(`INSERT INTO server_settings_plugin (sid,plugin_id,type,prenium) VALUES (?,?,?,?)`, [guild.id, plugins.plugin_id, plugins.plugin_def, plguins.plugin_prenium]);
          });
        })
        con.query(`SELECT * FROM cmd_list`, (err, cmd_row) => {
          cmd_row.forEach(cmd => {
            con.query(`INSERT INTO server_settings_cmd (sid,cmd_id,plugin_id,type,prenium) VALUES (?,?,?,?,?)`, [guild.id, cmd.cmd_id, cmd.plugin_id, cmd.cmd_def, cmd.cmd_prenium]);
          });
        })
lyric mountain
#

why don't u just do a batch insert?

earnest phoenix
#

because new commands or plugins and
there is a default setting eg to be on or off by default and to be a premium or not

#

and I can expand the list at any time as it will keep coming with a + command or plugin

lyric mountain
#

what I mean is, instead of god-knows-how-many inserts you can just convert into a single batch insert

#

actually

#

you don't even need that much code

earnest phoenix
#

well then show me a solution to this

CMD settings

#

plguin settings

lyric mountain
#
INSERT INTO server_settings_plugin (sid, plugin_id, type, prenium)
SELECT ?, plugin_id, plugin_def, plugin_premium FROM plugin_list
#

for first part

#
INSERT INTO server_settings_cmd (sid, cmd_id, plugin_id, type, prenium)
SELECT ?, cmd_id, plugin_id, cmd_def, cmd_prenium FROM cmd_list
#

for second

#

I fail to see what kind of data you're storing there or what is represents

#

but it can be boiled down into that

#

also "prenium"

earnest phoenix
lyric mountain
#

ye

earnest phoenix
#

okey one minit testing

lyric mountain
#

before you continue, would you mind explaining what those SQLs I sent are doing?

gentle condor
#

I'm making a meme command how do i add a "Next" button using discord-components which just gets another meme from my api.Here's my code

  @commands.command()
  async def meme(self , ctx):
    r = requests.get(os.getenv("api"))
    res = r.json()
    title = res["title"]
    image = res["image"]
    up = res["ups"]
    do = res["downs"]

    meme = discord.Embed(title = title,color = 0xED4245)
    meme.set_image(url = image)
    meme.set_footer(text = f"👍 {up} | 👎 {do}")
    await ctx.send(embed = meme)

      ```
earnest phoenix
split hazel
#

anyone know a good program to backup programs/registry/program configurations on windows? I want to downgrade to 10 but I can't downgrade officially via the "windows old" thing

earnest phoenix
#

Message event 11 row

con.query(`SELECT * FROM servers WHERE sid=?`, [message.guild.id], (err, srow) => {```
lyric mountain
#

message wasn't sent in a guild channel

#

you still didn't answer me

earnest phoenix
#

oo shit

#

bot send private massege welcome

#

I think I missed that

if(message.author.bot) return;
if(message.channel.type === 'DM') return;
lyric mountain
#

else I refuse to assist you anymore

earnest phoenix
#

I'm already showing

#

server setting CMD

#

save the command settings to the server

#

or did I misinterpret the question?

lyric mountain
#

nono, I mean the SQL itself not the result

#

what ```sql
INSERT INTO ...
SELECT * FROM some_table

split hazel
#

are you testing his sql knowledge lmao

lyric mountain
#

indeed

earnest phoenix
#

creates a row in the specified table in which the data from another table will be queried

lyric mountain
#

I just gotta make sure you understand what you're copying before doing it

earnest phoenix
#

and well, i'm not a professional but at least I can filter the point out of most things
I didn't know many things like what you're showing now I at least know a simpler measure than what I wrote

#

so thank you for taking the time to help me with my project ❤️ 😉

lyric mountain
#

that's good, learning from codes is a great way of improving

earnest phoenix
#

you're welcome

lyric mountain
#

I see so many people here who just grab the first solution and simply disappear without even knowing what they copied

earnest phoenix
lyric mountain
split hazel
#

I would imagine fs supports ftp

spark flint
#

whats fs

split hazel
#

the file system module for node

spark flint
#

ah

split hazel
lyric mountain
#

like, ftp is just a normal directory

#

but remote instead of local

earnest phoenix
# lyric mountain fs maybe?

since i like to program sometimes i enjoy that it only sucks for 4-5 hours but i still enjoy why i do what and i try to figure out if i don't know

azure current
#

hey guys can someone help me to connect my bot with set it online please ?

#

i need some help please

#

because im new with this information

quartz kindle
#

ftp is a protocol, just like http

#

you need a library for it, since node doesnt have it built in

#

or build your own with tcp sockets

split hazel
#

that's a shame

#

node caught lacking with ftp

quartz kindle
#

honestly node shouldnt even have http

#

they should have stuck with tcp only, and have people write http libraries

#

because now we have this situation where node's built in http library is bad

#

and most alternatives are better lol

#

like undici

split hazel
#

most libraries just use the node http

quartz kindle
#

ye and those are bad too

split hazel
#

doesn't node fetch do that

#

I know axios doesn't and that's about it

quartz kindle
#

pretty sure all of them use http

#

except undici

#

node has this weird mix of low level and high level modules built in

split hazel
#

yeah both use http

#

though axios is a bit more low level

#

would be cool if there was a native http module

#

native as in a c++ library

quartz kindle
#

pretty sure there are several

split hazel
#

does node have an opengl wrapper lol

quartz kindle
quartz kindle
#

mostly webgl

split hazel
#

does node have a library to write drivers in nodejs

quartz kindle
#

lmao

#

only if those drivers can run with node

azure current
#

hey can someone help me ? dm me please i need help

#

with coding a bot

#

for set it online

wheat mesa
#

You should just ask here

earnest phoenix
azure current
#

i was made discord bot

#

and i dont know how to set it online status

#

because

#

then

#

i watched a video tutorial

#

but

#

its older version

#

and now when i tries

wheat mesa
#

Do you get errors?

azure current
#

it givess me error

#

yes

wheat mesa
#

What’s the error?

azure current
#

its random

#

idk

#

how to

#

moment

wheat mesa
#

Huh?

#

Is it CLIENT_MISSING_INTENTS

azure current
#

i will send it to private message

wheat mesa
#

Just send it here

azure current
#

its this

#

one

wheat mesa
#

Ah

#

You need to update your nodejs

azure current
#

how

#

look at this too

wheat mesa
#

On replit, I’m not sure. Other people know how to do it, so I suggest looking up “How to update node in replit”

azure current
#

which one did u use ?

wheat mesa
#

I don’t use replit

azure current
#

okay but which one u use ?

wheat mesa
#

I don’t know what you mean by that

earnest phoenix
#

anyway, only i have been experiencing lately that it is not possible to put canvas on windows?
(npm)

azure current
#

u dont use replit site ?

wheat mesa
#

I don’t

azure current
#

do u have any files for online bot ?

earnest phoenix
wheat mesa
#

I program locally on my computer and then I push those files to a GitHub repository, then I clone that GitHub repository on my VPS

azure current
earnest phoenix
#

nix*

earnest phoenix
# azure current how

npm install n -g
For the latest stable version:
n stable
For the latest version:
n latest

azure current
#

whats nix ?

earnest phoenix
#

@azure current create a .replit file

#

include the .

azure current
#

can i share u screen ?

#

and gives me instructions ?

earnest phoenix
#

absolutely

azure current
#

on dm ?

wheat mesa
#

We need to have a guide to update node on replit pinned in this channel lmao

earnest phoenix
#

in here

azure current
#

bere ?

earnest phoenix
#

typo mb

#

you do

azure current
#

soo do i call u on private ?

earnest phoenix
#

not just the command line

earnest phoenix
azure current
#

ok

earnest phoenix
azure current
#

by python ?

earnest phoenix
earnest phoenix
#

just ".replit"

earnest phoenix
#

without any extension

errant perch
#

Why does this happen on my phone but not my pc

earnest phoenix
#

@azure current tell me when you're done

azure current
#

im making it

earnest phoenix
#

take your time

errant perch
#

It works on my pc but not my phone though?

azure current
#

this one ?

#

@earnest phoenix

earnest phoenix
earnest phoenix
azure current
#

and now how to connect them

#

@earnest phoenix

earnest phoenix
#

then put:

run="npm start"``` @azure current dont start it yet just put that only
azure current
#

ok

#

in .replit ?

#

or in index

earnest phoenix
#

in .replit

azure current
#

i think im done

earnest phoenix
#

@azure current execute this on your console:

npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH```
azure current
#

wheres the console