#development

1 messages · Page 1912 of 1

limber meadow
#

and not all packages are required to have a module.export

earnest phoenix
#

What do I do then?

limber meadow
earnest phoenix
#

I did, it doesn't explain it.

limber meadow
#

¯_(ツ)_/¯

earnest phoenix
#

"have you tried reading docs"

limber meadow
#

const suggestontoken = code(10);

bright talon
#

suggestions?

limber meadow
#

what is this supposed to do anyway

earnest phoenix
limber meadow
bright talon
earnest phoenix
#

Its supposed to make a code

limber meadow
earnest phoenix
#

Like a ebgeubgsygbsB code

bright talon
#

👍

woeful pike
earnest phoenix
woeful pike
#

tho tbh the search is kinda broken rn, we're fixing it tho feelssighman

limber meadow
#

i cant seem to find what you are talking about in the code package

earnest phoenix
#

mhm

#

I noticed too

#

try uuid or randomBytes from crypto

#

For djs?

#

uuid is just a package to generate random ids

#

I've never used these "codes" or uuids before

earnest phoenix
#

Ah

#

const { v4: uuidv4 } = require('uuid');
uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'

#

Thats it?

#

yes

#

Its that simple?

#

yes

split hazel
#

thats the point of npm packages

earnest phoenix
split hazel
#

true

earnest phoenix
#

I tried using that package @earnest phoenix - comes up with the same error.

#

Fixed it! Wow that does work!

#

Now I just needa find out how to make em smaller o-o

native walrus
#

you can use hashids

#

though you kind of need an incrementing number for that

#

otherwise you get collisions very quickly

bright talon
#

is there someone who knows sharding, and can help, please?

spark flint
#

Why does this spam on bot restart

bright talon
spark flint
#

but it just randomly spams on bot restart

earnest phoenix
spark flint
#

lmao

#

I checked the IDs and it seems to be spewing out IDs of servers its already left

#

One of which we share oddly

#

The iD's seem to be ones that spam !help etc in general

earnest phoenix
#

This server deleted by discord bc of bot farming

spark flint
#

Thats what I have

earnest phoenix
#

use guild.available

spark flint
#

I had a bot leave a server for all of my bots at the same time

#

wtf this feature hasn't worked for like 3 months and just suddenly works today

earnest phoenix
#

Imagine discord.js

spark flint
#

i use py

earnest phoenix
#

Idk then

#

But discordjs loves this

#

why is it not logging anything

var data = JSON.parse(fs.readFileSync("./shop/items.json", "utf-8"));
var dataColors = data["colors"];
Object.keys(dataColors).forEach((key) => {
    console.log("key: " + key + ", Val: " + dataColors[key]);
});
spark flint
#
        created = member.created_at
        now = datetime.now()
        delta = (now - created).days

        if delta < 10:
            embed = discord.Embed(title="⚠️Possibly Suspicious User joined!⚠️")
            embed.add_field(name="User:", value=member.mention)
            embed.add_field(name="Reason:", value="Joined less than 10 days ago")
            embed.add_field(name="Joined discord", value=f"{delta} days ago")
            embed.set_footer(text="Bot by big.bun#6969 and Nekros#0492")
            await channel.send(embed=embed)
            await log("sus", member.guild.id, member.id, reason, "Blacklister")
            await adminlog("user", member.guild.id, member.id, reason, "Blacklister")
            return```
small tangle
#

im quite new to sql, it this the best way to join 4 tables?

SELECT * 
FROM user u 
INNER JOIN alpaca a ON a.id = u.alpaca_id 
INNER JOIN cooldown c ON c.id = u.cooldown_id 
INNER JOIN inventory i ON i.id = u.inventory_id 
WHERE user_id = ?
boreal iron
#

Do you necessary need all columns?

#

WHERE user_id = ? will only work if user_id is an unique column, if not specify the table

small tangle
#

i mean the user table only stores the user discord id and the foreign key relations, but yes i need all the other columns from alpaca / cooldown / inv ..

#

its unique

boreal iron
#

You may wanna use LEFT JOIN here

boreal iron
#

If alpaca, cooldown or inventory doesn't match your ID, the statement will still return the whole user (left) table

small tangle
#

an user has always an entry in all other tables

split hazel
#

network?

#

ah yes

#

what a great selling point

#

you can download big things

native walrus
#

pretty sure the other kind of network is much more important for college

spark flint
#

my school wifi is like 750mbps

native walrus
#

you're probably more likely to meet people in the industry you can impress or get to know going to college than not

earnest phoenix
bright talon
#

It’s not the size of your network but how you use it. 😊

wheat mesa
stable eagle
#

My school doesn’t even have wifi yet e

jolly notch
#

my school internet is 1gbps

quartz kindle
#

750mbps is not even realistically attainable on a single connection

#

its great for handling tons of clients at once tho

split hazel
#

no you download big things

quartz kindle
#

he wants to download a car

proven lantern
#

i used all my schools bandwidth and got my laptop banned from the network

#

usenet has so much bandwidth

spark flint
#

the school laptop network with 250+ devices is 1gbps+

#

@jolly notch are you free to help with some code issues i have

jolly notch
spark flint
#

How can I get the "Ban speedrunning" bit (Aka the Reason) from this output?

spark flint
#

ah

#

i just did [1]

jolly notch
#

ah

#

wouldn't work

spark flint
#

it works

jolly notch
proven lantern
#

why would a db make you label the types?

#

intellij knows

woeful pike
#

I swear SQL error messages are the most unhelpful shit ever

jolly notch
#

problem solved

woeful pike
#

good idea

#

unfortunately I'm not using mysql or php

spark flint
#

hate to admit it

woeful pike
#

I shouldn't have to use an external tool for a database to tell me what the fuck is wrong with my query

jolly notch
#

oof

#

maybe write your queries better

#

what you using for sql?

modest maple
#

this tbh

woeful pike
#

I have datagrip I don't need shit like phpmyadmin

jolly notch
#

ah

modest maple
#

just write your queries better then mmLol

woeful pike
#

but I shouldn't need to open it either

jolly notch
#

true

woeful pike
#

just tell me like you did a fuckywucky on line 24

#

how hard can it be

jolly notch
#

oh xetera, do you pay for a custom theme plugin for jetbrains stuff

woeful pike
#

no I have my own theme

jolly notch
woeful pike
#

uhhh

#

let me find a code snippet that is not under NDA

jolly notch
#

mhm

woeful pike
jolly notch
woeful pike
#

it's a fork of a free material theme

#

not super heavily modified

jolly notch
#

ah

#

I pay for my material theme

#

Might consider using that then

woeful pike
#

I like paying for things I use, but paying for a theme just doesn't sit well with me. Only takes an afternoon to come up with your own stuff anyways

jolly notch
#

true

bright talon
#

It’s the error that’s slightly better than ‘syntax error near your mistake’

jolly notch
#

what does your vs code theme look like?

woeful pike
#

Error: you made a mistake

#

when you have to use binary search to find errors in your query

jolly notch
#

imagine having such bad queries

#

or using things other than mysql

earnest phoenix
#

What does that mean?

#

Mongo DB is wack breh

jolly notch
earnest phoenix
#

Its at 16

willow mirage
#

literally

#

node v12

wheat mesa
bright talon
#

And then comes the porting….😅

earnest phoenix
#

breh wot

#

Oh true

#

Hah, got it now

#

lmfao, tyty

willow mirage
earnest phoenix
#

Wellll I had it at 16, then I changed my package.json and I messed it up

#

Still says the same thing tho

modest maple
#

36 million documents to go

wheat mesa
#

lmao

modest maple
#

my poor disks

jolly notch
modest maple
#

16GB on this machine

#

should have used my work laptop for this wearyaf

earnest phoenix
#

Fixed that error and now:
const prefixModel = require("../database/guildData/welcome");

  const data = await prefixModel.findOne({
        GuildID: message.guild.id,
      });```
TypeError: prefixModel.findOne is not a function
jolly notch
modest maple
#

no this is a search engine

#

indexing some 50 million docs

#

which is fUN

jolly notch
#

ouch

#

use a server

modest maple
#

heres the thing, thats alot of extra effort for testing

#

Im also not sure if I have a server which can do much better outside of upping the swap limit

#

the bottlekneck is the NVME drives and swap limit being 4GB

earnest phoenix
#

any support on my question?

modest maple
#

use a function that exists mmLol

earnest phoenix
#

it does.

modest maple
#

clearly not

#

which means either a) you're miss reading / reading old docs

#

or b)
you're shadowing your varibles meaning stuff is getting overriden

#

if its not a then its b

jolly notch
#

or c) your npm version is really outdated

earnest phoenix
#

Im using djs. 12.5

jolly notch
#

use djs 13

modest maple
earnest phoenix
#

Then I have do to like .send[embed:embed]

#

Thats work if I've ever seen it lmao

modest maple
earnest phoenix
#

([])*

jolly notch
#

the real pros don't even need djs

modest maple
#

If im not mistaken v12 wont even work soon

earnest phoenix
#

I can use py lmao or ruby

#

but Djs just sucks dookey

jolly notch
jolly notch
wheat mesa
#

I would not wish that upon my worst enemy

jolly notch
mellow flint
#

how I remove my name from here? wordpress

jolly notch
feral nexus
#

name ect

mellow flint
feral nexus
#

look by settings users

earnest phoenix
#

With djs v13 this always happens to me:

mellow flint
#

in account settings?

earnest phoenix
feral nexus
#

in wp dashboard

#

settinfs

wheat mesa
earnest phoenix
#

I just did why

jolly notch
wheat mesa
#

Do node --v

earnest phoenix
jolly notch
#

Bruh what the fuck

wheat mesa
#

You need node v16 or higher

wheat mesa
modest maple
feral nexus
#

xd

earnest phoenix
feral nexus
#

lol

wheat mesa
#

whoops

#

node -v

mellow flint
earnest phoenix
wheat mesa
#

Yeah

jolly notch
#

Yeah it's node js 12

wheat mesa
#

You don't have latest node installed

feral nexus
earnest phoenix
#

npm install node?

mellow flint
wheat mesa
#

not sure how to upgrade nodejs on replit, I don't use replit

feral nexus
#

Replit sometimes bruh

mellow flint
#

@feral nexus nice

earnest phoenix
#

Whats the command you would use?

feral nexus
#

i dont use jt

feral nexus
jolly notch
#

just get a vps

#

ceo bad

feral nexus
#

yep

jolly notch
#

he didn't even read my reply to his reply on my post

spark flint
#

@earnest phoenix just get a cheap vps

feral nexus
#

vps and vm
these are the same?

jolly notch
spark flint
feral nexus
#

whats the differnce then

jolly notch
spark flint
#

looking for cheap vps

jolly notch
feral nexus
#

i have a vm

#

to host my bots and develop on

jolly notch
#

locally?

feral nexus
#

no

#

by azure

jolly notch
#

ah

feral nexus
#

no cheap xd

#

but i dont pay for it

#

so me happy

#

xd

#

My dad got it for free from his work

boreal iron
jolly notch
# spark flint the total vps ram

You should always go for 1 GB minimum, if you are developing bots that are in many guilds or require other things to run then 3 GB minimum

boreal iron
#

VPS doesn’t make much sense

jolly notch
#

why

spark flint
boreal iron
#

Oh freerealestate

woeful pike
#

what is a vps if not a cloud server

jolly notch
#

ah special english

boreal iron
#

At least most I know

jolly notch
#

wdym migrate to other servers

modest maple
#

👁️ interesting

jolly notch
#

like for downtime?

boreal iron
#

Wtf is not understandable by scaling a server up or down?

spark flint
#

£1.27 a month

jolly notch
spark flint
modest maple
#

A cloud server isn't a magic bullet mmLol

spark flint
#

brb ordering a £0.41 a month vps

jolly notch
modest maple
#

you're system has to already be highly scalable in order for it to actually be able to scale seamlessly, at which point you can do that with or without cloud

#

you can gradually increase server specs to a limit

#

but that doesnt save you from the catch of actually having to worry about state management, redundancy and high availability

jolly notch
modest maple
#

"Unkown Ghz" is of a slight concern

jolly notch
native walrus
bright talon
#

Looking for someone familiar with sharding….anyone ?

modest maple
jolly notch
boreal iron
feral nexus
#

when is v12 going to be outdated

modest maple
#

"Oh hey man we need to scale this" -> "oh just put it in kubernetes magic"

jolly notch
native walrus
#

I don't think anything is easier on kubernetes

feral nexus
jolly notch
jolly notch
feral nexus
#

like now it is unsupporter

feral nexus
modest maple
bright talon
#

V12 is supported. There’s a migration guide telling you how to move to v13 😅

modest maple
#

not that its a big issue without because replication™️

native walrus
#

on digitalocean upgrading your droplet/vps is as easy as pressing a button

boreal iron
modest maple
#

mmm not every one of our VPS providers have offered it

boreal iron
#

Where does the second but come from lol

feral nexus
modest maple
#

also rip disks again

feral nexus
#

cus i got already v16 from node

spark flint
#

should i move from a vps to a cloud server for my bot which also runs an API

jolly notch
native walrus
#

the difference seems made up like difference between scripting and programming languages. Just seems like different words for the same thing

earnest phoenix
#

So I can't update a node version on replit?

spark flint
modest maple
feral nexus
#

but when is v12 discord.js going to be outdated?

#

or never?

native walrus
#

I've never head someone use vps and cloud server in a non-interchangable way

boreal iron
native walrus
#

unless you're talking about bare metal where you rent the physical machine directly

boreal iron
#

But you can name me some?!

#

Also a weird term, bare metal

jolly notch
#
boreal iron
#

That’s called dedicated server

modest maple
#

both contabo and netcup have upgraded our VPS' to bigger systems several times without any pain

#

bare metal is regularly referred to

native walrus
#

digitalocean, scaleway, vultr, all seem to refer to vps and cloud whatever as the same thing

#

never heard anyone make up a distinction between them

modest maple
#

usually because providers like to get funky with doing "virtual dedicated servers" and confuse people

native walrus
#

throw in those cool buzzwords

boreal iron
#

lol contabo is cheap but actually doesn’t even offer you the service to install your own OS

#

Doesn’t count as serious provider for me

native walrus
#

usually you can't downgrade infrastructure but you can easily upgrade

jolly notch
boreal iron
bright talon
#

I used vultr first. Cheap, but had issues with connectivity and uptime. Just went to gcp and it’s been great.

boreal iron
modest maple
#

we can just ask them to migrate us to a new vps with bigger specs

#

you very rarely need to dynamically scale up and down instantly like with ec2 systems

#

which is how people get caught in traps where their databases suddenly cost them tens of thousands in a few days because stuff got stressed and spawned nodes like nothing

boreal iron
modest maple
#

shrug and most people dont care about that as long as it gets done

boreal iron
#

I hate auto correct

#

But that’s the difference I’m speaking about

modest maple
#

you dont need that though? 9 times out of 10

#

man my pc is lagging af

native walrus
#

just stick your app in fargate brolo no scaling problems

boreal iron
#

Switching to a different system or assigning different hardware specs for your VM on the same node, automated is a difference

native walrus
#

instant magic scaling, absolutely no problems at all

boreal iron
#

What so ever… I explained at least what I meant

modest maple
#

instant scaling at $.50 an hour fingerguns

#

ahhhh fuck this is so slow

boreal iron
#

Oh also cloud servers being calculated per hour if im not wrong

jolly notch
#

are you guys still on this discussion about hosting

bright talon
#

Sharding discussion? 😊

boreal iron
#

Somehow yes and no

earnest phoenix
#

I've been watching from the sidelines

#

and not paying attention to any of it at the same time

modest maple
#

see this is the issue with cloud, expensive af

jolly notch
modest maple
#

3 db nodes and suddenly you're fecked

boreal iron
jolly notch
modest maple
#

"scale on demand" @ $0.50 an hour per node + network usage + additional storage

boreal iron
modest maple
#

yes

#

thats what we do

#

for this very reason

#

but i was just demonstrating the issue

boreal iron
#

Yeah but doesn’t mean all providers are that expensive

modest maple
#

even more scary is i clicked "add node" and it instantly filled in all my billing info and set it to be one click away from charging

#

mmmm aws and GCP are around that pricing

#

especially for DB work

boreal iron
#

OVH isn’t, Hetzner isn’t, Ionos isn’t and a few US ones aren’t, too

spark flint
#

so yeah

modest maple
#

at $0.09 per GB network egress from AWS

jolly notch
spark flint
#

never use ionos

boreal iron
#

Idc just an example you know

#

Collocation…. Why

modest maple
#

15 nodes verycool

jolly notch
#

and it can be cheaper for a longer period of time

boreal iron
#

Hmm yeah ok good argument

jolly notch
#

I have yet to see a production ready rgb based rack server

boreal iron
#

You have to choose a cheap one then but suffer the consequences of a bad network or redundancy

jolly notch
#

true

boreal iron
#

Alright need to do some work unfortunately

jolly notch
#

Not sure how many different types of backups is good but I think 5 is good

feral nexus
#

just use a git repo to throw your shit in 😂

jolly notch
modest maple
#

because this is a production world mmLol

jolly notch
#

losing data = higher costs

modest maple
#

and realistically

#

$40k a month is nothing

jolly notch
#

^

#

especially since it's a company paying for it in the end

feral nexus
#

true

#

facts

feral nexus
jolly notch
#

Some of my client's client's discord servers make 30k a month

jolly notch
modest maple
#

pay ~$480k a year for globally distributed managed system vs paying many senior devs to manage nodes all over the world and maintain them

feral nexus
#

whahha

#

srs

#

frock u

modest maple
feral nexus
#

i just have a dev bot

#

to test everything is working. just development

#

so u have development and the master divorced

modest maple
#

I feel like you missed the point slightly

feral nexus
#

why

jolly notch
modest maple
modest maple
#

ty

#

I was referring to the fact that this is for production systems where millions of changes are made daily and backups are an absolute must

#

being able to select snapshots of db state from a specific day is an incredibly useful tool

bright talon
jolly notch
feral nexus
#

ok

modest maple
#

i mean what

feral nexus
#

bruh

bright talon
modest maple
#

too nsfw for here

#

FUCK we're at 11 million documents and the loader program has frozen

#

notlikeduck please no

jolly notch
#

ouch

#

i never had the reason to ever make a search engine

#

I would probably have to on my knowledgebase product release in 2024

modest maple
#

pensivebread we're okay the system was just computing changes

jolly notch
#

oh good good

modest maple
#

I really need to remove this memmap setup though

jolly notch
#

how's the cpu doing so far

modest maple
#

for big indexes it just sucksss

#

cpu is fine

#

this is not a CPU intensive operation compared to the IO time

#

like indexing large amounts of docs are by far IO intensive more than they're CPU bound

jolly notch
#

oh

modest maple
#

there's only so fast the OS can page out data to and from memory to disk even with NVMes

#

which I partly blame on memmap

jolly notch
#

ouch

modest maple
#

because it does alot of bottling on large writes

jolly notch
#

ah

nimble kiln
#

speeeeeed

modest maple
#

oh i do

jolly notch
modest maple
#

however this comes around to the whole issue with memmap and buffer caches only going so fast to a point

#

I think doing word frequency analysis on things like author names was a bad idea

#

many many unique words making for a very big corpus

wheat valve
#

My bot isn't pinging here or roles, the bot has the correct perms in the server, is there something im missing? (Discord.js v13)

bright talon
wheat valve
#

Yeah it has server and channel perms, still doesn’t ping someone though

wheat valve
#

For both roles and here it doesn’t give a ping, but when hosted on my pc it does. Could it be something to fix in the portal?

boreal iron
#

Did you globally disable mentions in your client options?

wheat valve
#

I don’t believe so, Ill check in a second when on pc

#

No i didnt

bright talon
wheat valve
#

It doesn't ping on any servers

#

Yeah I dont know, i cant figure out where i could've disabled them if I did at all

bright talon
#

Intents or no?

wheat valve
#

It has server members and presence intents.

boreal iron
#

Try to use the message options, I think it’s called allowedMentions

wheat valve
#

Yeah that’s what I’m using

wheat valve
#

I’m doing
allowedMentions: {
parse: [“everyone”, “roles”]
}

Not sure if that’s wrong or not

boreal iron
#

Looks about right

wheat valve
#

Maybe it’s where I’m doing it? I’ll re check when I’m back at my computer

#

Well no it’s working on the computer host

boreal iron
#

Do you know if somebody else got pinged?
Did you may disable getting pinged b here or everyone in your server?

wheat valve
#

Just asked someone else and they said it didn't ping them. The picture is the whole reply that should be sent, anything wrong there?

jolly notch
boreal iron
#

Hmm dunno then tbh

#

Don’t need mentions at all freerealestate

pale vessel
wheat valve
pale vessel
#

So it has to do with permissions

#

Check global AND channels permission overwrites

#

You must missed something

wheat valve
#

The bot has admin and access to ping in channels and in the role

boreal iron
#

Did you try to kick the bot off your test guild and reinvite it with the required permissions?

wheat valve
#

No I’ll try it soon

earnest phoenix
#

Back to my question earlier: How can I update my node.js on replit? Just incase someone new might know how

wheat valve
boreal iron
#

Search this channel for nvm

#

Doesn’t work well for me on mobile

boreal iron
spark flint
#

^^

loud tree
#

You didn't understand the core problem

#

Random module has no use here

wheat valve
#

Do discord bots need some sort of extra thing before being allowed to do certain things in a server that requires 2FA?

nimble kiln
wheat valve
#

I actually read the same thing right after sending that message, but i already have 2FA but my bot still seems to have issues

nimble kiln
wheat valve
deft citrus
#
Toggle = True
@client.command()
async def off(ctx):
    global Toggle
    # Toggles the variable.
    Toggle = False

Imode = False
@client.command()
async def imode(ctx):
    global  Imode
    global Toggle

    Imode = True
    Toggle = False
deft citrus
#
Toggle = True
@client.command()
async def off(ctx):
  global Toggle

  Toggle = False


@client.event
async def on_messages(message):
  if Toggle:
    if message.content == "pong":
        await message.channel.send('ping')
  else:
        await message.channel.send("Function disabled")
#

is this correct

earnest phoenix
#

Anyone here can help me with my welcome command (aoi.js)

earnest phoenix
#

oh my bad

deft citrus
#
Toggle = True
@client.command()
async def off(ctx):
  global Toggle

  Toggle = False


@client.event
async def on_messages(message):
  if Toggle == True:
    if message.content == "pong":
        await message.channel.send('ping')
  else:
        await message.channel.send("Function disabled")
#

@earnest phoenix

#

see

#

still not working

#

no errors

#

but ping is not coming

slender thistle
#

on_message, not on_messages

deft citrus
#

ohhhhhhhhhhhhhhh

#

sry

slender thistle
#

Also. You are not processing commands in your on_message. The off command will not work

slender thistle
#

Show your code now

deft citrus
#
Toggle = True
@client.command()
async def off(ctx):
  global Toggle

  Toggle = False


@client.event
async def on_messages(message):
  if Toggle == True:
    if message.content == "pong":
        await message.channel.send('ping')
  else:
        await message.channel.send("Function disabled")
deft citrus
earnest phoenix
deft citrus
#

if i type

#

on_messages

slender thistle
#

on_message

#

Rename it

deft citrus
#

done

#
Toggle = True
@client.command()
async def off(ctx):
  global Toggle

  Toggle = False


@client.event
async def on_message(message):
  global Toggle
  if Toggle == True:
    if message.content == "pong":
        await message.channel.send('ping')
  else:
        await message.channel.send("Function disabled")
#

@earnest phoenix

#

correct

earnest phoenix
deft citrus
#

@slender thistle still not coming

earnest phoenix
deft citrus
#

@earnest phoenix

earnest phoenix
#

?

deft citrus
#
@client.command()
async def on(ctx):
  global Toggle

  Toggle = True

@client.event
async def on_message(message):
  global Toggle
  if Toggle:
    if message.content == "pong":
        await message.channel.send('ping')
  else:
        await message.channel.send("Function disabled")
#

@earnest phoenix

#

correct

earnest phoenix
#

try it

deft citrus
slender thistle
#

Your commands won't work unless you process commands. See more in discord.py commands extension documentation

feral nexus
#

Hi, anyone knows when exactly discord.js V12 is going to be outdated?

earnest phoenix
#

no idea

#

just update your djs to v13

earnest phoenix
slender thistle
#

Huh

earnest phoenix
#

trust me ive used it

#

I know how it works

feral nexus
deft citrus
earnest phoenix
slender thistle
#

I used it too and that would be the exact opposite of the design d.py followed before

#

What says that it works without processing commands manually? Is there anything within the docs or the source code that can confirm that?

#

If yes, could you show me?

earnest phoenix
#

Here are my files. When I try to use select menu I keep getting an error, which I've linked to aswell
can someone please help me figure out the error and how to fix it? I refereed to the docs and did exactly as they had mentioned but continued to get the error

deploy-commands.js arrowRight https://sourceb.in/ZqtlCeIvxy
select.js arrowRight https://sourceb.in/baWnKmkSwo
ERROR arrowRight https://sourceb.in/5oP2Dyw5Za

#

how to check if channel is in a category by ID

earnest phoenix
#

djs

#

im gonna need to look up for that

#

hold on

earnest phoenix
earnest phoenix
earnest phoenix
#

channel is the channel obj

#

keep that in mind before doing that

earnest phoenix
#

you should be good to go

earnest phoenix
#

So shiv got a point there, you should process the commands

earnest phoenix
earnest phoenix
earnest phoenix
#

event replaces the default on_message method, listener appends an event handler without replacing the default one

earnest phoenix
feral nexus
deft citrus
#
@client.command()
async def off(ctx):
  global Toggle

  Toggle = False

@client.command()
async def on(ctx):
  global Toggle

  Toggle = True

@client.event
async def on_message(message):
  global Toggle
  if Toggle:
    if message.content == "pong":
        await message.channel.send('ping')
  else:
        await message.channel.send("Function disabled")
#

why ping is not coming

earnest phoenix
feral nexus
#

aa xd

#

mybad

earnest phoenix
earnest phoenix
earnest phoenix
#

very well if you'd still like to procced with the on_message event, you're slightly gonna need to change your code

earnest phoenix
#
toggle=False

@client.command()
async def off(ctx):
    toggle=False

@client.command()
async def on(ctx):
    toggle=True

@client.event
async def on_message(message):
    await client.process_commands(message)
    if toggle:
        if message.content == "pong":
            await message.channel.send('ping')
    else:
        await message.channel.send("Function disabled")
#

here try this code

earnest phoenix
earnest phoenix
#

errors?

deft citrus
#
toggle=False
@client.command()
async def off(ctx):
    toggle=False

@client.command()
async def on(ctx):
  toggle=True

@client.event
async def on_message(message):
  if toggle:
    if message.content == "pong":
        await message.channel.send('ping')
  else:
        await message.channel.send("Function disabled")
#

no errors

earnest phoenix
#

do you have your client defined?

earnest phoenix
#

try it now

deft citrus
#
client = commands.Bot(command_prefix=',')
client._skip_check = lambda x, y: False
earnest phoenix
#

You're just modifying the local variable, it won't change the toggle state whatsoever

earnest phoenix
#

where do u use it

#

Looks irrelevant

deft citrus
earnest phoenix
#

well why do u have it then

deft citrus
#

i think it was a another bot called example my friend give it that time it was having that ig

deft citrus
#

yes

earnest phoenix
#

hm

#

show me ur code again rq

deft citrus
#

no

#

wait

earnest phoenix
#

What's not working doe, is it sending Function disabled?

#

Gotta be more specific

#

*^

deft citrus
earnest phoenix
deft citrus
#
toggle=False

@client.command()
async def off(ctx):
    toggle=False

@client.command()
async def on(ctx):
    toggle=True

@client.event
async def on_message(message):
    await client.process_commands(message)
    if toggle:
        if message.content == "pong":
            await message.channel.send('ping')
    else:
        await message.channel.send("Function disabled")
earnest phoenix
#

does it even say anything

deft citrus
#

nothing

earnest phoenix
#

show me ur whole script

#

without the token

deft citrus
#

ooooooooooooooooooooo

#

ohk

earnest phoenix
deft citrus
#

@earnest phoenix bro under toggle

#

it

#

showing

#

gree

#

underline

#

[pyflakes] local variable 'toggle' is assigned to but never used
bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

#

@earnest phoenix

#

?

earnest phoenix
#

yeah hi

earnest phoenix
#

but I wonder why it shows that

earnest phoenix
#

I thought I didn't repeat it enough

#

Just mark toggle as global and the lint warning will go away

deft citrus
#
toggle=False

@client.command()
async def off(ctx):
  global toggle

  toggle=False

@client.command()
async def on(ctx):
  global toggle
  toggle=True

@client.event
async def on_message(message):
    await client.process_commands(message)
    global toggle
    if toggle:
        if message.content == "pong":
            await message.channel.send('ping')
    else:
        await message.channel.send("Function disabled")
earnest phoenix
#

The last global is kinda redundant, because you're not modifying toggle, but not a big of a deal

#

So what you expected and what you got?

deft citrus
#

nothing

#

got

earnest phoenix
#

no console error?

#

Do you by any chance have an error handler and not re-raising unhandled errors?

#

he must have pass

#

God knows

slender thistle
#

Even God sometimes doesn't, let's be fair

earnest phoenix
lament rock
#

God can't save you from your shit code

earnest phoenix
#

why isnt it waiting 4 seconds, deletes it after 1 second

lament rock
#

Message.delete() no longer accepts any parameters

earnest phoenix
#

interval it is

lament rock
#

You have to create a Timeout yourself

earnest phoenix
#

works now cool

lament rock
earnest phoenix
high crown
#
client.user.setActivity({ buttons : [{label : "Test", url : "https://dsc.gg/haywire"}]})
#

is it correct?

earnest phoenix
#

test it troll

high crown
#

it is not showing errors

#

but it isn't working too

lament rock
#

Bots cannot set rich presences

high crown
lament rock
#

buttons are only available through RPC calls

earnest phoenix
#

^

lament rock
#

No. They cannot. I can guarantee you

high crown
earnest phoenix
#

you cant set it unless its user

lament rock
#

Ask anyone else to give you a working example and they cannot because you can't

high crown
earnest phoenix
high crown
#

okay

#

so...

#
client.user.setPresence({ buttons : [{label : "Test", url : "https://dsc.gg/haywire"}]})
#

why is it not working...and not showing any errors too

earnest phoenix
#

because it cant

high crown
#

how do I get to know what went wrong

lament rock
#

Are you trying to do this on a bot account?

high crown
lament rock
#

What?

earnest phoenix
#

selfbot i guess

high crown
earnest phoenix
lament rock
#

Rich Presence can only be set by an RPC library and you should read the docs for whichever lib you decide to use. Discord.js offers one, but it's not through the main Discord.js library

high crown
#

and idk what's wrong

#

coz it is not showing any err

earnest phoenix
#

why not use normal rpc

#

not djs, ull just get banned

lament rock
#

Regular presences work just fine through the gateway, but RICH presences can only be set through an RPC lib.

high crown
lament rock
#

Buttons on your presence are through rich presences

high crown
#

waao

earnest phoenix
high crown
#

ik only one

high crown
lament rock
#

I don't mess with RPC. Like I mentioned, Discord.js offers an rpc lib, but it's not through the main Discord.js library

earnest phoenix
high crown
lament rock
#

Well, then the best I can tell you is you're shit out of luck

high crown
#

thanks for ur time

lament rock
high crown
#

waao

slender thistle
#

Is there a RPC library for Rust?

high crown
slender thistle
#

P.S you can just carry on if you don't know lol, save yourself the effort of pinging me and telling me that you don't know

earnest phoenix
slender thistle
#

Here's hoping it will work lol

earnest phoenix
#

can anyone help me make a name and pfp for my bot

cinder patio
#

Hey @quartz kindle I'm doing benchmarks for one of my libs comparing it to others and using the benchmark lib vs doing my own with for loops:

for (let i=0; i < 1000; i++) {
 ...
}

shows very different results. Which would you say is more accurate and how do you benchmark your libs

lament rock
#

I'd probably try to write "real world tests" instead of synthetic tests unless you're just trying to get maximum throughput

#

other libraries might have some overhead

cinder patio
#

I don't think that's the case with the libs I'm testing though, they're template engine libs, I think synthetic tests for those are just as good

lament rock
#

Then I suppose that's fine. You'd perhaps have to look at how the benchmarking libs operate since it really depends what you're trying to do. for let i = n; i< x; i++ and accessing the index of an Object or something will be faster than say for let in or for let of since internally, it would have to get all of the keys for the Object, allocating those keys to some sort of Array or FastMap or something related and then access the Object index

#

Micro optimizations can be made to reduce overhead and maximize synthetic test results

cinder patio
#

I see, thanks. I'm really curious how benchmark gets the ops/sec values, as you can see:

Compilation: Finch x 153,305 ops/sec ±2.67% (82 runs sampled)
Compilation: Handlebars x 105,612 ops/sec ±3.30% (86 runs sampled)
Compilation: Ejs x 274,618 ops/sec ±2.05% (86 runs sampled)

Makes it look like Ejs is a lot faster than Finch, but looking at the milliseconds from the benchmarking without benchmark shows otherwise:

Handlebars took: 189.3686999976635MS
Finch took: 62.197300016880035MS
Ejs took: 50.65160000324249MS

Makes it look like operations per second isn't an important metric

lament rock
#

Probably just some simple Math from start time to end time and how many operations were completed in that time frame

#

Unless it wants to get fine measurements and sets up metrics per duration the test is running then get an avg

#

seems like benchmark took samples which means running the test multiple times to eliminate discrepancies as much as possible such as factors out of your control like cpu load or such and averages from those samples

#

multithreaded work loads may suffer from that the most when performing synthetic tests

cinder patio
#

ejs is cheating

limber meadow
#

aren't you supposed to make a faulty calculator lol?

earnest phoenix
#

intents on everything

feral aspen
#

Someone sent me a vbs code with this.

Dim WShell
Set WShell = CreateObject("WScript.Shell")
WShell.Run "Notepad.exe", 0
Set WShell = Nothing
do
CreateObject("WScript.Shell").Run("https://www.youtube.com/watch?v=fn1BKvIFcbE")
CreateObject("WScript.Shell").Run("https://www.youtube.com/watch?v=cK7I0Pfm6x8")
CreateObject("WScript.Shell").Run("https://www.youtube.com/watch?v=fn1BKvIFcbE")
CreateObject("WScript.Shell").Run("https://www.youtube.com/watch?v=cK7I0Pfm6x8")
CreateObject("WScript.Shell").Run("https://www.youtube.com/watch?v=fn1BKvIFcbE")
CreateObject("WScript.Shell").Run("https://www.youtube.com/watch?v=cK7I0Pfm6x8")
CreateObject("WScript.Shell").Run"notepad"
CreateObject("WScript.Shell").Run"chrome"
CreateObject("WScript.Shell").Run"narrator.exe"
CreateObject("WScript.Shell").Run"magnify.exe"
CreateObject("WScript.Shell").Run"bsod.hta"
CreateObject("WScript.Shell").Run"naber.vbs"
loop
#

What the f.ck does it do since he's mad af.

earnest phoenix
#

anyone can help me in module error ?

#

i downloaded this module by pip install youtube_dl than also i m getting error

tired panther
earnest phoenix
#

anyone help me

feral aspen
#

He wants the token of my bot or else he's loggin in using my token even though I have no relation with this guy or clicked a scam link.

pale vessel
#

You're not supposed to import it

tired panther
feral aspen
earnest phoenix
earnest phoenix
tired panther
# feral aspen Oh, I see.

Opening the narrator,magnifer and chrome and the yt videoes in loop.
Probably a Script to troll on someone

earnest phoenix
#
function itp(data_, arr) {
    Object.keys(data_).forEach((key) => {
        arr[key] = data_[key];
    });
}
#

why is it not setting it

#

nevermind it works perfectly fine

#

i just didnt pass arr

earnest phoenix
bright talon
#

Anyone here know about bot sharding?

quartz kindle
#

lots of people

earnest phoenix
#

Only you

#

We just share your knowledge

boreal iron
quartz kindle
#

Lol

royal cove
#

Hi

#

I try to detect vote

#

I use this code

#
from discord.commands import slash_command, Option, SlashCommandGroup
from googletrans import Translator
from discord.ext import commands
import discord
import topgg


class TOPGG(commands.Cog):
    def __init__(self, bot):
        self.bot = bot
        bot.topgg_webhook = topgg.WebhookManager(bot).dbl_webhook("/dblwebhook", "password")
        bot.topgg_webhook.run(5000)

    @commands.Cog.listener()
    async def on_dbl_vote(data):
        """An event that is called whenever someone votes for the bot on Top.gg."""
        if data["type"] == "test":
            # this is roughly equivalent to
            # `return await on_dbl_test(data)` in this case
            print("ok")

        print(f"Received a vote:\n{data}")

    @commands.Cog.listener()
    async def on_dbl_test(data):
        """An event that is called whenever someone tests the webhook system for your bot on Top.gg."""
        print(f"Received a test vote:\n{data}")


def setup(bot): 
    bot.add_cog(TOPGG(bot))
    ```
#

but

#

in weebhooks ul

#

What I put ?

deft citrus
#
toggle=False

@client.command()
async def off(ctx):
  global toggle

  toggle=False

@client.command()
async def on(ctx):
  global toggle
  toggle=True

@client.event
async def on_message(message):
    await client.process_commands(message)
    global toggle
    if toggle:
        if message.content == "pong":
            await message.channel.send('ping')
    else:
        await message.channel.send("Function disabled")
#

anyone

#

could help

#

still id understand

pale vessel
#

Neither do I

bright talon
#

Looking for help with this 👆🏻

quartz kindle
#

guilds.fetch can be done from any shard, so you dont need broadcastEval at all

#

broadcastEval is used to run code in other shards and access data from other shards, typically you use it to access cached objects

#

fetch functions are not shard bound because they send a request to the discord api

#

if you want to get data from a cached guild that is in another shard, you do it like this

bright talon
#

So I thought that my guild desired might not be in my shard thus it required a cross shard query. At least that’s how I understood the concept

quartz kindle
#
broadcastEval((client, id) => {
  if(client.guilds.cache.has(id)) {
    const guild = client.guilds.cache.get(id);
    return { name: guild.name, memberCount: guild.memberCount }
  }
}, { context: guildID })
#

because the function will be evaled in all shards, you need to check if the guild exists in the current shard first

#

this will return an array of undefineds along with one valid response

#

so you can do filter(Boolean) on the result, if you dont need to know which shard id it was from

bright talon
#

So ultimately what i was trying to do was to get the server object, so then I could get the users because I need the nicknames. In your example I still get the array results, with the objects stripped.

#

I understand the Boolean check. And I have a server result now (guild)

#

But for step two I’m at a loss as to how to access the users when the server isn’t an object.

quartz kindle
#

as you can see here:

#

you cannot simply return the entire guild object

bright talon
#

Do I have to construct one?

quartz kindle
#

data has to be serialized in order to be transmitted

#

so you need to simplify the data and/or construct a simpler object

bright talon
#

In that case, guild is an object and not an array of json’ed data?

quartz kindle
#

you have to construct an object containing only the exact data you need and dump all the rest

bright talon
#

I understand that for the return.

#

In between your const guild and return lines…I want to do a members.fetch call. Will this work?

quartz kindle
#

yes it will

bright talon
#

Hmm. Ok I tried this and it seemed to give me a non-guild object. I’ll try some more. Thanks so much!

quartz kindle
#

fetch the members then construct a simple object or array of members

bright talon
#

Right. My ending result is super simple. Just need to get there. 😅

quartz kindle
#

ie: fetchedMembers.map(member => ({ name: member.displayName }))

bright talon
#

One other question…I was trying to setup a test environment and put one server in a shard to verify the IPC. Is there a way to force this?

#

I really don’t want to test in prod… 😅

nova basin
#

Hello how remove the subdomain www please ?

bright talon
bright talon
quartz kindle
#

but its not supported by the discord.js sharding manager

#

if you have your own ipc solution, you can do it

bright talon
#

hmm...ok, so not from the discord.js env....I'd have to build something else to replace it

quartz kindle
#

actually it might be

bright talon
#

seems odd they wouldn't have this capability....I really don't want to setup a thousand servers just for a testing env.

quartz kindle
#

let me check

bright talon
#

thx much

#

i didn't see anything in the docs that allowed affinity, or max # per shard, etc.

amber lantern
#

Hey guys can i ask something?

quartz kindle
#

it relies on tricking discord so most people dont even know its possible

tired panther
amber lantern
tired panther
amber lantern
#

yes my bot

#

I don't even know my prefix

tired panther
#

You can add a message, where the prefix is mentioned, when you mention the bot.

amber lantern
bright talon
#

what language?

bright talon
#

😅

amber lantern
#

huh what do you guys mean?

tired panther
#

When the message does not contains your prefix then return...

tired panther
quartz kindle
amber lantern
#

i still haven't start Coding 😥

#

i need to learn where i can do coding

bright talon
quartz kindle
#

its the max 32 bit signed integer, from what i rememebr, any number bigger than that will cause an error in the discord api

#

its not collision-proof, in rare cases you will get an extra random guild in some shard

amber lantern
#

where can i start coding my prefix for my bot?

quartz kindle
#

but thats the closest you can get to a dedicated shard for a single guild

bright talon
#

ok thanks!

tired panther
bright talon
#

🙈

quartz kindle
#

you will just hit the 2000 daily login limit after 3 hours

#

xD

tired panther
#

Wasn't the threshold 1000?

quartz kindle
#

oh yeah, 2000 is for big bots

tired panther
#

BBS has more than 1000 iirc

#

@bright talon btw, why do you need one guild in one shard?

quartz kindle
#

for testing, i do it too

tired panther
#

You test on your prod bot?

bright talon
quartz kindle
#

yeah, i just set it to only have my guild on the shard

#

my prod code has an env variable that if set only connects 1 shard with only my guild on it

amber lantern
#

How to make own prefix on my bot?

tired panther
tired panther
bright talon
quartz kindle
#

you still wanna do them anyway?

tired panther
amber lantern
#

i don't have any prefix yet on my bot

earnest phoenix
#

So how your bot work?

amber lantern
#

Coding i think?

quartz kindle
#

wat

earnest phoenix
#

😀

quartz kindle
#

how about you show your code?

bright talon
amber lantern
#

oh okay sure

bright talon
#

it's not a good answer, but if you haven't started coding yet....then that's where I'd start.

amber lantern
#

yes you are right, i'm starting coding

tired panther
#

W3schools is a good website for learning coding

amber lantern
#

Oh thank you so much

earnest phoenix
amber lantern
#

sure, thank you guys

earnest phoenix
#

🤍

amber lantern
#

Hey guys, would you mind if i friend request? @earnest phoenix @tired panther

#

Sorry for pinggtopggSob

earnest phoenix
#

Np

tired panther
amber lantern
#

Ohh okay

amber lantern
#

Thank you >.<

earnest phoenix
tired panther
#

Lol

tired panther
earnest phoenix
#

I have 25 friends I have never seen in real life

f r i e n d

tired panther
#

Noice

slow terrace
#

Can i host my bot on rdp ?

green kestrel
#

can someone please do me a favour

pale vessel
green kestrel
#

perfect, thanks

whole estuary
#

Site undergoing migration

#

Pls wait a few minutes

#

Yes

green kestrel
#

when i tried to shut down that site 1.5 months ago, the browser ignored everything i did, i think it was a HSTS issue

#

this means i can now actually put my 301 redirects on it 😄

whole estuary
#

Wt who changed my name?

green kestrel
#

a mod, probably

whole estuary
#

Why ?

green kestrel
#

because it starts with a unicode or other character designed to put it at the top of the nick list

#

that isnt allowed here

whole estuary
#

Oh

#

Yeah ty

hoary compass
#

how do I create an Embed with buttons that Change to a Different embed when clicked?

spark flint
#

how do i make it so you can select a, and then select b after on the same message?

#

and the package for components is discord-components

grizzled zephyr
#

I need help

small tangle
#

just ask ^^

quartz kindle
quartz kindle
slow terrace
#

Any help?

quartz kindle
#

what command did you run?

slow terrace
#

npm install

lament rock
#

make sure your node gyp is up to date since it seems like that's what failed

quartz kindle
#

just npm install?

slow terrace
quartz kindle
#

then show your package.json

slow terrace
lament rock
#

listen to tim first and then me :)

slow terrace
quartz kindle
#

like what

slow terrace
#

I can't remember it's from stack overflow XD

#

@quartz kindle

{
  "name": "wolfy-bot",
  "version": "1.0.0",
  "main": "index.js",
  "engines": { "node": "16.x" },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "WOLF#1045",
  "license": "ISC",
  "description": "",
  "dependencies": {
    "@discordjs/builders": "^0.6.0",
    "@discordjs/opus": "^0.4.0",
    "@discordjs/rest": "^0.1.0-canary.0",
    "@discordjs/voice": "^0.6.0",
    "@top-gg/sdk": "^3.1.2",
    "alexa-bot-api": "^0.2.1",
    "alexa-bot-api-v3": "^3.0.7",
    "ascii-table": "0.0.9",
    "axios": "^0.21.1",
    "canvacord": "^5.2.3",
    "canvas": "^2.8.0",
    "chatcord": "0.0.5",
    "common-tags": "^1.8.0",
    "covidapi": "^0.5.0",
    "decode": "^0.3.0",
    "discord-api-types": "^0.22.0",
    "discord-canvas": "^1.4.1",
    "discord-interface": "^2.0.6",
    "discord-xp": "^1.1.16",
    "discord.js": "^13.1.0",
    "discord.js-commando": "^0.12.2",
    "discord.js-slash-command": "^1.2.1",
    "djs-buttons-pagination": "^1.6.2",
    "djs-games": "^1.4.6",
    "dsc-slash": "^2.0.2",
    "event-target-shim": "^6.0.2",
    "express": "^4.17.1",
    "ffmpeg-static": "^4.2.7",
    "fs-extra": "^10.0.0",
    "gcommands": "^5.2.5",
    "glob": "^7.1.7",
    "got": "^11.8.1",
    "html2markdown": "^1.1.0",
    "humanize-duration": "^3.27.0",
    "jsdom": "^16.4.0",
    "lodash": "^4.17.21",
    "lyrics-finder": "^21.7.0",
    "mal-scraper": "^2.11.3",
    "mathjs": "^9.2.0",
    "mcapi": "^1.0.1",
    "moment": "^2.29.1",
    "mongoose": "^5.13.7",
    "ms": "^2.1.3",
    "node": "^16.6.1",
    "node-superfetch": "^0.2.3",
    "nuggies": "^1.0.9",
    "parse-ms": "^2.1.0",
    "simple-fortnite-api": "^0.1.9",
    "snekfetch": "^4.0.4",
    "sourcebin": "^4.2.5",
    "topgg-autoposter": "^2.0.0",
    "twitter-api.js": "0.0.12",
    "txtgen": "^2.2.8",
    "util": "^0.12.4",
    "utils-discord": "^1.2.0",
    "uuid": "^8.3.2",
    "weather-js": "^2.0.0",
    "ytdl-core": "^4.8.3"
  }
}

quartz kindle
#

uninstall all of that

#

and install only what you actually use

slow terrace
#

ok

forest drift
#
if(arrays.message.trigger[i].includes(";")){

Cannot read property 'includes' of undefined

I can't work out the issue with this line...

quartz kindle
#

trigger[i] doesnt exist

forest drift
#

the thing is the code works, it does the stuff within the if function, but after doing it it sends that message

slow terrace
quartz kindle
#

still, trigger[i] doesnt exist

#

errors are never wrong

forest drift
#

that confuses me even more

#

cause console logging that trigger[i] gives the correct answer

quartz kindle
slow terrace
#

ok

forest drift
quartz kindle
#

then one of the items in the array is either undefined, or you are going too far with i

#

so it will work for most items until it reaches the one that doesnt exist

forest drift
#
if(arrays.message.trigger[i].includes(";")){
            console.log(arrays.message.trigger[i])
}

lemme try this rq

quartz kindle
#

that will error anyway

forest drift
quartz kindle
#

you have to log it before the if

#

or remove the includes from the if

slow terrace
#

and spamming like this

forest drift
#
"trigger": [
      "fuck;fuk;fuc;fck",
      "?;??;???;????;?????",
      "hello;hi;ello;sup",
      "cotton;melanie",
      "im bored;i'm bored"
      ],

anything wrong here?

quartz kindle
#

not in that one no

#

show your for(...)

forest drift
#
for(let i=0;i<=arrays.message.trigger.length;i++){
        console.log[arrays.message.trigger[i])
});

gonna run this rq

quartz kindle
slow terrace
#

Deleted it

slow terrace
#

wait

quartz kindle
#

i < length

#

not i <= length

forest drift
#

ah

#

oh yeah im an idiot

#

length starts from 0

#

and so do arrays

#

woops

#

thanks!

slow terrace
#

npm WARN reify so that the damage can be corrected, or perform
npm WARN reify a fresh install with no lockfile if the problem persists.
npm WARN reify invalid or damaged lockfile detected
npm WARN reify please re-try this operation once it completes
npm WARN reify so that the damage can be corrected, or perform
npm WARN reify a fresh install with no lockfile if the problem persists.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated gcommands@5.2.6: No loger supported
npm ERR! process terminated
npm ERR! signal SIGINT

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\WolfWolfy\AppData\Local\npm-cache_logs\2021-11-01T18_31_28_720Z-debug.log