#development

1 messages Β· Page 1664 of 1

pale vessel
#

You moved it

#

πŸ€”

vast garnet
#

i change my token

#

wait pls

pale vessel
#

Remove this

earnest phoenix
#

ones balance and ones beg

steady yarrow
#

im trying to deploy python to heroku, but whatever libraries i dump into Aptfile dont seem to be working

pale vessel
#

Change Oy verilmedi to Bu komutu kullanabilmek iΓ§in b...

dusky sundial
#

Yes, I got that. But I'm having a hard time understanding what you need help with

#

I can't help you unless you tell me what's wrong

earnest phoenix
#

I have everything there's no errors but it doesn't work

#

nothing happens when I do +beg

#

or

#

+balance

#

and I have client = commands.Bot(command_prefix = "+")

dusky sundial
#

Well, once again, why are there two identical open_account(user) methods?

earnest phoenix
#

because one shows it when they do balance and the other one shows it when they beg

carmine summit
#

@pale vessel do you know how to remove this?

dusky sundial
earnest phoenix
#

ye

vast garnet
#

Can you come to my server and try?

earnest phoenix
#

I've tried like 4 times to do this

vast garnet
#

i m voted my bot

#

i need no voted my bot

earnest phoenix
#

but it does the same thing

dusky sundial
#

But you would only need one open_account method

#

They are the exact same, so there's no reason to make two of them

earnest phoenix
#

what do I delete

dusky sundial
#

One of the open_account methods

earnest phoenix
#

I deleted 1

pale vessel
#

not sure what

carmine summit
#

I kinda need the formatter

earnest phoenix
#

Not sure if this is the right channel for this but
I’m looking to expand my JS out a bit more so i want to learn more about the language itself
I am wondering if anyone has any good tutorials that go in depth in what they teach and try’s to make it fun?

earnest phoenix
vast garnet
#

@pale vessel Can you come to my server and try, I need a person who did not vote for the boat?

pale vessel
vast garnet
#

the problem is that I voted from all my sub accounts

pale vessel
#

oh

vast garnet
#

πŸ˜„

pale vessel
#

did the command run for you?

#

If so then it should work fine

vast garnet
#

You will come to the server where I and my bot are already

pale vessel
#

All right, sure then

#

DM me the invite

vast garnet
#

@pale vessel thnks πŸ˜„

earnest phoenix
#

helpy mey

vast garnet
#

I couldn't understand what's wrong here?

pale vessel
#

remove that }

#

and fix your addField()

vast garnet
#

sorry πŸ˜„

pale vessel
vast garnet
#

Wait a minute, nor have I already completed these in addField ()

#

@pale vessel ?

pale vessel
#

Come again?

vast garnet
#

still same

pale vessel
#

Replace this with } });

tame carbon
#

Wow

vast garnet
#

ok thx

timid fog
#

HOW TO MAKE CURREMCY SYSTEM FOR THE BOT

dense bear
#

curremcy

dusky sundial
#

You could start by setting up a way to store data, e.g a database

dense bear
#

^

dusky sundial
#

then add some features to add money to the users in the database

dense bear
#

you could use sql

#

if it's larger scale

#

but if it's like a local bot you could probably just use a json file

timid fog
#

ok

#

I AM NEW TO PYTHON SO CAN U HELP ME WITH THE CODE ALSO

dusky sundial
#

We're not here to write code for you, start by yourself and ask here if you have any questions along the way

timid fog
#

ok

main stratus
timid fog
#

thanks

sudden linden
#

help me pls

lyric lynx
#

how to align text in center in markdown?

umbral zealot
wooden rover
#

How could I get free ssl certificate for my website?

long crow
#

I wonder if I can do something like game tips/guide using markdown on github repo and integrate it with my discord bot

#

Like using webhook or request it via axios etc

pale vessel
cinder patio
feral aspen
#

When you have one property in a function, is there a way I can pass out more than 1 argument?

pale vessel
#

what do you mean

feral aspen
#
function functionName(oof) {
    console.log(oof);
};

functionName(1, 3);
#

Is that possible?

pale vessel
#

use ...oof as parameter

feral aspen
#

Oh, yes.

#

πŸ‘

#

Thanks.

#

What did they call the ...?

feral aspen
#

It makes the property receive in array, I believe?

#

.. or to be able to pass out an array as the argument?

pale vessel
#

Yeah, or spread an array ([1, 2, ...[3, 4, 5]])

cinder patio
#

you can also use the arguments variable

feral aspen
#

I know, to return to the arguments.

simple zodiac
#

Hey does anyone know how to list all server roles in discord.js? I'm trying to make a server info command and when i try
message.guild.roles i see "[object Object]" in the message.

cinder patio
#

You should list the role names

simple zodiac
#

I just want a list idc how its laid out

cinder patio
#

right now you are trying to send a Collection of roles

simple zodiac
#

ah

#

how do i make it be all of em

pale vessel
#

well a rolemanager

simple zodiac
#

mentioned or not

#

what is that

cinder patio
#

right

wooden rover
cinder patio
#

<RoleManager>.cache.map(role => role.name) will give you an array with all role names

simple zodiac
#

uh ok ill try that

pale vessel
#

don't just copy paste

simple zodiac
#

oh

#

what do i put then

#

if not that

feral aspen
#
function sum(x, y, z) {
  return x + y + z;
}

const numbers = [1, 2, 3];

console.log(sum(...numbers));
// expected output: 6

I see here I created a function that receives 3 operators and returns by adding them.

I created an array called numbers which are numbers, and I assigned 3 values inside the array.

Did I use those values to assign them to the placeholders in the functions?

cinder patio
#

you should try it

simple zodiac
#

me?

cinder patio
#

no, Hamood

feral aspen
simple zodiac
#

oh ok

#

google when i try that the <> messes up my code and make a bunch of random stuff a string & also unexpected token '<'

feral aspen
# cinder patio no, Hamood

In the web, I didn't understad why they added the spread operator before assigning the values of the array to the placeholders in the function

simple zodiac
#

and w/out it says RoleManager is not defined

cinder patio
simple zodiac
#

idk what that is

#

like

cinder patio
#

guild.roles

simple zodiac
#

message.guild.roles

#

ok yeah

cinder patio
#

yeah

simple zodiac
#

sry im rlly new to coding bots & coding in general

#

cool thanks that works

cinder patio
#

so you add ... to specify that the arguments of the function are inside an iterator

feral aspen
#

Hm.

const oof = [1, 2, 3];
console.log(...oof)

I have removed the ... and it logged the array and added the ... and it logged the values of the array.

#

Basically ... can have many uses?

cinder patio
#

No, that's the same use

pale vessel
#

You can give as much params as you want for console.log

feral aspen
#

When you add the ... before the placeholder in the function, it makes it receive an array, though?

pale vessel
#

it iterates the array and pass them as arguments

#

it's equivalent to console.log(1, 2, 3)

feral aspen
#

Ok, let me write the final code just to asses my understanding.

pale vessel
#

for functions, it also makes things easierjs function sum(...nums) { return nums.reduce((acc, cur) => acc + cur, 0); } sum(1, 2, 3, 2) // 8

feral aspen
#
/* First Test */
function sum(x, y, z) {
  return x + y + z;
}

const numbers = [1, 2, 3];

console.log(sum(...numbers)); // I think this will pass the values of the array to the placeholders or the parameters in the function.
// Outputs 6.

/* First Test */
function lol(...x) {
  return x;
}

console.log(lol(1, 2, 3, 4, 5)); // I think this will pass the values to the placeholder which is an array.
// Outputs 1, 2, 3, 4, 5

/* Second Test */
const oof = [1, 2, 3];
console.log(...oof) // Logs, 1, 2, 3 ... "1" is a string.
pale vessel
#

this outputs an array, no?

feral aspen
#

Yes, woops.

#

I edited.

#

Just to understand, when you add the spread operator before a parameter, it makes it receive an array but when you add the spread operator before an array, it makes it not an array?

pale vessel
#

the parameter needs to be an iterable (for ... before params when calling functions)

cinder patio
#

In function args, ...params just gets all the parameters and puts them in an array

pale vessel
#

you use ...args in functions so that you can access them in an array, since you wouldn't know how much params the user gave

feral aspen
#

Indeed.

pale vessel
#

it's useful for handlers

feral aspen
#

While the spread operator in this:

/* Second Test */
const oof = [1, 2, 3];
console.log(...oof) // Logs, 1, 2, 3 ... "1" is a string.

just removes the values from the array and return them, right?

pale vessel
#

it provides every element of that array as a single argument for console.log, hence why you see 1 2 3 in your console

cinder patio
#

Also 1 shouldn't be a string

feral aspen
#

πŸ‘€

feral aspen
#

πŸ‘

#

basically opposites in arrays.

pale vessel
#

tldr it turns arrays items into function params

feral aspen
#

Alright! πŸ‘

earnest phoenix
#
Traceback (most recent call last):
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 293, in static_login
    data = await self.request(Route('GET', '/users/@me'))
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py", line 247, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized
#

what does this mean

#

nvm

earnest phoenix
#

Not authorized to do something

old saddle
#

I added My Bot to the site..,
I need to do now, help ??

dusky sundial
#

Just wait for a reviewer to check it out

#

Should take around 2 weeks

old saddle
dusky lagoon
#

Is it possible to make a hyperlink with a reaction so when you click on a reaction it directie opens up the link

dusky sundial
dusky lagoon
earnest phoenix
#

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases

#

;-;

vast garnet
#

I will use a code with 2 words. What should I do?

#

example
name: "lol", and "lul",

but how will I do?

cinder patio
#

whut

earnest phoenix
#

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases

this error is comping ;-;

vast garnet
#

I want to use a code with 2 words

edgy orchid
#

Hey everyone I'm Jess

And I'm very new to this

I was wondering if anyone could help me make my own bot?

I want to make a particular bot though

One that's private and for me to use

Is there anyway I can do this?

If so can you tell me what I'll need to do it

And Whats steps I would have to do?

Thanks

neon current
edgy orchid
#

Oh really?

#

Wow

neon current
#

Yup

#

Easy

edgy orchid
#

So How do I do this?

#

Do I need a computer to do it?

Do I need to download anything?

cinder patio
#

First of all, do you know what a bot actually is? Like, what makes a discord bot work

dusky sundial
#

Your first step should probably be to get familiar with a programming language

vast garnet
dusky sundial
visual edge
#

Does the DBL handle hosting the webhook?

#

Oh ok

earnest phoenix
#

made my first smort contrakt using hardhat and tested it on a local blockchain
I feel p o w e r f u l

carmine summit
#

do while loops wait for it to finish to run a new loop?

#

or it just runs a new loop every milisecond?

dusky sundial
#

it will finish the loop and run a new one, as long as the statement is true

carmine summit
#

are all loops do that?

#

are there any exceptions?

dusky sundial
#

unless you do some asynchronous stuff, no. All loops should finish before re-iterating

vivid fulcrum
#

it's a blocking action

carmine summit
#

wdym by asynchronus stuff

dusky sundial
#

If you don't know what it is, you don't need to worry, essentially

vivid fulcrum
#

you can still do async work and have it block

tldr it will block further execution until the condition in the while loop is false

carmine summit
#

you mean by promises?

dusky sundial
#

If you're curious you can look up asynchronous programming

vast garnet
dusky sundial
#

But yeah, what cry said ^^

sinful crater
#

why am I getting ignored

carmine summit
#

how can I make a loop run even if it is not finished

dusky sundial
#

depends on what language you're using

carmine summit
#

javascript?

vast garnet
#

I want to use a code with 2 words

modest maple
dusky sundial
vast garnet
#

||booster ||

earnest phoenix
vast garnet
dusky sundial
#

Huh?

#

I'm sorry, I still don't understand

carmine summit
#

so, if its a promise

#

it runs like f

#

but if its just a normal loop

earnest phoenix
#

wdym cwiccks

carmine summit
#

it waits for it to finish then start a new one?

earnest phoenix
carmine summit
#

so things like axios is a promise

#

and you need to await a promise

#

amiright?

earnest phoenix
#

but what i did here was create a Promise (so it wont block code execution) and put a continue so the while loop continues running even if the old stuff hasnt finished yet

#

@carmine summit i dont get what you're tryna say

carmine summit
#

I mean things like axios is a promise

#

if you make a request,

#

it will return a promise

#

so you need to await it

#

to return data

#

?

earnest phoenix
#

promise basically means "run this code alongside other stuff instead of waiting for this to finish before doing anything else"

carmine summit
#

why cant await be in a code without async?

#

while async can be in a code without await

#

what does async do exactly?

earnest phoenix
#

guys does anyone know how to install node v14 in repl.it

earnest phoenix
earnest phoenix
#

on the bright side, djs v13 isn't out yet so no need for v14 node

carmine summit
earnest phoenix
dry cosmos
#

need help

carmine summit
earnest phoenix
dry cosmos
#

can anyone mod my bot?

#

help me

#

i have a bot

carmine summit
#

I mean I needed to await the axios for it to return data. and I cant put an await without async. what does async do exactly?

dry cosmos
#

i need to set custom status for my bot

#

how do it

#

i triyng to set it

dusky sundial
#

In what language?

dry cosmos
#

but not show

#

help me

#

help

#

pls

dusky sundial
#

We can't help you unless you tell us what language you are programming in dude

dry cosmos
#

i dont know program

zenith terrace
#

.-.

dusky sundial
#

Then you can't change the status

dry cosmos
#

i create a bot with discord developer portal

#

i can give token

dusky sundial
#

Don't give out your token

dry cosmos
#

pls set his custom status

dry cosmos
dusky sundial
#

Because anyone can hack your bot if they have it

dry cosmos
#

i knowπŸ˜†

#

but i need to set custom status

#

give me code

zenith terrace
#

no

dusky sundial
#

We won't write code for you

dry cosmos
#

why

dusky sundial
#

Learn how to program before trying to make a bot

dry cosmos
#

i did make bot

#

now code

#

;D

zenith terrace
#

yes, learn code

dry cosmos
dusky sundial
#

You just said you don't know how to program

zenith terrace
#

oh no

dry cosmos
dusky sundial
#

This isn't a channel to ask for code

#

This is for help with code you're trying to write yourself

dry cosmos
#

what channel for code

#

coding channel here/

dusky sundial
#

None, you're in the wrong discord if you want people to write code for you

dry cosmos
#

help mee

#

give me code of cutom status

dusky sundial
#

Again, no

dry cosmos
#

then i can save it discord.js

dusky sundial
#

No one is going to write code for you, end of story

dry cosmos
#

no need to code for me

#

why are you not code for it before

carmine summit
#

@dry cosmos ill write code for you if you paypal me 5$

dusky sundial
#

No one is going to write it for you, and no one is going to give you their finished code

cinder patio
dry cosmos
dusky sundial
#

@dry cosmos stop begging for other people to write your code

dry cosmos
#

no beg

dusky sundial
#

exactly, no begging

cinder patio
#

Hey Bihandu, how old are you?

#

just asking

dry cosmos
#

15

zenith terrace
#
  • doesnt know code
  • is in VSC
cinder patio
#

You should know better

dry cosmos
#

πŸ˜†

dusky sundial
#

Then you should understand that begging for code won't help

dry cosmos
#

i am small

#

boy

carmine summit
carmine summit
dry cosmos
#

;D

cinder patio
dusky sundial
#

This isn't a place to bash people for their knowledge, so please don't

dry cosmos
#

antiSpam = {}
function antiChatSpam()
if isTimer(antiSpam[source]) then
cancelEvent()
outputChatBox("#0000be[MUTE] #ffffff" ..getPlayerName(source).." #ff6600Have Been Muted! ( 60 seconds )", getRootElement(), 255, 255, 0,true)
setPlayerMuted(source, true)
setTimer ( autoUnmute, 60000, 1, source)
else
antiSpam[source] = setTimer(function(source) antiSpam[source] = nil end, 1000, 1, source)
end
end
addEventHandler("onPlayerChat", root, antiChatSpam)

function autoUnmute ( player )
if ( isElement ( player ) and isPlayerMuted ( player ) ) then
setPlayerMuted ( player, false )
outputChatBox ("#0000be[MUTE] #ffffff" ..getPlayerName ( player ).." #ff6600Has Been Unmuted !",getRootElement(), 255, 255, 0,true )
end
end

cinder patio
#

Literally,

async () => {

}```

is the same as:

```js
() => {
  return new Promise((resolve) => {
  resolve();
}
}
carmine summit
dry cosmos
#

help

carmine summit
#

so both of those is going to say A, B, C

cinder patio
#

yeah

dry cosmos
#

can u tell me how create this box/bar

dusky sundial
latent heron
#
die(false);
carmine summit
#

can you give me a scenario that will return B, C, A

cinder patio
dry cosmos
#

hi
ccc
```js
#

OMG

#

nice

#

' ' 'js hi

#
hi
```js
cinder patio
dry cosmos
#
hi```
tardy hornet
#

is there a way that when someone boost it will send a message there? i know there is i just dont know how

carmine summit
#

so, if I do something like message.channel.send

#

which is asynchronus

dry cosmos
#

tysm

carmine summit
#

it will get messy?

cinder patio
#

yeah

dry cosmos
#
Hi @everyone
dusky sundial
cinder patio
#
() => {
message.channel.send("a");
message.channel.send("b");
message.channel.send("c");
}

There's no guarantee which one will be sent first because you don't await them

dusky sundial
tardy hornet
dusky sundial
#

And what do you want to happen with that?

tardy hornet
#

when someone does it will send a message

carmine summit
#

So, promises are just like: Run this code even if that code is not done

zenith terrace
#

discord already has a feature for that

cinder patio
#
async () => {
await message.channel.send("a");
await message.channel.send("b");
await message.channel.send("c");
}

If you mean this, then no, the messages will be sent in order and the rest of the code will be executed AFTER all the messages have been sent

tardy hornet
dusky sundial
#

Isn't that a thing that happens by default?

carmine summit
tardy hornet
#

for example:

ashen portal
#

Does anyone know how the warn system is in node.js language?

tardy hornet
ashen portal
tardy hornet
#

you need to use database

tardy hornet
ashen portal
#

Whats database?

dusky sundial
#

What language are you using?

tardy hornet
#

me?

dusky sundial
#

Yes

ashen portal
#

node.js

#

i do

tardy hornet
carmine summit
tardy hornet
ashen portal
dusky sundial
#

I don't know js, can't help you

tardy hornet
tardy hornet
#

or woman

ashen portal
#

if (command === "!warn") { message.reply?

tardy hornet
dry cosmos
#
Hi
dusky sundial
# tardy hornet or woman

You can use the on message event to check if the message type is equal to message.type.USER_PREMIUM_GUILD_SUBSCRIPTION

zenith terrace
dry cosmos
#
hi
dusky sundial
ashen portal
dry cosmos
#

i am learning

#

coding

ashen portal
#

hi

dry cosmos
#

antiSpam = {}
function antiChatSpam()
if isTimer(antiSpam[source]) then
cancelEvent()
outputChatBox("#0000be[MUTE] #ffffff" ..getPlayerName(source).." #ff6600Have Been Muted! ( 60 seconds )", getRootElement(), 255, 255, 0,true)
setPlayerMuted(source, true)
setTimer ( autoUnmute, 60000, 1, source)
else
antiSpam[source] = setTimer(function(source) antiSpam[source] = nil end, 1000, 1, source)
end
end
addEventHandler("onPlayerChat", root, antiChatSpam)

function autoUnmute ( player )
if ( isElement ( player ) and isPlayerMuted ( player ) ) then
setPlayerMuted ( player, false )
outputChatBox ("#0000be[MUTE] #ffffff" ..getPlayerName ( player ).." #ff6600Has Been Unmuted !",getRootElement(), 255, 255, 0,true )
end
end

tardy hornet
#

@dry cosmos please stop

dry cosmos
#

what?

ashen portal
#

Auto Moderation in programming language maybe someone?

ashen portal
#

ill go check it out

tardy hornet
#

@dusky sundial he is spamming again

dusky sundial
#

@ripe prairie
@dry cosmos keeps spamming long messages without context

dry cosmos
#

hhhh where

#

@ripe prairie
@dusky sundial keeps spamming long messages without context

#

;D

latent heron
#

Bruh

ripe prairie
#

@dry cosmos do you need help with your code or something?

dusky sundial
dry cosmos
#

yes

zenith terrace
ripe prairie
#

then say that instead of repeatedly posting random code please

dry cosmos
#

i want to set custom status for my bot

#

give me code pls

latent heron
#

Oh my

dry cosmos
#
Please
ripe prairie
#

have you tried googling first if you want spoonfeed

zenith terrace
#

spoonfed*

dry cosmos
#
Not Yet
latent heron
#

Star*

ripe prairie
#

would recommend that then

zenith terrace
#

can you not type in code blocks <_<

dry cosmos
#
Why?
#

I like it

latent heron
#
Pog
dry cosmos
#

i learn it today

#

from here

#

it is nice and i like it so much

#
Bihandu Bro


#

@latent heron

#

BB

#

me go clz

#

online

#

;D

latent heron
#

Huh?

zenith terrace
#

bruh

raven needle
#

what is the advantage of a shard

old cliff
#

no advantage

dusky sundial
#

Discord requires you to shard your bot when you reach 2500 guilds though

raven needle
#

ok

frank brook
#

βœ…

earnest phoenix
#

how the heck do you get an api key for etherscan

#

they dont have any info on actually getting an api key in their docs

modern granite
#

discord.errors.HTTPException: 429 Too Many Requests (error code: 0): You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently. Please read our docs at https://discord.com/developers/docs/topics/rate-limits to prevent this moving forward.

Discord Developer Portal

Integrate your service with Discord β€” whether it's a bot or a game or whatever your wildest imagination can come up with.

#

how to fix this?

modest maple
#

you dont

#

you Obey the rate limits or you get banned

earnest phoenix
modern granite
#

I understand

#

but

#

idk what's the problem

#

why this happened

#

because the bot worked fine for some months

modest maple
#

shrug You're send to many requests in a given time

dusky sundial
#

You can fix it by not sending any requests for a while and waiting to be unblocked

modern granite
#

Look

#

so

#

I have a prefix.json file

modest maple
#

yikes

earnest phoenix
#

json db

modern granite
#

that the bot just pastes all the id's of the servers

earnest phoenix
#

πŸ€¦β€β™‚οΈ

modest maple
#

yikes

modern granite
#

can you shut up code913

#

?

earnest phoenix
#

json dbs are very terrible

modern granite
#

and giving errors

modern granite
#

I DON'T NEED IT

#

it's just a server's id's dumper

earnest phoenix
#

what

modern granite
#

nothing.....

earnest phoenix
#

so you just dump server ids into a json file for fun?

modern granite
#

I just dump them there to be able to make the prefix change command

#

that's everything I need the json file for

modest maple
#

CoffeeSip Well thats probably one of the worst things to use JSON for but sure

#

what does you bot do exactly?

modern granite
#

doesn't matter

#

but

zenith terrace
modern granite
#

I just want to undertand

earnest phoenix
#

Hi

modern granite
#

why it takes random id's from that json file ?

#

that id's are not even there

modest maple
#

pithink We could tell you where you're likely being ratelimited from if we actually new what it did but sure

modern granite
#

it just randomly generates them

earnest phoenix
earnest phoenix
modern granite
#

bruh

#

okay

#

so the commands

#

are

modest maple
#

are you storing these Ids as int's or strings?

#

and what language are you using

modern granite
#

str

modern granite
modest maple
modern granite
#

yes

modest maple
#

pithink Wtf are you doing so much of that's causing you to get temp banned

modern granite
#

that's what I am trying to figure out

#

the only place where I use requests is when I want it to go to the website where you are given random images of animals

#

so it just goes there, goes to it's json file

#

and sends it to discord as an Image

#

I don't use requests somewhere else

modest maple
#

just show you code eyerollgopher

modern granite
#

500 lines

modest maple
#

yes and?

modern granite
#

ok

#

the texts are in russian

modest maple
#

shrug I only care about the code not the text you send

earnest phoenix
#

can anyone help me with installing enmap?

earnest phoenix
#

i can send you the log?

modern granite
earnest phoenix
modern granite
#

@modest maple it has ?????????

#

the ?????? is in Russian language

earnest phoenix
#

unicode problem

modern granite
#

ik

earnest phoenix
#

that's why we upload to hastebin

modest maple
#
    for channel in guild.text_channels:
        if channel.permissions_for(guild.me).send_messages:
            await channel.send("??????! ??????? ??? ???????? ???? ?? ??????.\n?????????? ????????? ? ???, ??? ???? **Dowuud** ????????? ???? ??????????????, ????? ? ?? ????? ????????? ????????? ??????!")
        break    

yikes number 1

modern granite
#

and?

earnest phoenix
modern granite
#

not

modest maple
#

mm pretty much

earnest phoenix
#

i can clearly see why they got rate limited

modern granite
#

only one of them

#

I tested that

modest maple
#

still a bad idea

modern granite
#

sad

earnest phoenix
#

you know that you can just dm the owner

quartz kindle
#

it should send to only one since it has a break

earnest phoenix
#

when the bot is added to that server

earnest phoenix
modern granite
#

it may be added by the admins

#

and the owner may not be online

earnest phoenix
#

ea games

modern granite
#

that's the reason I send it to one of the available channels

earnest phoenix
#

oops wrong chat

#

@earnest phoenix i cant add it to hastebin i get an error

modest maple
#
await ctx.send('? ??????? ????? ?? **1** ?? **1000**. \n???????? ????????.')
     for i in range(0, 91283789127389):
          msg = await bot.wait_for('message', check=lambda message: message.author == ctx.author and message.channel == ctx.channel)
          try:
              msgg = int(msg.content)
              if int(msgg) > num:
                  await ctx.send(f'????? ?????? **{msgg}**')
              if int(msgg) < num:
                  await ctx.send(f"????? ?????? **{msgg}**")
              if int(msgg) == num:
                  await ctx.send(f"?????????! \n?????: **{num}**")
                  break

          except:
              await ctx.send('? ???????? ???? ???, ??? ?? ???? ?????!')
              break``` 
yikes number 2
earnest phoenix
#

send it in this server

#

yep

#

why did you have to include the file path

modest maple
#
@bot.command(aliases=['?????'])
@commands.has_permissions(manage_channels = True)
async def channel(ctx, name):
    await ctx.guild.create_text_channel(name)
    await ctx.send(f'????????? ????? **{name}** ??? ??????? ??????!')```
would probably check how many time's someone is using this^
earnest phoenix
#

just send the error: smth part

modest maple
#

channel ratelimits are incredibly high both in creation, deletion and renaming

earnest phoenix
#

wait

fossil grove
#

Python = 🐒

earnest phoenix
#
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd C:\Users\<user>\Desktop\GrellBot\node_modules\better-sqlite3
gyp ERR! node -v v14.16.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.2 build-release: `node-gyp rebuild --release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.2 build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\<user>\AppData\Roaming\npm-cache\_logs\2021-03-22T11_24_12_667Z-debug.log
npm WARN grellbot@1.0.0 No description
npm WARN grellbot@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! better-sqlite3@7.1.2 install: `prebuild-install || npm run build-release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the better-sqlite3@7.1.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\<user>\AppData\Roaming\npm-cache\_logs\2021-03-22T11_24_12_907Z-debug.log
modest maple
# modern granite so?

Well, someone can just spam that command for a while in some servers and get your bot banned

modern granite
#

so just delete that? or any better ideas for that code?

modest maple
modern granite
#

nice

#

so that's the reason?

#

ONLY reason?

earnest phoenix
#

i had the same kind of error with sqlite

#

after 5 months still cant fix

quartz kindle
#

that isnt the full log

#

the actual error is missing

earnest phoenix
#
C:\Users\<user>\Desktop\GrellBot\node_modules\better-sqlite3\build\deps\locate_sqlite3.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that th
e file exists on disk.
#

wait i didnt see ths

#

my b

#

C++ error with visual studio?

quartz kindle
#

hmm thats weird

#

are you on windows?

earnest phoenix
#

yea

#

windows 10

#

most probably

quartz kindle
#

did you install windows build tools?

earnest phoenix
#

yes

#
npm i -g --production --add-python-to-path windows-build-tools node-gyp
umbral zealot
#

Does the username contain any special characters, accented letters, spaces, etc?

earnest phoenix
#

thats the required packages for enmap

earnest phoenix
quartz kindle
#

did you wait until it said "all ready"?

earnest phoenix
#

yea

umbral zealot
#

The username.

#

Not the bot name.

earnest phoenix
#

wait what username

modest maple
#

This is why Python is just nice sometimes bloblul We get SQlite installed by default

earnest phoenix
#

of the folder??

#

the username you censored

quartz kindle
#

/users/username

earnest phoenix
#

oh

#

a . and -

umbral zealot
#

The windows username you hid with <user>`

#

Yeah ok so maybe that.

quartz kindle
#

try moving the bot folder out of there

umbral zealot
#

Move the project into a path that has no special characters at all

#

Like c:/dev/bots/GrellBot/

shy turret
#

should i worry? (db is json)

modest maple
#

absolutely

#

that is

#

awful

#

on so many levels

quartz kindle
#

nah

#

its fine

earnest phoenix
quartz kindle
#

10k folders is nothing

shy turret
#

lmao

#

im not even kidding is the funny part

earnest phoenix
#

you're using jason.db right

shy turret
#

db.json i made my own json handler

#

and working on a rewrite

earnest phoenix
modest maple
shy turret
#

i didnt know how to use sqlite... or any other db

modern granite
earnest phoenix
# umbral zealot Move the project into a path that has no special characters at all
C:\GrellBot\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --release )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild --release )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\GrellBot\node_modules\better-sqlite3\build\deps\locate_sqlite3.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
shy turret
#

i used to use a txt db

earnest phoenix
#

nope

quartz kindle
#

sqlitr is super easy tho

earnest phoenix
#

so you spent extra work making a json db

velvet bluff
#

remember its a database of a bot

#

lol

velvet bluff
#

(i work with two on the same bot)

modern granite
quartz kindle
#

docs are more than enough

earnest phoenix
#

use that

#

basically sqlite but easier to use

modern granite
#

thanks both of you

umbral zealot
shy turret
#

i use keyv

#

i should worry and finish the rewrite quicker

#

ok thanks

earnest phoenix
#

keyv sounds like kiwi ngl

velvet bluff
earnest phoenix
#
error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
#

C++???

#

c++ is needed for sqlite

#

dont ask me why

#

lmao

#

alright how do i fix that then

#

when in doubt ask tim

earnest phoenix
modest maple
#

you should have that setup if you installed BuildTools correctly

#

Build Tools should give you the needed compilers for both C and C++ along with their relevant linkers

earnest phoenix
#

i tried re-installing windows build tools and i get an error saying visual studio build tools couldnt be installed

#

maybe thats the issue?

quartz kindle
#

why coildnt it be installed?

#

what was the error?

earnest phoenix
#

uhh it just says this

Could not install Visual Studio Build Tools.
Please find more details in the log files, which can be found at
C:\Users\<user>\.windows-build-tools
quartz kindle
#

open that file

tulip ledge
#

Hey Tim I had a question about that function u made

earnest phoenix
#

for some reason there was no new log file created?

#

however im running the vs build tools executable and seeing if that makes a difference

#

maybe a more detailed error

quartz kindle
#

sounds like you may have permission issues

tulip ledge
#
  static addMaterialsToInv(items, string) {
    console.log(items)
    for(let item of items) {
      let key = item.itemid; 
      let value = item.amount;
      if(!string.includes(key + ":")) {
          string += `${string ? "," : ""}${key}:${value}`
      } else {
        let startIndex = string.indexOf(key + ":");
        let endIndex = string.indexOf(",", startIndex);
        if(endIndex === -1) { endIndex = string.length; }
        let piece = string.slice(startIndex, endIndex);
        let existingValue = Number(piece.split(":")[1]);
        string = string.replace(piece, `${key}:${existingValue + value}`);
      }
    }
    return string;
  }

It adds the objects to the string right but what I've noticed is if I have in the string "22:5" (so itemid 22) and then if I ant to add something with id "2" it adds to the item with id "22"

quartz kindle
#

try uninstalling everything rated to visual studio from the control panel

#

and delete the folders from Program Files

earnest phoenix
umbral zealot
#

ok now try again to run the pre-requisite command, make sure you're in an admin prompt when you do so

earnest phoenix
quartz kindle
#

no you dont need to uninstall the redistributables

umbral zealot
#

just those 3

quartz kindle
#

nor studio code

earnest phoenix
#

alright

quartz kindle
#

yes

earnest phoenix
#

then i just run the command npm install -g --production windows-build-tools?

modern granite
#

why

quartz kindle
#

@tulip ledge needs to change some stuff then, indexOf("," + key + ":")

ornate otter
#

Tim can u vc?

quartz kindle
#

but will need to changes the includes too

umbral zealot
#

the full command in the docs

ornate otter
#

Cus i'm still working for hours on this Vps to get npm to work but no matter what, i cant

quartz kindle
#

and add special handling for first item

umbral zealot
#

npm i -g --add-python-to-path --vs2015 --production windows-build-tools

earnest phoenix
#

npm i -g --production --add-python-to-path windows-build-tools node-gyp

#

oh

quartz kindle
#

im on tbe phone rn, cant do it

ornate otter
#

ah, thats ok then, thanks anyway

earnest phoenix
umbral zealot
#

You're trying to install enmap, it's important to run the exact command enmap tells you to install πŸ˜‰

tulip ledge
earnest phoenix
umbral zealot
#

Videos cannot be edited or updated. Docs can.

boreal iron
#

At least nobody does update a video.

modern granite
#

why

umbral zealot
#

Try ./example.db instead

earnest phoenix
#

do i uninstall this too?

modern granite
umbral zealot
earnest phoenix
#

honestly

#

i dont even know what that is

umbral zealot
# modern granite same

then make sure your file isn't opened by any other application that might read it, like a database client or something

umbral zealot
earnest phoenix
#

o

left mauve
#

tΓΌrk vaemΔ± qq

quartz kindle
#

@tulip ledge yes thats why i said it needs special handling for the first item

boreal iron
earnest phoenix
#

oh i cant even uninstall it

tulip ledge
#
function addMaterialsToInv(items, string) {
    console.log(items)
    for(let item of items) {
      let key = item.itemid; 
      let value = item.amount;
      if(!string.includes(key + ":")) {
          string += `${string ? "," : ""}${key}:${value}`
      } else {
        let startIndex = string.indexOf("," + key + ":");
        let endIndex = string.indexOf(",", startIndex);
        if(endIndex === -1) { endIndex = string.length; }
        let piece = string.slice(startIndex, endIndex);
        let existingValue = Number(piece.split(":")[1]);
        string = string.replace(piece, `${key}:${existingValue + value}`);
      }
    }
    return string;
  }

  console.log(addMaterialsToInv([{itemid: '1', amount: 2}, {itemid: '2', amount: 3}], "1:1,22:5"))

returns: 2:NaN1:NaN1:1,22:5

umbral zealot
umbral zealot
quartz kindle
#

@tulip ledge it needs special handling for the first item, and also needs changes to the includes

boreal iron
#

Just thinking about it may isn’t a real database file the lib can open

earnest phoenix
#

rip

#

does it even matter if i uninstall it

umbral zealot
#

Well maybe not specifically, especially if it's actually deleted

tulip ledge
#

what do I change the includes to?

earnest phoenix
#

alright

quartz kindle
#

im on tbe phone now, cant do it

tulip ledge
#

what if

#

I just add a comma in the beginning of the string?

quartz kindle
#

also possible

#

add the comma to the includes as well

tulip ledge
#

still returns 2:NaN1:NaN,1:1,22:5

quartz kindle
#

and add +1 to startIndex

tulip ledge
#

2:NaN,1:3,22:5 I got this now

quartz kindle
#

wheres tbe comma at the beginning?

tulip ledge
#

string = "," + string;

quartz kindle
#

did you add the comma to includes? whats ghe full code now

tulip ledge
#
function addMaterialsToInv(items, string) {
    string = "," + string;
    console.log(string)
    for(let item of items) {
      let key = item.itemid; 
      let value = item.amount;
      if(!string.includes(",", key + ":")) {
          string += `${string ? "," : ""}${key}:${value}`
      } else {
        let startIndex = string.indexOf("," + key + ":") + 1;
        let endIndex = string.indexOf(",", startIndex);
        if(endIndex === -1) { endIndex = string.length; }
        let piece = string.slice(startIndex, endIndex);
        let existingValue = Number(piece.split(":")[1]);
        string = string.replace(piece, `${key}:${existingValue + value}`);
      }
    }
    return string;
  }

  console.log(addMaterialsToInv([{itemid: '1', amount: 2}, {itemid: '2', amount: 3}], "1:1,22:5"))
quartz kindle
#

includes is wrong

#

comma plus key

earnest phoenix
#

alright @quartz kindle @umbral zealot i uninstalled it all, do i run npm i -g --add-python-to-path --vs2015 --production windows-build-tools in admin powershell now?

tulip ledge
#

oh

#

shit lol

#

mb

tulip ledge
#

and can I then just return string.substring(1)?

quartz kindle
#

yes

tulip ledge
#

alright it's working now ty πŸ˜„

earnest phoenix
#

im not sure what happened but i feel like the installation just froze

quartz kindle
#

its normal

umbral zealot
#

it may take a while

#

like.... between 5 and 30 minutes

earnest phoenix
#

oh

#

i see

tired panther
#

ah okay lemme try

#

does not work blobLUL

ornate otter
#

can i see the error?

opal plank
#

anyone know a way to limit VSC to open huge txt files? i mean huge
its been asking me to reopen it with 4gb but im afraid that still might not be enough.
is there a way to show only first 100k lines or something?

#

welp

#

it opened

boreal iron
#

Notepad++ is really good in opening large files

dusky sundial
slim umbra
#

u will use a ton of bytes whatever u do since you have to load the file thru ur memory

dusky sundial
#

code --disable-extensions --max-memory=12288mb

opal plank
#

nono, that much is fine

#

the issue is that the file itself is huge

boreal iron
#

I wonder if that won’t cause an error reaching the memory limit than opening it up

opal plank
#

i got more ram to feed it, the issue is that its absurdly long

#

so its trying to fit all in memory

slim umbra
#

i wonder how sm like vim would handle it

dusky sundial
#

Ah, I see

slim umbra
#

you could try using nano or vim

#

they are probs more lightweight

opal plank
#

i did

#

but its too big even for that

#

tried tail command too

slim umbra
#

sheesh

opal plank
#

but terminals have a maximum output

dusky sundial
#

Sublime? upsidedown_thinking

boreal iron
#

I can send you a 200GB database file if you wanna test KEKW

earnest phoenix
#

@umbral zealot alright i did it all and now it installed correctly :)) thank you for your help

tired panther
ornate otter
#

oh, ok

opal plank
#

so, apparently the file has over 2 million logged lines

dusky sundial
#

Seems fine πŸ”₯

opal plank
storm urchin
#

-botinfo @finite heath

gilded plankBOT
#
Bot info
ID

787345911286202389

Username

PyCity Bot

Discriminator

6626

Short Description

A fun bot that lets you play single or multiplayer city-builder game

Library

undefined

Prefix

pc!

Total Upvotes

1

Monthly Upvotes

0

Server Count

No server count

Owner(s)

@storm urchin

dusky sundial
dusky lagoon
#

(node:72128) UnhandledPromiseRejectionWarning: Response: Internal Server Error this error keeps pooping up

dusky sundial
#

I'd probably pick the one you're most comfortable with

#

If you're looking for simplicity, use Python. If you want the faster one, go for js

earnest phoenix
#

@umbral zealot can you help me with something regarding enmap?

umbral zealot
#

Of course, ask away!

earnest phoenix
#

how would i go about creating a config file?

bot.settings = new Enmap({
    name: "settings",
    fetchAll: false,
    autoFetch: true,
    cloneLevel: 'deep',
    autoEnsure: {
        prefix: "g.",
        welcomeChannel: "welcome",
        welcomeMessage: "Grelle Sutcliff greets {{user}}, welcome to the server!"
    }
});
``` this is the code for it but i dont know how to create it & make it specific for every guild id
#

hi

drifting wedge
#

i recommend pillow

#

cuz py > js

#

but up to you

umbral zealot
earnest phoenix
#

ohh wait i didnt even see the data folder that was created

#

is it automatically per-server?

#

@umbral zealot

umbral zealot
#

It's not "automatic", it depends how you write the rest

#

if you're doing bot.settings.set(message.guild.id, something), that's per guild. if you were to do bot.settings.set(message.author.id, something) that would be per user. If you were to do bot.settings.set("global", blah) then that's a static entry. It's all in the code.

earnest phoenix
#

ohh

#

alright thanks

#

so for example, if i wanted to make a currency system i would use message.author.id and if i wanted to make per-server prefix i'd do message.guild.id?

umbral zealot
#

Exactly! πŸ˜„

dusky lagoon
#

(node:72128) UnhandledPromiseRejectionWarning: Response: Internal Server Error i keep getting this error

sick fable
#

boobs

#

😳

serene parcel
#

Lol

earnest phoenix
#

sa

#

tΓΌrkish

serene parcel
#

π™»πš˜πš•

dusky lagoon
#

no

honest vale
#

yo

dry cosmos
#

hi

#
Hi```
umbral zealot
#

#general to chat in english, #general-int for non-english, please keep this channel for development questions.

vivid fulcrum
dusky lagoon
#

damn

vivid fulcrum
#

like the error says, an error happened internally at the server so you, as the client, really can't do anything except wait it out and hope it fixes itself as time passes lol

dusky lagoon
#

Damn thanks

#

Ok so i have this command called $anime that gives you a random anime js { "id": 140, "names": { "en": "BLEND-S", "jp": "ブレンド・S", "ep": "12" }, "from": { "link": "https://anilist.co/anime/97994/BLENDS/", "type": "Anime", "time": "24 mins" }, "url": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/large/bx97994-5k4ISEsvDl5x.png" } i added this into a .json file i have around 140 different of these so i wanted to make it that it can do $anime {anime name} so it will show that particular anime but i forgot how it was called and how i can do that

earnest phoenix
#

this is a really dumb question because its so obvious but idk man i cant figure it out, how do you send a command by pinging the bot? im confused on what the expression is for the bot mention

if(message.content === `${?????????}`) {
   message.channel.send(prefix);
}
dusky lagoon
#

wha??

boreal iron
#

Guessing you work with djs

earnest phoenix
#

var mentionMember = message.mentions.members.first();

#

you mean like this?

boreal iron
#

Yes

earnest phoenix
#

then the if statement would be

if(mentionMember == `${bot}`) {
}
``` right?
#

@boreal iron

boreal iron
#

err nope

earnest phoenix
#

oh

#

lmfao

boreal iron
#

did you forgot about var mentionMember = message.mentions.members.first(); already? a few seconds after we talked about it?

vivid fulcrum
#

check if the message content is <@your bots id> OR <@!your bots id>

earnest phoenix
#

no??

dusky lagoon
#

Ok so i have this command called $anime that gives you a random anime js { "id": 140, "names": { "en": "BLEND-S", "jp": "ブレンド・S", "ep": "12" }, "from": { "link": "https://anilist.co/anime/97994/BLENDS/", "type": "Anime", "time": "24 mins" }, "url": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/large/bx97994-5k4ISEsvDl5x.png" } i added this into a .json file i have around 140 different of these so i wanted to make it that it can do $anime {anime name} so it will show that particular anime but i forgot how it was called and how i can do that.

earnest phoenix
#

thanks

boreal iron
#

aye, that works as well

vivid fulcrum
#

and it's much more efficient and fool proof

#

don't overcomplicate when you dont need to ig

boreal iron
#

I prefer things to be more complicated than that mmulu

#

but something I don't know...

#

<@! and <@

#

what's what?

earnest phoenix
#

wait wait

vivid fulcrum
#

the one with the exclamation mark used to indicate a member with a nickname

that behavior is now removed and it's considered legacy, it appears at random times depending on which client platform the user is using

boreal iron
#

ah alright

earnest phoenix
#

wait

#

shit

vivid fulcrum
#

escape it

#
\`
boreal iron
#

good to know

earnest phoenix
#

wait ill just send an image instead

vivid fulcrum
#

i understand the issue dw

#

like i said above, escape it

earnest phoenix
#

i want the prefix to be typed like this but if i do it like this i just get an error, how do i fix it

boreal iron
earnest phoenix
#

oh with ```````

#

omg

#

i stg

boreal iron
#

Escape them.. as cry said

#

You will need one only if you do that

tranquil marsh
#

hi could someone help me in python discord bot dev?

#

if yes dm me

vivid fulcrum
#

just ask your question here

opal plank
#

im more impressed that the IDE/editor didnt catch that

tranquil marsh
#

eh which database is the best for storing currencies

tranquil marsh
#

i just need to store how much money does one have.

#

what is the best database for that

umbral zealot
#

Then sqlite is fine - you can use quick.db or enmap for it if you want it easy

vivid fulcrum
#

consider the very high quality flowchart above

#

they're using py

umbral zealot
#

oh then nevermind. yes, sqlite is fine.

earnest phoenix
tranquil marsh
#

sqlite?

#

lemme search for it

boreal iron
vivid fulcrum
#

bro literally just copy what i sent inside of the codeblock and paste it in your template string wherever you want to use backticks

tranquil marsh
#

could someone teach me enmap or some ez database thing

opal plank
#

could someone teach me how to use voice connections and opus decoding/encoding and streaming?

tranquil marsh
boreal iron
boreal iron
#

lmao

opal plank
#

also

#

wtf

vivid fulcrum
#

on discord

#

thats super easy

opal plank
boreal iron
#

BUT you will have an active optus voice connection

vivid fulcrum
#

node native addons are a nightmare

opal plank
#

well im stuck at the first step

vivid fulcrum
#

3 different environments πŸ‘³β€β™‚οΈ

opal plank
#

which is installing opus

vivid fulcrum
#

just go with the djs route and create your own bindings

opal plank
#

not even gonna lie, i have no clue whats infront of my eyes rn

#

im not using djs

#

thats why i need opus

#

node-opus deprecated

vivid fulcrum
#

i know

#

that's not what i said

opal plank
#

confusion

#

what bindings?

vivid fulcrum
#

...

opal plank
#

now i know how it feels to be a newbie

vivid fulcrum
#

do you understand what a binding is

opal plank
#

absolutely not

vivid fulcrum
#

it binds a native library (in your case, opus) to your language incapable of interfacing binaries natively

stuck crag
#

does anyone knows way to fix installation of quick.db? :v

vivid fulcrum
opal plank
#

and how does that translate to what's going on?

vivid fulcrum
#

i just suggested to create your own bindings instead of using someone else's, probably garbage and abandoned, library

opal plank
#

i meaaan....

#

it does seem to be maintained at least

#

not sure about the garbage bit tho

vivid fulcrum
#

you can also just use djs opus bindings if you want

opal plank
#

how?

vivid fulcrum
#

...

#

are you on crack

opal plank
#

not yet

#

too early in the morning for that

vivid fulcrum
#

bro take a guess how

opal plank
# opal plank

this is exactly me trying to install both opus and djs opus

#

my only intuition would be : install it

#

but the whole error came from actually attemping to install it

#

so, yeah, bit confused lul

vivid fulcrum
#

which one

#

djs opus or

opal plank
#

second error is djs opus

#

which i assume would've installed everything it needs

vivid fulcrum
#

do you meet these conditions

opal plank
#

all matched

#

it shows in the log

vivid fulcrum
#

can you shove the full stacktrace in a bin

opal plank
#

sure can

#

trying a fresh install

vivid fulcrum
#

npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.5.0/opus-v0.5.0-node-v88-napi-v3-win32-x64-unknown-unknown.tar.gz

opal plank
#

-unknown-unknown

#

aparently its there though

vivid fulcrum
#

it isn't

#

notice the node ABI

opal plank
#

oh right

#

wait the heck?

cinder patio
#

Use an older node version

opal plank
#

v88 doesnt have a win version

vivid fulcrum
#

it should attempt to build manually if it doesn't find a prebuild

#

let me sniff through the logs a bit more

opal plank
#

alright

#

im completely blind here tbh

vivid fulcrum
#

im assuming you already have build tools installed

#

yeah?

opal plank
#

i think so yeah

vivid fulcrum
#

god these stacktraces suck ass

opal plank
#

im trying to dig thru them too