#development

1 messages · Page 1010 of 1

earnest phoenix
#

they reset

cobalt spruce
pure lion
#

Wdym they reset

earnest phoenix
#

@pure lion ??
@cobalt spruce *channels

cobalt spruce
#

i tryed@earnest phoenix

earnest phoenix
#

Wdym they reset
@pure lion they reset to git repo state

#

i tryed@earnest phoenix
@cobalt spruce well thats correct soo

pure lion
#

@cobalt spruce is that a console log channel?

solemn latch
#

If your on discordjs v12 you need cache after channels

#

channels.cache

cobalt spruce
#

@solemn latch ok

earnest phoenix
#

oof

#

shit forgot

#

about that

pure lion
#

@cobalt spruce is that a console log channel?
.

solemn latch
#

-dotpost @pure lion Kappa

pure lion
#

.

earnest phoenix
#

<client>.channels.cache.get(`7270844755231657289`)

cobalt spruce
#

@pure lion i used the general channel id to test

eager citrus
#

Anyone wana test my new bot

pure lion
#

Me

solemn latch
#

Asked in literally every channel

pure lion
#

@pure lion i used the general channel id to test
@cobalt spruce what general channel?

solemn latch
cobalt spruce
#

bruh

#

is this a joke

solemn latch
#

Message doesn't exist anymore

earnest phoenix
#

@quartz kindle ```js

let prefix; // define balnk variable with any name you want
let prefixes = await client.db.fetch(prefix_${message.guild.id});
if (prefixes == null) {
prefix = "d-"; // default prefix if no prefix set for this guild
} else {
prefix = prefixes;
}
if(message.content == "@void zenith")
{
message.channel.send(My prefix is \`+ prefix +`` for this guild!`)
};

i still need help with this thingy
how to make it work with my mongo db?
solemn latch
#

Because you changed it to channel

cobalt spruce
solemn latch
#

Save your file

earnest phoenix
#

try .send

cobalt spruce
#

it worked

solemn latch
#

Also, your pming the created channel, not the log channel

#

Or the one your getting

vivid ravine
#

how can i do setprefix command with quick.db?

solemn latch
#

@pure lion your assistance is required.

vivid ravine
#
const Discord = require(`discord.js`)
const db = require("quick.db")
const default_prefix = (";")
module.exports.run = async(bot, msg, args) => {

  if(!msg.member.hasPermission("ADMINISTRATOR")) {
    return msg.channel.send("You are not allowed or do not have permission to change prefix")
  }
  
  if(!args[0]) {
    return msg.channel.send("Please give the prefix that you want to set")
  } 
  
  if(args[1]) {
    return msg.channel.send("You can not set prefix a double argument")
  }
  
  if(args[0].length > 3) {
    return msg.channel.send("You can not send prefix more than 3 characters")
  }
  
  if(args.join("") === default_prefix) {
    db.delete(`prefix_${msg.guild.id}`)
   return await msg.channel.send("Reseted Prefix :white_check_mark:")
  }
  
  db.set(`prefix_${msg.guild.id}`, args[0])
await msg.channel.send(`Seted Bot Prefix to ${args[0]}`)
  
}
pure lion
#

Suppp

#

It's me

#

Quick.db

cobalt spruce
#

@pure lion bro i just wanted to make a log channel tells when i make a channel

#

my brain is my ass now

pure lion
#

@cobalt spruce ok that's easy lma9

solemn latch
#

Send the message to the channel you got

vivid ravine
#
const Discord = require(`discord.js`)
const db = require("quick.db")
const default_prefix = (";")
module.exports.run = async(bot, msg, args) => {

  if(!msg.member.hasPermission("ADMINISTRATOR")) {
    return msg.channel.send("You are not allowed or do not have permission to change prefix")
  }
  
  if(!args[0]) {
    return msg.channel.send("Please give the prefix that you want to set")
  } 
  
  if(args[1]) {
    return msg.channel.send("You can not set prefix a double argument")
  }
  
  if(args[0].length > 3) {
    return msg.channel.send("You can not send prefix more than 3 characters")
  }
  
  if(args.join("") === default_prefix) {
    db.delete(`prefix_${msg.guild.id}`)
   return await msg.channel.send("Reseted Prefix :white_check_mark:")
  }
  
  db.set(`prefix_${msg.guild.id}`, args[0])
await msg.channel.send(`Seted Bot Prefix to ${args[0]}`)
  
}

@vivid ravine thats my code

pure lion
#

@vivid ravine why are you limiting the length

vivid ravine
#

idk

pure lion
#

Don't

solemn latch
#

Some people like to set the prefix to your bots tag

pure lion
#

You could have a prefix like peepeepoopoo

vivid ravine
#

true

#

i changed it

#

but when i do prefix !

#

its says set the prefix to ;

#

but when i do help

#

with the new prefix

#

its not working

pure lion
#

Okay

#

@vivid ravine are you refining prefix everywhere it's called?

earnest phoenix
#

ping me if you have an answer

vivid ravine
#

@vivid ravine are you refining prefix everywhere it's called?
@pure lion sry my english is bad

pure lion
#

Oh god

vivid ravine
#

what

#

ah

#

how can i do that

#

is it not going automatically

#

@pure lion

cobalt spruce
#

@pure lion const channel = message.guild.channels.find(channel => channel.name === "general") if (!channel) return;
will this work

earnest phoenix
#

try it

solemn latch
#

Didn't you already get a channel in your earlier example?

cobalt spruce
#

@earnest phoenix FUCK YES MY FIRST SOLO SCRIPT

#

it worked BOIIIIIIIIIIIII

earnest phoenix
#

;-; basics

cobalt spruce
#

@earnest phoenix IDFC my first code

earnest phoenix
#

;-;

#

cool

#

thats what you get from knowing the basics

solemn latch
#

Bots are complex subjects, doing something on an event is about the simplest thing that happens in a bot.

A discord bot is a good third project maybe 4th

earnest phoenix
solemn latch
#

It would be better to start with things that build up skills imo

earnest phoenix
#

Somone please help me

regal raven
#

Python

When I try to do

@client.command()
async def translate(ctx, lang="en", *, args):
#translate with the lang in a way I am not gonna show you```

It shows a MissingRequiredArgument Error even though I said `lang = "en"`
lyric mountain
#

don't u need to give an output lang?

earnest phoenix
#

help!

(node:4) UnhandledPromiseRejectionWarning: TypeError: oldRole.hasPermission is not a function

regal raven
#

I do

#

But it shows lang is a argument that is missing

#

Idk why

lyric mountain
#

you're giving only one lang

#

where is the other?

regal raven
#

Oh I got it

#

Thanks for no reason 🙃

earnest phoenix
regal raven
#

I needed to use : instead of =

solemn latch
#

@earnest phoenix I dont think roles have hasPermission

#

Thats for members

#

^ where to get the methods for roles

regal raven
#

Still mot working 😭

earnest phoenix
#

@solemn latch oldRole.has() ?

regal raven
#

@slender thistle you there?

#

Is pinging someone for help not allowed?

solemn latch
#

Role.has doesn't exist either

regal raven
#

Lol

solemn latch
#

I suggest looking at the docs

#

They will tell you what does and doesn't exist

#

Instead of just shouting random things that could potentially exist

regal raven
#

Hmm

#

But

cobalt spruce
#

how i add permisions?

regal raven
#

HUGE

lyric mountain
#

that's a very poor excuse

#

someone had the work to write all that info in a clear way

cobalt spruce
#

@lyric mountain u talk like my dad

#

lmao

lyric mountain
#

it's the truth

solemn latch
#

Its also generally speaking your main resource

#

Whenever your working with anything, docs are resource #1

lyric mountain
#

#2 is google

solemn latch
#

Well, some people use Google to get the docs. So maybe Google is number one

cobalt spruce
#

forums are #0

solemn latch
#

Forums are generally last resort for me

cobalt spruce
#

lol

solemn latch
#

Solving something yourself is better long term.

earnest phoenix
#

guys how shall i use a embed message?

#

in discord.js

pure lion
#

Christ on a bike

#

@earnest phoenix docs

earnest phoenix
#

docs is helpless

pure lion
#

No

solemn latch
#

Whatcha mean

pure lion
#

It's not

earnest phoenix
#

it just shows message is not defined

pure lion
#

Go and read them again

cobalt spruce
#

@earnest phoenix
const exampleEmbed = new Discord.MessageEmbed()
channel.send(exampleEmbed);

solemn latch
#

Spoonfeeding

pure lion
#

@cobalt spruce we don't spoonfeed here

earnest phoenix
#

i see

cobalt spruce
#

@pure lion i cry

#

BRuh

regal raven
#

What is spoonfeeding?

lusty quest
#

@earnest phoenix i can link you a Tutorial in how to get a per server config with mongoDB

regal raven
#

Feeding with spoon?

#

Bot didn’t help

earnest phoenix
#

lol

lusty quest
#

spoonfeeding means giving someone entire commands as code as example

regal raven
#

Ooooh

earnest phoenix
#

spoonfeeding is helping someone by giving them everything without them doing any effort in doing it themselves

regal raven
#

Oooh

earnest phoenix
lofty lagoon
#

why do I have a Cannot read property 'send' of undefined" ```

module.exports = {
name: "reset",
description: "turn the bot off (OWNER ONLY dont try :))",
execute(message) {
const Discord = require('discord.js');
const client = new Discord.Client();
const { description } = require("./fkick");
const channel = client.channels.cache.get('706152605574889584');
if (message.author.id === '362991657236561923') {
// inside a command, event listener, etc.
const exampleEmbed = new Discord.MessageEmbed()
.setColor('##ff0000')
.setAuthor('astral status', 'https://cdn.discordapp.com/attachments/675371978386833428/704717055877972038/4a425077ed2809403254ffec40454752.png')
.setDescription('astral have been disconnect by an admin !')
.setTimestamp()
.setFooter('astral beta build', 'https://cdn.discordapp.com/avatars/674611545279299598/d0fa76ad86b1966a4a4995b49009bf3d.webp?size=128');
channel.send(exampleEmbed);
setTimeout(() => {
process.exit();
},5)
}
}
}```

#

everything is good

#

no?

slender thistle
#

@slender thistle you there?
@regal raven I was there but also not, is the issue still up?

earnest phoenix
#

how can define client as this.client lol

lofty lagoon
#

u talk to who?

lyric mountain
#

@lofty lagoon do the channel really exist?

lofty lagoon
#

yes

quartz kindle
#

@lofty lagoon you're creating a new discord client

#

ie, a new non-logged-in bot

lofty lagoon
#

o h

plucky harness
#

I imported data and it worked. But every query returns none even though there's data in the imported table? What can be the iseue

earnest phoenix
#

anyone :d?

slender thistle
#

well since I'm not getting a response I assume the issue was fixed

lofty lagoon
#

@lofty lagoon you're creating a new discord client
@quartz kindle so how I dont create a new client cuz I cant remove the new

earnest phoenix
#

it says message is not defined

#

how to fix it

solemn latch
#

Make sure message is defined

earnest phoenix
#

how tho?

solemn latch
#

Can't say without your code

eager citrus
#

I’m having trouble keeping my bot active

solemn latch
#

Is it just crashing? Or are you using a service like glitch?

earnest phoenix
#
Promise { <pending> }Logged in as PROBOT#4452!
/home/runner/QuestionableGrouchyModularity/index.js:15    channel.send(embed);    ^
ReferenceError: channel is not defined
    at Client.<anonymous> (/home/runner/QuestionableGrouchyModu
larity/index.js:15:5)
    at Client.emit (events.js:310:20)
    at Client.EventEmitter.emit (domain.js:482:12)
    at MessageCreateAction.handle (/home/runner/QuestionableGro
uchyModularity/node_modules/discord.js/src/client/actions/Messa
geCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (/home/runner/
QuestionableGrouchyModularity/node_modules/discord.js/src/clien
t/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/home/runner/Questionable
GrouchyModularity/node_modules/discord.js/src/client/websocket/
WebSocketManager.js:386:31)
    at WebSocketShard.onPacket (/home/runner/QuestionableGrouch
yModularity/node_modules/discord.js/src/client/websocket/WebSoc
ketShard.js:436:22)
    at WebSocketShard.onMessage (/home/runner/QuestionableGrouc
hyModularity/node_modules/discord.js/src/client/websocket/WebSo
cketShard.js:293:10)
    at WebSocket.onMessage (/home/runner/QuestionableGrouchyMod
ularity/node_modules/ws/lib/event-target.js:125:16)
    at WebSocket.emit (events.js:310:20)```
eager citrus
#

@solemn latch I’m using glitch

prime cliff
#

Channel is not defined

quartz kindle
#

@lofty lagoon you have to use the same client you already have. you can get it from message

solemn latch
#

Your error is channel not defined, not message @earnest phoenix

earnest phoenix
#

glitch banned all ping services

solemn latch
#

^

earnest phoenix
#

oh

#

how should i fix it

solemn latch
#

Glitch can't be used for 24/7 bots

quartz kindle
#

@lofty lagoon all discord.js structures have a link back to the client, including message, so for example message.client links back to your original client

solemn latch
#

Make sure channel is defined to the channel you are sending to @earnest phoenix

earnest phoenix
#

means?

prime cliff
#

Nice ads

earnest phoenix
#

nice try

solemn latch
#

@slender thistle

#

@earnest phoenix

slender thistle
#

oh hey

earnest phoenix
#

ban this faq

#

lol

prime cliff
#

Yea joao is just spamming ads

earnest phoenix
#

@solemn latch am sending it in a text channel

lofty lagoon
#

I dont understand where I put the message.client

eager citrus
solemn latch
#

@earnest phoenix if you want to send a message to the origin of message, its as simple as message.channel.send

earnest phoenix
#

thats the problem

solemn latch
#

@lofty lagoon top of the command

earnest phoenix
#

it says message not defined

solemn latch
#

It says channel is not defined

#

In the error you gave us

earnest phoenix
#
Promise { <pending> }
Logged in as PROBOT#4452!/home/runner/QuestionableGrouchyModularity/index.js:15    message.channel.send(embed);
    ^
ReferenceError: message is not defined
    at Client.<anonymous> (/home/runner/QuestionableGrouchyModu
larity/index.js:15:5)
    at Client.emit (events.js:310:20)
    at Client.EventEmitter.emit (domain.js:482:12)
    at MessageCreateAction.handle (/home/runner/QuestionableGro
uchyModularity/node_modules/discord.js/src/client/actions/Messa
geCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (/home/runner/
QuestionableGrouchyModularity/node_modules/discord.js/src/clien
t/websocket/handlers/MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (/home/runner/Questionable
GrouchyModularity/node_modules/discord.js/src/client/websocket/
WebSocketManager.js:386:31)
    at WebSocketShard.onPacket (/home/runner/QuestionableGrouch
yModularity/node_modules/discord.js/src/client/websocket/WebSoc
ketShard.js:436:22)
    at WebSocketShard.onMessage (/home/runner/QuestionableGrouc
hyModularity/node_modules/discord.js/src/client/websocket/WebSo
cketShard.js:293:10)
    at WebSocket.onMessage (/home/runner/QuestionableGrouchyMod
ularity/node_modules/ws/lib/event-target.js:125:16)```
cobalt spruce
#

@solemn latch .setFooter("Ahx", https://imgur.com/LIH0Ugx)
do i add icon to footer like this??

solemn latch
#

Okay, then we need to see your code to have any chance of helping for that one

#

Same as any other thing in an embed

earnest phoenix
#

its vulgar asf lemme change it

eager citrus
solemn latch
#

Embed.setFooter

cobalt spruce
#

@solemn latch yes

#

Embed

solemn latch
#

@eager citrus glitch charges $10 a month to do that, or change platforms

golden condor
#

@eager citrus don't use glitch

earnest phoenix
#

woo

solemn latch
#

Your message is defined as msg

golden condor
#

^

prime cliff
cobalt spruce
#

@earnest phoenix yup

#

msg

#

not message

earnest phoenix
#

it worked

eager citrus
#

What platform can I use on mobile

prime cliff
#

Learn to debug your code kthx

earnest phoenix
#

heroku?

#

i am using vultr

#

:)?

#

vps :d?

eager citrus
#

@earnest phoenix is it for mobile

cobalt spruce
#

@earnest phoenix heroku FREE

#

lol

solemn latch
#

Most anything you do on a desktop, can be done on mobile these days

earnest phoenix
#

nope

#

vultr is a paid vps for windows

solemn latch
#

Heroku says its platform isn't intended for discord bots. Expect them to do the same as glitch and ban bots from their platform if you dont pay money @cobalt spruce

earnest phoenix
#

French ?

lofty lagoon
#

@lofty lagoon top of the command
@solemn latch I use a module.export

solemn latch
#

Yeah

#

so put it at the top of the command

#

Where your command executes, at the top

lofty lagoon
#

but for the const client = new Discord.client

solemn latch
#

Don't use that

lofty lagoon
#

I just remove this

lyric mountain
#

heroku won't do a thing against bots, it's just so badly optimized for them that you'll be giving up on performance

#

also, unless you register a credit card, you'll have only 22 days of uptime

cobalt spruce
#

@solemn latch ikr

#

but i can host my bot there

solemn latch
#

Then your bot gets randomly taken down

#

And you gotta fix it while you lose users and servers

cobalt spruce
#

@solemn latch yes i tested and it didnt get down

lofty lagoon
#

ReferenceError: client is not defined

solemn latch
#

I mean I think they will disallow them

#

@lofty lagoon message.client

lofty lagoon
#
    name: "reset",
    description: "turn the bot off (OWNER ONLY dont try :))",
    execute(message) {
        message.client
        const Discord = require('discord.js');
        const { description } = require("./fkick");
const channel = client.channels.cache.get('706152605574889584');
        if (message.author.id === '362991657236561923') {
// inside a command, event listener, etc.
const exampleEmbed = new Discord.MessageEmbed()
    .setColor('##ff0000')
    .setAuthor('astral status', 'https://cdn.discordapp.com/attachments/675371978386833428/704717055877972038/4a425077ed2809403254ffec40454752.png')
    .setDescription('astral have been disconnect by an admin !')
    .setTimestamp()
    .setFooter('astral beta build', 'https://cdn.discordapp.com/avatars/674611545279299598/d0fa76ad86b1966a4a4995b49009bf3d.webp?size=128');

channel.send(exampleEmbed);
setTimeout(() => {
    process.exit();
},5)
    }

}
}```
#

I put it

pure lion
#

Suuuup

solemn latch
#

you need to set it as a const client

pure lion
#

Or bot

#

Bot is better

lofty lagoon
#

o h

pure lion
solemn latch
#

Or replace all client with message client

#

Bots just a bad way to do it imo

#

Theres already something called bot in the library

#

User.bot

#

Also, bot makes it sound like its the entire bot, which is only true until you start sharding

pure lion
#

Ok true

solemn latch
#

When your sharding, client is absolutely more accurate

pure lion
#

never gonna shard<

solemn latch
pure lion
#

bot too smol<

quartz kindle
#

the class name itself is Client

pure lion
#

^
But you can call it noopnoop

quartz kindle
#

yup, but the internal class name doesnt change, and its also standarized as client everywhere

#

for example, you can do bot.guilds but cant do message.bot, you have to do message.client

solemn latch
#

Which is confusing

pure lion
#

Oh yeah

#

edits the constructors in the package so it's always bot

quartz kindle
#

so yeah, its a matter of preference, but calling it client is the same as starting a new zelda game and naming your character "link", it even gives you bonus stuff for using the original name

lyric mountain
#

wait, does it?

runic solar
#

anyone know a proper way to build a jar file with maven

#

I've tried mvn install and when I run the jar file

#

it just does something not normal

pure lion
#

Jar = java?

lyric mountain
#

use ShadowJar

runic solar
#

haven't tried that

#

thanks kuuhaku

#

i'll come back here if it doesn't work

lyric mountain
#

shadowjar creates a "fat jar" containing all ur dependences and code

#

which is executable

runic solar
#

pog

#

I'll find out how to use it, thanks a lot mate

quartz kindle
#

aka, a jar of dirt

runic solar
#

call it what you like that's how I'm running my bot

#

lol

quartz kindle
#

xD

#

funny how mvn is the reverse nvm (node.js version manager)

earnest phoenix
#

java's package managing is a clusterfuck notlikethis

runic solar
#

yikes

pure lion
#

Jaja

runic solar
#

kuuhaku that looks like a gradle-only plugin

lyric mountain
#

meh

earnest phoenix
#

maven also has their own shade plugin iirc

runic solar
#

rly?

#

let me look a bit more

lyric mountain
#

just search "maven fat jar" and you'll get some options

earnest phoenix
runic solar
#

oh yes they do

#

yep I just found that link

lyric mountain
#

imho gradle is easier to use on bigger projects

earnest phoenix
#

i prefer maven

#

gradle is messy to me

lyric mountain
#

lol it's the exact oposit for me

earnest phoenix
#

it's just preference ig

#

i use dotnet which also has xml structure for project files

#

so i prefer maven because xml

lyric mountain
#

also, do you have any clue on how to publish a library to mavencentral?

earnest phoenix
#

no clue i never had to

runic solar
#

ah

#

fun

#

no main manifest

#

oh, even more fun

#

stack overflow has only answers that won't work

lapis bramble
#

how to edit my bot's site? (not edit)

pure lion
lapis bramble
#

yes

pure lion
runic solar
#

@lyric mountain have you ever had that issue with shade

#

where it makes a jar but then says there's no main manifest

lyric mountain
#

never used it, I use gradle for my projects

runic solar
#

F

lyric mountain
#

see if cry has experience with it

silent berry
#

what is the eval to fetch an invite from a server d.js v12

plucky harness
#

I imported data and it worked. But every query returns none even though there's data in the imported table? What can be the iseue

#

i think its actually importing data as wrong data type

#

in which encoding should i export it

eager citrus
#

How do you get the website id to make the bot

lyric mountain
#

website id?

eager citrus
#

Yes

earnest phoenix
#

i log my url for mongodb and it comes up with this auth: [Object],

#

so uuhh is my password not done correct?

eager citrus
#

How long does it take to be approved

earnest phoenix
#

?

eager citrus
#

Your own bot

earnest phoenix
#

like for top.gg or to be verfied?

eager citrus
#

Yes

#

Yes for top

earnest phoenix
#

uhh like 2 weeks

#

or smth

eager citrus
#

Holy

pure lion
#

2-3 weeks

eager citrus
#

Dam

silent berry
#

what is the eval to fetch an invite from a server and have it dm me the invite d.js v12

pure lion
#

Uh

eager citrus
#

Me?

silent berry
#

like if im in the server

pure lion
#

Look at the docs for the invite constructor

lyric mountain
#

remember that getting invites to a server you're not invited to is a serious privacy breach

pure lion
#

^^^ that too

silent berry
#

@lyric mountain well i need to check if a server a bot farm

pure lion
#

@silent berry eval msg.member.kick()

#

😄 👍

earnest phoenix
pure lion
#

@earnest phoenix it's finee

earnest phoenix
#

wdym

silent berry
pure lion
#

Ignore the warns

earnest phoenix
#

o

#

k

lyric mountain
#

just record command usage in a log, it'll became crystal clear whether it's a bot farm or not

opal plank
#

@silent berry i really dont think theres any way you can do that in a moral manor other than getting the owner tag and adding him as friend, then asking for permission. You can monitor the amount of commands coming from that server and blacklist your bot from there, but spying on a server that your bot is in is just absolutely immoral

#

its your bot, your service, you are allowed to blacklist servers from using it if you wish, if you have suspicion about people abusing your bot

silent berry
#

@opal plank i would log things but my bot runs on high memory usage for some odd reason. a friend said its bc i have too many console.log's

#

but ok thank you all

vivid ravine
#
const Discord = require(`discord.js`)
const db = require("quick.db")
const default_prefix = (";")
module.exports.run = async(bot, msg, args) => {

  if(!msg.member.hasPermission("ADMINISTRATOR")) {
    return msg.channel.send("You are not allowed or do not have permission to change prefix")
  }
  
  if(!args[0]) {
    return msg.channel.send("Please give the prefix that you want to set")
  } 
  
  if(args[1]) {
    return msg.channel.send("You can not set prefix a double argument")
  }
  
  if(args[0].length > 3) {
    return msg.channel.send("You can not send prefix more than 3 characters")
  }
  
  if(args.join("") === default_prefix) {
    db.delete(`prefix_${msg.guild.id}`)
   return await msg.channel.send("Reseted Prefix :white_check_mark:")
  }
  
  db.set(`prefix_${msg.guild.id}`, args[0])
await msg.channel.send(`Seted Bot Prefix to ${args[0]}`)
  
}
#

When i do prefix (the new prefix)

#

Then it send set the preifx to (the new prefix)

opal plank
#

how are you definding args?

vivid ravine
#

But when i do (the new prefix) help

#

Its not going

opal plank
#

args is usually defined AFTER you got the prefix

vivid ravine
#

So how can i fix it

opal plank
#

show args

pale vessel
#

default_prefix = (";") can you actually do that

opal plank
#

";" would be ideal

slender thistle
#

I believe it would run as just the string

opal plank
#

Usually you'd want something along those lines, but if you are ALREADY PASSING args onto the command, it wont matter if you are using it by default

#

you need to check prefix before you set args

pale vessel
#

so it's possible? bruh

opal plank
#

@vivid ravine

vivid ravine
#

So can you show me how to fix it

quartz kindle
#

you need to show your message event

#

where you check for prefix

opal plank
#

im assuming what he's got going on is the args being set on the message event, then passing args onto the module, then trying to check prefix there(which wont work cuz he already has args defined)

pale vessel
#

ok

quartz kindle
#

i copy-pasted your message in testing-2 and didnt get a dm

#

ah it was already kicked

opal plank
#

was about to say that

quartz kindle
#

mods be fast

opal plank
#

ikr, good shit

#

+rep

quartz kindle
#

wait the mod-log says it was dms on every message lmao

opal plank
#

ooof imagine the amount of complaints

#

i could delete my msg above, pinging a random mod, but then they'll have a ghostping, gonna leave it as is

quartz kindle
opal plank
#

hahahha lmao

#

true that, almost missed it

visual wave
#

uuEu

solemn latch
#

I want to store stuff like guild count, user count, number of recently run commands, and a handful of other things, over time(probably just because that data seems fun to look at)
Anyone got some ideas on that? I was looking at time series databases, and im not really sure what im looking for.

visual wave
#

bla bla bla

slender thistle
#

Ehh, any actual database should be fine if you implement caching as well

solemn latch
#

honestly, figured that was the case.
TSDB I would think wouldn't be too beneficial until hundreds of thousands of rows, which storing data every 30 minutes, ill never hit that

slender thistle
#

The way I used to store stuff is on event, I'd cache anything needed for the bot to function properly (guild settings like custom prefixes), that and the rest is saved in the database but isn't stored in memory

lofty lagoon
#

little question what is the function for check if the user have perms cuz I try to use (member.hasPermision('KICK_MEMBERS') but it's say this is not a function

opal plank
#

show full snippet

lofty lagoon
#

k wait

#

the script java module.exports = { name: "kick", execute( message, args) { const kick = message.mentions.members.first(); const member = message.author; if (member.hasPermision('KICK_MEMBERS')) { if (!args[0]) return message.reply("you need to tag a user to kick."); kick.kick(); message.channel.send (`I sucessfull kick ${member.tag}`) } }}

solemn latch
#

author is a user

#

not a member

opal plank
#

^^

#

message.guild.member iirc

solemn latch
#

you can just do message.member

#

actually

opal plank
#

ah, yes, that works

lofty lagoon
#

TypeError: message.member.hasPermision is not a function

solemn latch
#

looks like you might have spelt hasPermission wrong

lofty lagoon
#

oh

#

gotta try again

opal plank
#

im removing 5 internet points from myself for not seeing that typo

solemn latch
#

ngl

#

i had to double check i spelt mine right

lofty lagoon
#

TypeError: member.hasPermission is not a function

earnest phoenix
#
            let log = bot.guilds.channel.find(c => c.name == "logs")
#
"find" is undefiened
#

i wanted to get all channels has name logs and send msg to it

solemn latch
#

channels not channel

#

i think

opal plank
#

also isnt it get?

#

find is v11 if i recall

solemn latch
#

find is something separate i think

earnest phoenix
#

nah i tried

#

still not working

opal plank
#

guilds.channels btw?

#

bot.channels.cache

earnest phoenix
#

dude i tried

pale vessel
#

fun fact: get uses find

earnest phoenix
#

no

#

i am v11

opal plank
#

erm, update/

#

?

earnest phoenix
#

nope

solemn latch
#

you have to update to v12 soon anyway

earnest phoenix
#

if i use v12

pale vessel
#

you should update since v11 will stop working soon

earnest phoenix
#

wut

#

rly

#

why

solemn latch
#

yeah

pale vessel
#

mhmm

solemn latch
#

intents

opal plank
#

imagine not updating

earnest phoenix
#

Nooooooooooooo

#

nooooooooooooooooooooooooo

#

sad

opal plank
#

there is a guide showing how to update from v11 to v12

earnest phoenix
#

so i have to learn the v12

#

@opal plank wut rly

#

where

solemn latch
#

theres like 5 main diffrences

opal plank
solemn latch
#

and a handful of smaller ones

#

really, not much relearning

earnest phoenix
#

@pale vessel but how i can find all channels has name logs and send msg

#

🤔

opal plank
#

all inside guild or all in your cache?

earnest phoenix
#

wut

#

i dont understand

#
message.mentions.members.first().id
#

will this work in v12

#

?

#

?

surreal sage
#

Here's a global question that might come out true: Are you willing to find someone to make a software that will help you develop something? And what would you let that software do?

solemn latch
#

yeah @earnest phoenix

opal plank
#

what?

earnest phoenix
#

ok

opal plank
#

@surreal sage what you on about?

solemn latch
#

a program that helps me do dev work?

surreal sage
#

@surreal sage what you on about?
@opal plank suggestion for a app

opal plank
#

i already have vsc, not much else i need

solemn latch
#

if there was a plugin for VSC that would take me to the docs page for specific text

earnest phoenix
#
bot.channels.cache.get("716995043323412562")
solemn latch
#

that would be amazing

earnest phoenix
#

this is v12 right ?

surreal sage
#

if there was a plugin for VSC that would take me to the docs page for specific text
@solemn latch no

#

exstensions

#

that aint a app lol

#

wait a npm package alr lol

opal plank
#

@earnest phoenix that get that channel, indeed

#

i still dont know what dev is on about

earnest phoenix
#

that get that channel.

#

wut

#

i dont understand

surreal sage
#

nvm lol

solemn latch
#

gets the channel with that id

opal plank
#

basically, yes @earnest phoenix

earnest phoenix
#

yes

opal plank
#

though prob not what you looking for

earnest phoenix
#

so it will work

opal plank
#

cuz you want name match

#

not id match

#

you could loop cache and get channel name for matching

earnest phoenix
#
TypeError: RichEmbed is not a constructor
#

wut

#

is that mean

#

why

solemn latch
#

richembed was replaced

earnest phoenix
#
const {RichEmbed} = require("discord.js");
opal plank
#

Discord.MessageEmbed()

solemn latch
#

by messageembed

earnest phoenix
#

oh

#

oh

#

ono

solemn latch
#

its on the changes page

#

🤔

#

you dont need to go through each error with us, its explained on the page you where given

opal plank
obtuse jolt
#

how can I turn a json response into something users can understand

opal plank
#

every error you get, just search in oage

#

page*

#

parse it @obtuse jolt ?

obtuse jolt
#

wat

opal plank
#

parse

earnest phoenix
#

gusy i need

#

help

#

how i can find all word RichEmbed in a folder and replace it

#

in vscode

opal plank
#

ctrl + f

solemn latch
#

VSC?

obtuse jolt
opal plank
#

you cant do on folder i dont think though

solemn latch
#

you can find all instances in all of your code with the search bar

opal plank
#

parse it @obtuse jolt

solemn latch
#

the magnifying glass

obtuse jolt
#

i did but the ammount of data changed every time

#

so i cant just

#

display it perm

#

it changed

solemn latch
#

parsing is not hardcoding

#

🤔

opal plank
#

check if property is there, then parse it if it is

solemn latch
#

parsing means pretty much means get things from other things in an organized way.

opal plank
#

i dont see the issue

obtuse jolt
#

how is { name: 'John', birth: '1986-12-14', city: 'New York' }

#

this

#

Botvrij.eu - detected: false - result: clean site

next one

next one

opal plank
#

PARSE IT

obtuse jolt
#

THAT IS PARSED

opal plank
#
description: `
obj.name
obj.birth
obj.city
`
])```
obtuse jolt
#

yes i could do that for all 79 of the things but sometimes is 60 sometimes its 80

#

it keeps changine

opal plank
#

IF

#

if(exists) push finalobj

#

then parse it

obtuse jolt
#

but idk what they are all called

opal plank
#

bruh

earnest phoenix
#

what is .addField in v12

solemn latch
#

.addField

earnest phoenix
#

uhm

#

wut

#
                .addField("Content: ", text)
#

then what is the problem

solemn latch
#

nothing

#

🤔

earnest phoenix
#

TypeError: fields.flat is not a function

#

look

obtuse jolt
earnest phoenix
#
TypeError: fields.flat is not a function
opal plank
#

Parsing Phase and post phase
in parsing you get all the properties of your JSON response and then organize them into an obj to be used on the post phase
on the post phase, you already have the obj arranged nicely to be sent, but its an object, so you parse it to be send
@obtuse jolt

solemn latch
#

fields.flat isnt the code you just gave us

#

you gave us .addField

obtuse jolt
#

is there not a way to go through each entry and do it

eager citrus
#

Does anyone know how to make there bot online 24/7

solemn latch
#

foreach

#

🤔

obtuse jolt
#

dude

blazing portal
#

buy a VPS @eager citrus

obtuse jolt
#

forEach isnt a thing in json

#

ngl

eager citrus
#

What’s that

earnest phoenix
solemn latch
#

oh you want an object

eager citrus
#

What’s a vps

solemn latch
#

for(key in object)

opal plank
#

^^

blazing portal
#

Virtual Private Server

earnest phoenix
#

line 28

eager citrus
#

Oh

earnest phoenix
#

@solemn latch

solemn latch
#

give the entire error

earnest phoenix
#

ok

blazing portal
#

can you show a little more

opal plank
#

the fact that they use strings there

earnest phoenix
opal plank
#

as properties

blazing portal
#

now show where you have the error. and please more than 1 line

vernal vapor
#

How do i remotely access postgre sql

earnest phoenix
#

with .addfield

#

or fields

#

smh

#

i hate v12

#

i want to go back with v11

#

smh

solemn latch
#

honestly, i dont think dev work is for you if you dont like breaking library changes

#

they are very common, and its your job to maintain them

#

🤔

earnest phoenix
#

ok ok

#

relax

#

but what is the problem

#

@solemn latch ?

solemn latch
#

oop

#

.addfield if its just one

wet ferry
#

any1 know how to get the shard ID of the client in v12?

umbral raptor
wet ferry
#

thx

umbral raptor
#

NP mate

errant perch
#

how do i get system time in discord.js

pure saddle
#

.some is not a function

#

v12

#

i look at docs but dont see anything

errant perch
#

nvm i got it

solemn latch
#

some is something in javascript

#

its not a feature of discordjs, so it wouldnt be in the docs

pure saddle
#

oh i find it

#

nvm

split hazel
pure lion
#

Okay

errant perch
#

could i slice more than 1 value out of a string?

earnest phoenix
#

Is there a possible module/package or api that i can use to check if an image includes a specific image?

#

@errant perch yea

errant perch
#

how

earnest phoenix
#

You mean like how exactly, define what you said tho

spare mirage
#

args[2] you mean?

errant perch
#

how do slice 2 instead of 1

#

yes

earnest phoenix
#

slice(2) ?

spare mirage
#

read the docs :P

#

noo agrs

errant perch
#

lit

earnest phoenix
#

Or <args>.slice(2)

#

Idk which one you want to use

errant perch
#

args.slice(2)

spare mirage
#

yes

errant perch
#

ok lit

earnest phoenix
#

Is there a possible module/package or api that i can use to check if an image includes a specific image?
Ideas?

spare mirage
#

no I dont think so

#

I know some apis that are able to search iamges from google

solemn latch
#

@earnest phoenix

earnest phoenix
#

Oh thanks i'll look into it

solemn latch
#

🤔

#

yikes

earnest phoenix
#

Wtf

#

Fuck go back

solemn latch
#

reverse image search is expensive

#

just like photo to text is expensive

#

might be able to get something cheaper with google, but it still wont be free

placid iron
#

hey guys. do any of you know how to upload an image from my pc to a discord embed (discord.py) i know i can use a URL but that is the problem as i have the image on my pc

solemn latch
#

shouldnt the image be on your bots server

#

🤔

placid iron
#

i generate it in code

solemn latch
#

you could make a webserver on your pc to host it.
or make the code you generate it on run on the same server as your bot

placid iron
#

@unique nimbus you are a god

#

thank you

unique nimbus
#

I mean it was in the documentations

placid iron
#

i looked

#

but not in faq

#

;-;

#

i even googled

#

didnt come up anywhere

unique nimbus
placid iron
#

f

#

oh well

hidden lynx
#

Does anybody have experience with playing Spotify songs with ytdl-code (discord js)? Because I have literally no idea how to do that. I have implemented the web api from npm. But how do I play the link?

earnest phoenix
#

you're not allowed to

hidden lynx
#

Lol what?

#

For real?

earnest phoenix
#

that is breaking the spotify TOS

#

yes

#

discord send my message

unique nimbus
#

I mean you can get the name of the songs and then use YouTube to find and play

silent berry
#

what is wrong with this?

message.guild.fetchInvites('702261250603745358').then(() => { helium.users.cache.get('550170362248429568').send(invite.code) })
earnest phoenix
#

i don't know you tell me

hidden lynx
#

Yeah I mean using Google is ez

#

But playing Spotify links yk

unique nimbus
#

also technically its against YouTube TOS to download videos most likely

earnest phoenix
#

spotify does not allow restreaming to other platforms

hidden lynx
#

How come that there are bots that are able to play songs from Spotify?

earnest phoenix
#

they don't

unique nimbus
#

oh

#

I mean with consent its okay

earnest phoenix
#

they take the song name and do a youtube lookup

unique nimbus
#

yes

hidden lynx
#

How can you take the song names out of a URL 😕

earnest phoenix
#

I mean with consent its okay
no lol, spotify does not allow restreaming of any kind

unique nimbus
#

I am talking about YouTube

#

lmao

earnest phoenix
#

scraping

#

oh my bad

unique nimbus
#

ye

hidden lynx
#

Trash Spotify xD

#

Didn't expect that hahah

quaint hornet
#

If you want to search on yt use ytsl api

unique nimbus
#

they already know that

hidden lynx
#

Yeah ik ik

#

I was just wondering about actual urls

earnest phoenix
#

tldr none of the bots actually play music from spotify, they scrape the spotify page to get the artist name and song and then do a youtube lookup instead

unique nimbus
#

I know there is a library for Python which can get the songs names from URL and store it in a txt

#

ye

hidden lynx
#

I might be able to use the spotify api to get the song name from the URL and then search on yt

#

If I have understood you correctly this might be the only way of doing it right?

earnest phoenix
#

i doubt you need to use the spotify api

#

you can just scrape the url directly

hidden lynx
#

No I don't think that's possible

#

They use codes and ids for the songs not the names

earnest phoenix
#

uh

#

what

hidden lynx
#

Yeah I mean look at a Spotify link

earnest phoenix
#

it's very much possible

hidden lynx
#

Just a bunch of numbers

earnest phoenix
#

i don't think you understand what scraping means

hidden lynx
#

That may be true as well xD

earnest phoenix
#

scraping is making a request to the url and the parsing the html content to get what you need

small prairie
#

Since sql only allows flat values i cant save array in it
Im thinking of storing something as a string for example
blabla blablabla bla b l a

This basically would be then .split(" ") into 6 items
So what my question is
Is there any limit of characters in a string in SQL or Nodejs

And is this Efficient?

earnest phoenix
#

hence "scraping"

hidden lynx
#

Looool

#

That's next level shit

#

I gotta read me into that

#

Is that efficient tho? Cause it can crash everything by just changing their html on the website

small prairie
#

just started better-sqlite3 a while ago

earnest phoenix
#

Since sql only allows flat values i cant save array in it
Im thinking of storing something as a string for example
blabla blablabla bla b l a

This basically would be then .split(" ") into 6 items
So what my question is
Is there any limit of characters in a string in SQL or Nodejs

And is this Efficient?
@small prairie
there's always a limit to everything, however that limit is huge. the limit is as much memory can be allocated to the string, and yeah, it's common practice to split

#

Is that efficient tho? Cause it can crash everything by just changing their html on the website
@hidden lynx
crash?
and i mean yeah, if you write good code for it scraping can take under 200ms

small prairie
#

I mean im doing it for a private bot which has like lets say 170k members
Lets say if i wanna store all of their ID's
Will that hit limit?

earnest phoenix
#

why do you want to store all of the ids

hidden lynx
#

I don't

earnest phoenix
#

im not talking to you

#

lol

small prairie
#

Im just giving the worst case scenario

hidden lynx
#

Sorry lol

small prairie
#

if somehow everyone does something and it has to stored

#

i know i wont even get like 2k ID's to store

#

Just curious......

earnest phoenix
#

the limits are exponentially huge

small prairie
#

The limits depend on the ram or something else?

earnest phoenix
#

on the ram, yeah

#

but considering a string can take just a few merely bytes of memory that's nothing

hidden lynx
#

Well anyways thanks a lot for helping out bro! I would have wasted hours on finding a way of how to include Spotify

small prairie
#

i have like 2gb ram
so Well i wont be even close to hitting limit

#

Thanks mate

pure lion
#
          case'resume':
            if (!msg.member.voice.channel) {
              return msg.channel.send('You need to be in a voice channel to pause the music')
            } else if (!serverQueue) {
              return msg.channel.send('There is nothing playing in that channel')
            } else if (serverQueue.playing == true) {
              return msg.channel.send('The music isn\'t paused')
            } else {
              serverQueue.playing == true
              serverQueue.connection.dispatcher.resume()
              return msg.channel.send(`${msg.author.username} paused the music`)
            }
            break; 

resume command not working

#

nvm fixed it my bad

atomic quarry
#

Ok, so my bot keeps sending "Status Code 429"

pure lion
#

code/line/lib

atomic quarry
#

That's the problem I looked through my whole code and there was nothing with error 429

#
BOT
Today at 4:46 PM
@ZWrld#3499, Status code: 429```
earnest phoenix
#

429 is the too many requests status code

#

you're being ratelimited

#

from whatever you're trying to do

atomic quarry
#

So what am I supposed to do?

earnest phoenix
#

sit and wait

#

and possibly have a breakdown while doing so

atomic quarry
#

dang it

quartz kindle
#

figure out where is that status code coming from, what is logging it

atomic quarry
#

Well it keeps saying that after I do the command ..play

quartz kindle
#

so check your play command, all lines where you log something

#

which lang/lib btw?

atomic quarry
#

node.js discord.js

quartz kindle
#

are you listening to the rateLimit event?

#

client.on("rateLimit",console.log)

#

but that status code doesnt look related to discord

#

it might be coming from whatever audio library you're using and the audio sources you're using

atomic quarry
#

I'm not using a rateLimit event

#

@quartz kindle Could it be an error from an api?

quartz kindle
#

most likely

#

are you logging/catching api errors?

atomic quarry
#
Error: Status code: 429
    at ClientRequest.<anonymous> (/rbd/pnpm-volume/3b5f9c99-2ab5-49f0-a1fc-f120a96885d4/node_modules/.registry.npmjs.org/miniget/2.0.1/node_modules/miniget/dist/index.js:150:31)
    at Object.onceWrapper (events.js:284:20)
    at ClientRequest.emit (events.js:196:13)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:565:23)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:116:17)
    at TLSSocket.socketOnData (_http_client.js:452:22)
    at TLSSocket.emit (events.js:196:13)
    at addChunk (_stream_readable.js:290:12)
    at readableAddChunk (_stream_readable.js:271:11)
    at TLSSocket.Readable.push (_stream_readable.js:226:10)
quartz kindle
#

are you using miniget in your code?

atomic quarry
#

Not that I know of

quartz kindle
#

then one of your packages is using it

#

check all your packages that make http requests, such as api packages, etc

atomic quarry
#

Ok,

pure lion
#

Anyone need help?

atomic quarry
#

simple-youtube-api

fickle anvil
#

I have created a super simple DM fetcher for my Bot but it won't use added pictures. Can someone point me in the right direction?

.addField('DM Content', message.content)```

Doing it in an embed.
earnest phoenix
#

What :d?

fickle anvil
#

I am fetching the DMs people send to my bot and forward them to me. But if someone adds an image, it does not get forwarded too

earnest phoenix
#

message.attachments.first() ? message.attachments.first().url : message.content

#

message content does not include attachments

#

don't spoonfeed code

#

that's also probably not what they want

fickle anvil
#

don't spoonfeed code
@earnest phoenix then point me in the right direction maybe ? Just screaming like "don't help" doesn't help too

earnest phoenix
#

what

#

Lol

fickle anvil
#

but message.attachments seems to be the thing I needed. thx

earnest phoenix
#

np 👌

unique nimbus
#

Now did you define content

#

oh

pure lion
#

Jsjsjsjjs

tepid finch
#

the fuck

pure lion
#

the fuck

hushed jungle
#

huh

pure lion
#

Need help?

charred sundial
#

npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token “ in JSON at position 3 while parsing near '{
npm ERR! JSON.parse “name”: “aSingleCell...'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.

I keep getting this when first trying to set up the npm install discord.io winston –save in CMD. Kinda lost now

pure lion
#

Hmmmm

quartz kindle
#

wrong quotes. you're using which is not valid in programming, you have to use "

pure lion
#

It's time to learn from Tim 👀 uwu

charred sundial
#

huh

#

alright I'll change those

#

2 or one?

#

'

#

''

fickle anvil
#

" <--

quartz kindle
#

double quotes for json

#

in js both work

#

but json is stricter

pure lion
#

What's the difference between ' and " in json?

quartz kindle
#

single quotes dont work in json

pure lion
#

Any use at all?

quartz kindle
#

you can use them as text if you want lol

#

as an apostrophe

pure lion
#

Ah

hushed jungle
#

Epic

quartz kindle
charred sundial
#

hey it worked

quartz kindle
#

@charred sundial btw

#

you're using a very old and outdated guide

charred sundial
#

seems like it

quartz kindle
#

which sadly is still on the top of google results and has not been taken down for some reason

#

someone should delete that lol

charred sundial
#

does it still work fine?

quartz kindle
#

nope

charred sundial
#

or should I reset

#

oof

quartz kindle
#

discord.io is not maintained and afaik doesnt even work anymore

charred sundial
#

sooo

quartz kindle
#

use either discord.js or eris

charred sundial
#

so same command just discord.js ?

quartz kindle
#

discord.js has a beautiful guide, and huge community, eris is less user friendly and more for advanced usage

charred sundial
#

I like the user friendly option

#

lmao

quartz kindle
charred sundial
#

gotcha

#

best way to install all this garbage then?

honest perch
#

Discordjs is greate for noobs like me

quartz kindle
#

yup, remove all that garbage

charred sundial
#

best option?

honest perch
#

npm I discord.js

charred sundial
#

or is simply removing an app enough

hushed jungle
#

Why do people use the i in npm

honest perch
quartz kindle
#

you can simply delete your node_modules folder

hushed jungle
#

npm discord.js works fine right

quartz kindle
#

and remove the dependencies from your package.json

honest perch
#

Because I is shorter than install

#

Duh

hushed jungle
#

0_o

#

A world has been opened for me

honest perch
#

I've experimened with eris but it isn't as documented

quartz kindle
#

npm i is a shortcut for npm install

#

npm discord.js doesnt do anything on its own

#

it needs either i or install

hushed jungle
#

Great I typed it wrong

quartz kindle
#

or whatever other command you want it to do

honest perch
#

Eris doesn't even have nice embed thingies

#

Like discordjs does

hushed jungle
#

i does save a few keystrokes I guess instead of using install

quartz kindle
#

i still use install myself lmao

hushed jungle
#

Since I am here I ran into an issue, locally when I use erlpack everything is fine, I tried it on my host and it gave me a bunch of errors

honest perch
#

Well Tim is noob

hushed jungle
#

I will send screenshot

quartz kindle
#

erlpack is a native c++ lib, it may require some build tools

hushed jungle
#

But it worked fine on my local device

#

I wanted to try it to optimize my bot

quartz kindle
#

is there any more info above that?

hushed jungle
#

node-gyp rebuild

quartz kindle
#

thats all?

#

there should be a big block of stuff

hushed jungle
#

Well there is other stuff but I am not sure if it's safe to show that information

#

Since it gives away my server structure

#

I mean probably safe but I like to be careful

quartz kindle
#

you can dm me the pic if you prefer lol

hushed jungle
#

sent

quartz kindle
#

is that running on docker or what

hushed jungle
#

I am using a shared webhost

#

This is the SSH client

#

So I have restrictions, could be a permission issue

#

It's not a VPS but it's better than Glitch

charred sundial
#

ima sound stupid real quick

#

what do I put for entry point

#

oh

hushed jungle
#

I guess your main file?

charred sundial
#

bot.js

#

😉

hushed jungle
#

Yes

charred sundial
#

right?

#

okay

#

I remembered

hushed jungle
#

I use main.js personally but that's a preference

lethal pike
#

So I have restrictions, could be a permission issue
Ye

#

It's a permission issue alright

charred sundial
#

test command?

hushed jungle
#

Alright guess I will have to do without it then

quartz kindle
#

@hushed jungle that might be a problem. it seems there is a single node.js installation being used for the entire machine and shared across all users. im not sure how to approach this, you could try asking the host owners/support

hushed jungle
#

Yeah I was actually surprised that they even allow node.js on a shared environment

quartz kindle
#

its a webhost right? webhosts usually dont give you root access nor give you node lol

hushed jungle
#

It's a shared hosting

#

I can also do python applications

#

But haven't tested that yet

quartz kindle
#

well, i'd ask their support

#

if all else fails, you could cross-build Lol

hushed jungle
#

Cross-build?

quartz kindle
#

create a virtual machine and install the exact same linux version there, install erlpack there, then copy and upload the installed erlpack folder to your node_modules folder

#

lmao

hushed jungle
#

Nice.

#

I could zip the node-modules on my PC and then upload it to my host

#

Would that do the same?

quartz kindle
#

is your pc linux?

hushed jungle
#

No I am running windows

#

Does that make a difference in node_modules?

quartz kindle
#

then it wont work

hushed jungle
#

I have an ubuntu terminal app

#

But that's about it

quartz kindle
#

because erlpack is a native c++ language, its not javascript

charred sundial
#

what do I put for test command? haven't heard of that before

hushed jungle
#

I kept it empty

quartz kindle
#

when you install it, it is built and compiled for the machine where you installed it

#

you cannot port it to another machine, unless both machines are running the same environment

hushed jungle
#

I will keep the option in mind if support can't help

quartz kindle
#

windows builds are not compatible with linux builds, the same way windows software doesnt run on linux

charred sundial
#

git repository?

hushed jungle
#

I think they will just refer me to their VPS package though

#

Your github/gitlab

#

If you have one

charred sundial
#

I don't

hushed jungle
#

Then skip

quartz kindle
#

usually a generic linux should be enough

hushed jungle
#

Yay I forgot my Ubuntu password

#

Nevermind just remembered it

quartz kindle
#

try running lsb_release -a in your ssh

hushed jungle
#

Going to install node and see what I can do

#

Command not found

quartz kindle
#

what about uname -mrs

hushed jungle
#

It gives Linux and then something

#

2.6.32

quartz kindle
#

dafuq

hushed jungle
#

Linux 2.6.32-954.3.5.lve1.4.71.el6.x86_64 x86_64

#

I forgot I can copy paste ssh

charred sundial
#

is a linter needed?

#

or recommended?

hushed jungle
#

I try installing the package but is it unable to locate the package?

quartz kindle
#

that linux version looks like cent-os / red hat

hushed jungle
#

I have node on my linux now yes

#

Just need to find where my linux put it's files

quartz kindle
#

idk that kernel version is old af, whats your ubuntu's kernel version?

#

run the uname command on your ubuntu

hushed jungle
#

It just says linux

quartz kindle
#

@charred sundial linter is not needed, and its complicated to set up

hushed jungle
#

I am using a windows 10 app

#

Since I did not feel like running a heavy VM

charred sundial
#

gotcha

hushed jungle
#

It's only terminal

quartz kindle
#

then it wont work

hushed jungle
#

I thought linux is linux 😦

quartz kindle
#

is it that linux environment for windows thingy?

#

you can try, but im pretty sure it wont work

hushed jungle
#

I think

#

I already got node running on it

#

So I will try installing the package