#development

1 messages · Page 1368 of 1

boreal iron
#

Simply doesn’t work

#

That’s not the fault of PHP it’s just NOT supposed to do so

#

@quartz kindle anyways ty
Im gonna write the code at the weekend and will head back to u if I still have an issue with async in this case

quartz kindle
#

👍

boreal iron
#

Have a good one

opal plank
#

bruh i swear....

#

OOOOH

#

THAT might be the culprit

#

wait

#

what

#

that makes no sense

quartz kindle
#

erwin had an epiphany

opal plank
#

hmmm

#

bruh i had streamer mode on

#

think that'd effect how the presences are updated?

#

the payload still the same, just wondering about the frequency

#

normally its one update per 15 seconds as ratelimit, no?

quartz kindle
#

no idea

opal plank
#

hmmmmm

#

if tim doesnt know, this is a lost cause

#

of well, deal with the bugs users

#

¯_(ツ)_/¯

#

tis a feature, not a bug*

boreal iron
#

@quartz kindle Just one idea before I go tho...
Instead of processing the message if the regex pattern matched, how about POSTING the message via axios or whatever lib to my PHP worker.
That should be async

opal plank
#

dont

#

tim dont

#

tim bout to badmouth axios again

#

i feel it

quartz kindle
#

thats the way to go if you expect you workload to be more than a single node process can handle

boreal iron
#

„Whatever lib“

quartz kindle
#

alternatively you can send it to child/worker processes within node itself

#

thats basically how you multithread with node

opal plank
#

slave/sleeve process

boreal iron
#

Hmm that would be new for me but probably worth a test

#

Anyway it would be async as mentioned, aye?

quartz kindle
#

yes

opal plank
#

for your own sanity, if you gonna cluster stuff use nodes clutering or something like kubernetes, dont go the rabbit hole i did

boreal iron
#

I mean that would reduce the work to port the code over to JS

quartz kindle
#

there are so many ways to scale horizontally in node that its kinda stupid

boreal iron
#

is or it’s

#

?

quartz kindle
#

the easiest way would be to use node's built in cluster module, because it creates child processes that can share a single port

opal plank
#

^^

quartz kindle
#

if your app relies on listening to a port that is

boreal iron
#

Yeah I got that but it would require to rewrite the whole code in JS again

quartz kindle
#

just rewrite your code 10 times

#

:D

boreal iron
#

Err lol I meant to port over to JS to port as port lmao

quartz kindle
#

ah lmfao

boreal iron
#

Like changing over to JS

quartz kindle
#

if you're using something like nginx and a node reverse proxy, then you can also cluster through nginx lmao

boreal iron
#

Probably not the best English I know

quartz kindle
#

port the port to make it a portable port

#

while the ship docks in the port

boreal iron
#

Imagine handling 100 of messages each second POSTING the msg to my PHP file...
The webserver log will probably explode

quartz kindle
#

xD

boreal iron
#

Damn I guess I need to rewrite the whole thing in JS

#

Until now I was only speaking about one node process handling one remote connection only
The goal are multiple opened connections all dealing with those incoming messages, too

#

Like sharding for Discord bots

#

Will be required I guess

#

oof that’s a lot of work...

cerulean ingot
#

any other python devs here

earnest phoenix
#

Imagine if mods decide to delete the development channel then you realize tim is angry, you know shit is serious

quartz kindle
#

lmao

#

i wont be angry

#

i'll just spend more time being actually productive

#

and people will flood my server

#

xD

boreal iron
#

He would probably have more time to spend on porn for example (each day) lmao ... or being „productive“ hehe

#

Aye same idea tho

quartz kindle
#

Lmao

#

I do procrastinate way too much

#

All i did today was play games and be here

boreal iron
#

Well that’s how life actually is

#

I‘m driving atm and should probably watch the highway but I’m alone so I’m good to go

#

lmao

solemn latch
#

bots are no longer added to this server

earnest phoenix
#

How long do you drive each day?
FaKe: yes

boreal iron
#

Err just a few hours... 3-4 depends on the day

earnest phoenix
#

Everytime you're here you say "I'm driving atm"

solemn latch
#

@flat pelican

earnest phoenix
#

Instagram more like cringe

quartz kindle
#

Lol

boreal iron
#

Nah... when talking to Tim 30 mins ago I still was at home, then startet

#

lmao

flat pelican
#

thanks

boreal iron
#

Wait until the messages being deleted

flat pelican
#

Discord please

boreal iron
#

Voltrex answer will get a new meaning

quartz kindle
#

Lol

flat pelican
#

I banned them with "Clear messages" enabled

earnest phoenix
#

His messages will be deleted when cyberpunk 2077 releases

boreal iron
quartz kindle
#

Discord pls

flat pelican
#

let's retry...

#

-ub 640258448688414744

gilded plankBOT
#

🔓 Unbanned Kinez#4136 (@frozen sentinel)

flat pelican
#

nope bruh

quartz kindle
#

Rip

flat pelican
#

alright, i'll do it manually

earnest phoenix
#

Just run a loop with luca

quartz kindle
#

Wait

solemn latch
#

kek, sorry you where the one that got tagged, shoulda tagged someone else KEKW

tacit sundial
#

does someone know why images are loading slow for me?

quartz kindle
#

They all got deleted at once suddenly

boreal iron
#

Does this mean it’s a good time to start spam now? 💩

tacit sundial
#

My bot sends a reddit image but it takes like 1 min to load

#

is that discord or reddit?

solemn latch
#

could be either

earnest phoenix
#

It's just your internet connection speed that is slower than the fps rate of yandere simulator

solemn latch
#

could be your connection too

tacit sundial
#

hmm

boreal iron
flat pelican
#

kek, sorry you where the one that got tagged, shoulda tagged someone else KEKW
@solemn latch why tho, I'm fine with getting pinged for useful purposes lol, it's my job to keep the server clean

earnest phoenix
#

Bruh it was for the guy who was spamming, oof

quartz kindle
#

xD

solemn latch
#

oh i was joking :d

quartz kindle
#

Alreayd knew that ws coming

boreal iron
#

No no... no excuses Voltrex

#

Got u

#

Don’t see any spam above

earnest phoenix
#

He got me with the oldest tricks in the book

tacit sundial
#

can I post a reddit image to see if its loading faster here for you guys

earnest phoenix
#

Lemme just commit delete message

boreal iron
#

Oh no

#

That destroys the context

earnest phoenix
#

Ha gottem

boreal iron
#

Oof damn

quartz kindle
#

Rip context

boreal iron
#

Wasn’t prepared for

earnest phoenix
#

Context goes undefined

boreal iron
#

Now I’m gonna hit a tree lmao

#

Unfortunately their actual count on highways are 0

rose warren
#

how can i host my bot?
@covert gale with a vps

opal plank
#

or selfhost

earnest phoenix
#

Change that to 0 / 1, you can go to the speed of light

boreal iron
#

Unfortunately I have mass so I can’t

earnest phoenix
#

Use a VPS

#

The best one to go for is glitch if you want free hosting

misty sigil
#

pins

#

please

#

read the pins

solemn latch
#

i was joking when i said glitch

#

its against tos to use bots now on glitch.

#

unless you pay for the 24/7 service

#

which is overpriced

normal sage
#

anyone know how to transfer mee6 levels to another bot?

solemn latch
#

that sounds like a nightmare

normal sage
#

ive seen servers do it before

solemn latch
#

if you mean from mee6 to your bot. you could possibly do a webrequest

#

grab all the users

#

might be against mee6 tos

normal sage
#

there is a mee6 level api though

solemn latch
#

ah

#

then just fetch it from the api

rose warren
#

@normal sage you can get the levels using the api but whether or not you can transfer those points to another bot depends on the bot you're trying to transfer to. Easiest way would be to transfer to your own bot.

normal sage
#

Ah okay.

#

I'm trying to make level roles lol

rose warren
#

With mee6?

normal sage
#

Mhm

#

I don't want to use a different bot.

rose warren
#

Yeah making your own bot would be the only option I think

normal sage
#

I mean I don't wanna use a different bot that has leveling stuff lol

rose warren
#

Yeah

normal sage
#

I wanna transfer the mee6 level data to my bot.

rose warren
#

Ah

#

Yeah just use the api to grab it and store it in your db

normal sage
#

okay

blissful coral
#

Mee6 has a public api? @rose warren

rose warren
#

I don't know this guy says he found one 😂 I don't know if it'll work for him

blissful coral
#

Yeah not going to lmao

#

Just gonna be like "send your client object through the api" 5 seconds later your token gets yoinked and bye bye servers

slim umbra
#

yeah it does

blissful coral
#

Link it to me

normal sage
#

@blissful coral

rose warren
#

Seems to work with this package

#

Only requires your guild id and user ids

blissful coral
#

hmmm

#

ok

fluid basin
#

so basically it isn't very useful

solemn latch
#

for what he asked for, it feels useful

rose warren
#

It is for what he's doing

blissful coral
#

basically useless

#

why tho

#

lol

rose warren
#

He wants to dump his server's mee6 levels to his own bot leveling system

blissful coral
#

Can't say "btw we are partnered with mee6 and have connected levels!

#

ah

solemn latch
#

if you have a medium sized server but want some features custom, but want to recognize peoples already used activity it seems super useful. which ive seen happen a few times, just didnt know mee6 had an api

rose warren
#

A free api 😂

pale vessel
#

you're up early willichan

fluid basin
#

I mean, I dont see the point of that, and if mee6 is already present on the server, there isn't a need to have another levelling system based off it

pale vessel
#

wrong channel

solemn latch
#

custom features?

rose warren
#

He wants to ditch mee6 i think

solemn latch
#

yeah

fluid basin
#

well you could give additional rewards

rose warren
#

But keep levels

fluid basin
#

yeah you could sorta like migrate

rose warren
#

That's what his question was

blissful coral
#

Best option is just allow them to !redeem at a certain amount of xp and get rewards in the server

fluid basin
#

I see

blissful coral
#

that would be kind of cool

normal sage
#

mee6 level roles are locked behind a paywall

#

@fluid basin

fluid basin
#

uhh well its what they wanted so

drifting wedge
#

how do i get someone's pfp as a dif file format than webp in dpy?

#

He wants to ditch mee6 i think
@rose warren my bot's goal is to be basically the replacement for mee6, dyno, rythm et

#

etc

earnest phoenix
#

anyone know what TnS means

#

I'm getting sent cryptic messages now man

#

could be Terms of Service but theyre not explicitly saying what I could be breaching

drifting wedge
#

what does ur bot do?

earnest phoenix
#

wait just learned what TnS means

drifting wedge
#

wat does ur bot dooo

#

@earnest phoenix

earnest phoenix
#

kinda wack to say it here if you're interested just -bots me in #commands

quartz kindle
#

what does TnS mean?

#

lmao

strong tundra
#

trust and safety

quartz kindle
#

ah

strong tundra
#

im pretty sure at least

quartz kindle
#

makes sense

#

i thought it was treason and secrecy

#

:^)

spark crest
#

Who up too be a mod in my disocrd

#

Discord

coral stirrup
#

wrong channel and wrong everything

#

delete

boreal iron
#

Oh god

earnest phoenix
#

can somone giveme the codes for global crime and beg

blissful coral
#

No

#

Not going to spoonfeed you code

#

🥄

earnest phoenix
#

stop

#

u ard said that

solemn latch
#

Its against the rules

strong tundra
#

i have the code

quartz kindle
#

global crime and beg? wtf is that

coral stirrup
#
crime()
beg()

code

strong tundra
#

it is 30589f73-ad84-4cd1-b3cf-d2901cfe52ce

blissful coral
#

Then don't ask again

#

You read it

#

So don't ask again

#

:)

strong tundra
#

the code is 30589f73-ad84-4cd1-b3cf-d2901cfe52ce

earnest phoenix
#

im kinda annoyed discord isn't sending me anymore information besides that, where do i contact the TnS team?

coral stirrup
#

i think dating services are not allowed..

#

even though i think the idea of your bot is awesome lol

earnest phoenix
#

@strong tundra whats the code for it

blissful coral
#

Speaking of that I need to check my email from discord

strong tundra
#

it is 30589f73-ad84-4cd1-b3cf-d2901cfe52ce

blissful coral
#

What part of we are not going to spoon feed you did you not get

earnest phoenix
#

@strong tundra whats the code

strong tundra
#

enter that in redeem code box

#

and u shouold get it

earnest phoenix
#

nah cap im pretty sure they verified one before

#

ok

#

or atleast another bot in topgg is requesting intents it's not whitelisted for

#

idk

coral stirrup
#

i think you can contact them on the website somewhere

earnest phoenix
#

alright ty

#

@strong tundra it says the code has been used

strong tundra
#

sorry cannot help u

earnest phoenix
#

WHY

#

@strong tundra

strong tundra
#

generate code urself sir

earnest phoenix
#

U BAD

solemn latch
#

insulting people doesnt help anyone

blissful coral
#

You can stop now.

#

Thank you.

earnest phoenix
#

no error but it doesn't remove the roles:

for role in ctx.guild.roles:
  if role.id == 765213445997068319:
    for member in ctx.guild.members:
      if role in member.roles:
        await client.remove_roles(role)
#

there is a function and everything else works; even the part of the functionafter this piece of code

sudden geyser
#

@earnest phoenix I don't think client.remove_roles is a method.

#

But member.remove_roles(...) is one.

earnest phoenix
#

o ic

#

im stupid sry

sudden geyser
#

Also, why bother iterating over every role when you can just use a utility method to get one by ID.

earnest phoenix
#

o oops

sudden geyser
modest smelt
#

How to get a user's avatar in discordpy

normal sage
#

ctx.user.icon..?

modest smelt
#

i dont think so

#

It is something like avatar_url

#

i dont remember

normal sage
#

thats for embeds

modest smelt
#

ya i need for embed

normal sage
#

type this

#

actually nvm

#

i dont wanna spoonfeed

modest smelt
#

so what should i do lmao

normal sage
#

hodlon

#

icon_url = ctx.author.avatar_url

#

found it

modest smelt
#

ok

#

embed.set_footer(icon_url = ctx.author.avatar_url)

#

so this wood work?

#

@normal sage

normal sage
#

Mhm.

#

You need to add a text too.

modest smelt
#

so if i need this: ```python
embed.set_footer(icon_url = ctx.author.avatar_url)
embed.icon_url(url = ctx.author.avatar_url)

#

the thing didn't work

#

like i did the command it didn't work

normal sage
#

Whats the error

modest smelt
#

it doesn't show an error

#

it is kinda hard for me bc i run on aws and the errors are weird

normal sage
#

Did you add text?

modest smelt
#

no i didn't

#

thats all i did

#

i don't know how to add text

normal sage
#

You should try that

modest smelt
#

how should i do that?

normal sage
#

add a text="Text"

#

as a value, next to the footer

modest smelt
#

ok

haughty sorrel
#

How do I upload my bot to top.gg

normal sage
#

@haughty sorrel

modest smelt
#
        embed.timestamp = datetime.datetime.utcnow()
        embed.set_footer(text = f"{member.guild}", icon_url = f"{member.guild.icon_url}")
        embed.set_author(name = f"{member.name}", icon_url = f"{member.avatar_url}")
        embed.set_thumbnail(url=f"{member.avatar_url}")
#

this will work?

normal sage
#

Try it.

haughty sorrel
#

It tells me that I am missing 300 characters and in the description it does not let me write more

normal sage
#

This channel is for bot development support, not website related. Sorry.

quick ridge
#

can you guys help me

#

pls

normal sage
#

wigh what

normal sage
#

idk js, sorry

earnest phoenix
coral stirrup
#

??

earnest phoenix
#

someone knows how I do so that I do not get null

#

i want to put something on party and idk how to do that

rustic nova
#

Bots cannot do rich presence

#

that's why it is defined as null

earnest phoenix
#

a

lyric mountain
#

You can, however, make a pseudo-game for that purpose

#

There are a lot of tutorials about that

austere oracle
#

!join

pale vessel
#

Joined the VC.

opal plank
#

Disconnected due to inactivity! Pay premium to have me 24/7!

solemn latch
#

Id pay to have you 24/7 erwin.

sudden geyser
#

can I pay with thank you cards

opal plank
rocky hearth
#

how do I know, the number of guilds the user is in?

pale vessel
#

you can only check for mutual servers

#

with the bot

rocky hearth
#

ooh! u sure

pale vessel
#

unless you're using oauth

rocky hearth
#

hw to know the mutual guilds?

#

Ooh, I know

#

I could filter out, from client.guilds.filter(g => g.members.has('user-id'))

solemn jolt
pale vessel
#

ye like guilds.filter(x => x.members.has(memberID)).size

solemn jolt
#

Why i can't change my bot username

pale vessel
#

read

#

the bot is verified so you can't change its username

solemn jolt
#

Don't have anyway to change username?

pale vessel
#

try contacting support

solemn jolt
#

Ok👍

earnest phoenix
#

Any idea how long mongodb free cloud cluster would work?

#

or how many server specific configs i can handle with it

solemn jolt
#

@earnest phoenix i thing the free one is don't have a time ,
And i think you can storage 500M+-

earnest phoenix
#

yea its around 500mb

solemn jolt
#

Yeh👍

earnest phoenix
#

is it good enough?

#

Because i want to make sure before im gonna push my bot update from dev build to the release

solemn jolt
#

For a basic app this is good but if you wanna storage higer than 500 you need buy it

earnest phoenix
#

any way to make it automatically clear a config if someone removes the bot from their server?

solemn jolt
#

You can $pull it

earnest phoenix
#

ok

#

one more thing u think this will work to automatically update on dbl and the server amount in the status?

#

i have disabled the dbl part for now because i dont have the bot there yet because its not developed far enough

solemn jolt
#

I think yes

earnest phoenix
#

it gives no errors on the console at least

#

thanks for the help 🙂

solemn jolt
#

👍

solemn jolt
#

Why i have this error in this code

channel.guild.members.cache.get(entry.id).roles.cache.map(userroles => { 
channel.guild.members.cache.get(entry.id).roles.remove(userroles.id).then(k=>{ 
})
});
stable eagle
#

message.guild.members.cache.forEach(member => message.channel.send(member.id))

Im trying to get every members id of a guild, but it shows only me and my bot, I have the guild members intent enabled tho

pale vessel
#

where did you enable it

solemn jolt
#

@pale vessel wait

stable eagle
#

const client = new Discord.Client({ ws: { intents: ['GUILDS', 'GUILD_MEMBERS', 'GUILD_MESSAGES']}}) in my main file

solemn jolt
#
const entry1 = await channel.guild .fetchAuditLogs({ type: "ROLE_DELETE" }) .then(audit => audit.entries.first()); console.log(entry1.executor); const entry = entry1.executor;

After this

pale vessel
#

@stable eagle try adding if (message.guild.members.cache.size != message.guild.memberCount) await message.guild.members.fetch(); before that line

stable eagle
#

@pale vessel actually works, ty

pale vessel
#

you can do that or enable fetchAllMembers in clientoptions

rocky hearth
#

what is difference between, idle and time for collector?

prime glacier
#

message.guild.roles.map is not a function

rocky hearth
#

@prime glacier roles.cache.map

prime glacier
#

@prime glacier roles.cache.map
@rocky hearth same for filter?

rocky hearth
#

roles.cache gives u a collection. Do whatever u want with it.

prime glacier
#

roles.cache gives u a collection. Do whatever u want with it.
@rocky hearth i mean guild.channels.filter to guild.channels.cache.filter

#

?

rocky hearth
#

ooh, yes

tacit spruce
#

any python user?

pale vessel
#

idk

#

why did you ask

slender thistle
#

We'll never know

solemn jolt
#

Why i have this error in this code

channel.guild.members.cache.get(entry.id).roles.cache.map(userroles => { 
channel.guild.members.cache.get(entry.id).roles.remove(userroles.id).then(k=>{ 
})
});
earnest phoenix
#

You can't use .catch() on something that's not a promise, map() is sync not async

whole knot
#

Hey, just one quick question:
Is there something like a message count in Python? I want my bot to count the messages in a specific channel and after x messages the bot sends a message. Is something like that possible?
I have a code like this which I want to post:

        channel = self.bot.get_channel(766360458872619060)
                e = discord.Embed(color=discord.Colour.green())
                e.add_field(name="Test", value=f"Test")
                e.timestamp = datetime.utcnow()
                e.set_footer(text=self.bot.user.name, icon_url=self.bot.user.avatar_url)
                await channel.send(embed=e)
surreal sage
#

Anyone knows how to let node automatically use the newest version of a file instead of the version when the app started?

#

Without having to restart the app

earnest phoenix
#

Do i need GUILD_MEMBERS or the presence intents whitelist to get ids and such?

#

cos I am working with JDA, and when i run an eval it returns null for all ids but the bots.

#

@surreal sage reload the file

#
delete require.cache[require.resolve("path/to/your/file")];```
surreal sage
#

Is there a way to reload it all? @earnest phoenix

#

i could do like fs.readDirSync("./") and filter the node_modules folder 'n stuff

delicate zephyr
#

why do you wanna reload the node_modules folder

#

thats a terrible idea

surreal sage
#

filter the node_modules

#

i meant prevend to scan node_modules

#

wait

delicate zephyr
#

just reload the file you're requiring

surreal sage
#
delete require.cache[require.resolve("path/to/your/file")];```
does this also reload folders?
delicate zephyr
#

no

#

afaik it doesnt

surreal sage
#

afaik?

delicate zephyr
#

as far as I know

surreal sage
#

hmmm

lyric lynx
slender thistle
#

@whole knot length of channel.history with limit set to None but be aware that it'll take a while as it makes one API request per each 100 messages

#

So you could try caching message count manually and increment once a message is sent in the channel

ionic dawn
#

@lyric lynx just check the html tag, or if theres any class and write some CSS on it

earnest phoenix
#

@surreal sage I think it does reload folders, you can try at least

whole knot
#

@slender thistle Thanks for the help! :)

slender thistle
obtuse saffron
#

can we use nekos life api to make nsfw commands

slender thistle
#

No

obtuse saffron
#

ohk.. i just saw mod log ..xd

#

i will change api

silver lintel
#

What's thing === true ? 'true' : 'false' called?

earnest phoenix
#

ternary or elvis operator

lapis furnace
#

can someone help me?
const { MessageEmbed } = require('discord.js')

module.exports = async (message, args) => {
if (args[2]) return message.reply('Please ask a full question')
const answers = ['My reply is yes', 'Maybe', "I don't think so", 'Absolutely', 'Better not tell you now', 'Signs point to yes', 'My reply is no', 'Ask again later', 'My sources say no', 'Without a doubt', 'Most likely', 'Outlook not so good', 'Signs point to no']

const answer = Math.floor(Math.random() * answers.length)
const question = args.slice(1).join(' ')

const ball = new MessageEmbed()
.setTitle(String([answers[answer]]))
.setColor('#bded11')
.setAuthor(message.author.tag)
.addField('Question', question)

message.channel.send(ball)
}

Error:

#

TypeError: command.execute is not a function
at Client.<anonymous> (C:\Users\Gradea\Desktop\Bot discord\Raphtalia bot\index.js:87:13)
at Client.emit (events.js:314:20)
at MessageCreateAction.handle (C:\Users\Gradea\Desktop\Bot discord\Raphtalia bot\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\Gradea\Desktop\Bot discord\Raphtalia bot\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\Gradea\Desktop\Bot discord\Raphtalia bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31) at WebSocketShard.onPacket (C:\Users\Gradea\Desktop\Bot discord\Raphtalia bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\Gradea\Desktop\Bot discord\Raphtalia bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
at WebSocket.onMessage (C:\Users\Gradea\Desktop\Bot discord\Raphtalia bot\node_modules\ws\lib\event-target.js:125:16)
at WebSocket.emit (events.js:314:20)
at Receiver.receiverOnMessage (C:\Users\Gradea\Desktop\Bot discord\Raphtalia bot\node_modules\ws\lib\websocket.js:797:20)

earnest phoenix
#

you didnt export an execute function

#

learn to read your errors

restive furnace
#

ternary or elvis operator
ternary officially

weak parrot
#

Wrong channel

quartz kindle
#

elvis operator? lmao never heard that name

fringe marten
#

Hi

quartz kindle
#

but according to the wiki, elvis is more like a null coalescing operator rather than a ternary

compact summit
#

Hello guys I'm having some difficulty with getting users upvote info with dblpy library and I must say I'm a bit confused
To be honest I don't even know how to use this library
can somebody please help me

rustic nova
rustic nova
#

Digital Ocean

#

but there's a bunch of better hosts

#

than these 3

tepid marten
#

anyone by any chance know how to fix this? it constantly says "cannot read property of "roles" yet its the same ish code for my kick and ban command and they work fine

sterile ridge
#

if my bot has command kill and send an anime gif

#

can be cause of ban?

#

like

sudden geyser
#

elvis operator? lmao never heard that name
@quartz kindle Kotlin moment

#

though I like it's origin more

crystal wigeon
#

embed: Embed size exceeds maximum size of 6000 I'm getting this error while sending more than 10 emojis.. is there a workaround for this?

pale vessel
#

nope

crystal wigeon
#

so what's the max you can send?

#

it'll also include other content like images

pale vessel
#

read the error

quartz kindle
#

embeds have a maximum combined size of 6000 characters across all fields and description

boreal iron
#

as the message says smirk

crystal wigeon
#

ah i htought it was jsut for the description. thanks!

#

noobness is real

quartz kindle
#

its like 2000 for description, 1024 for each field, but not more than 6000 with eveything together

boreal iron
#

Your workaround is the need to send multiple embeds than

ivory seal
#

hi, i have this in my code
client.users.cache.get('idhere') but for some reason it returns undefined when the user is in the guild

#

pls help

pale vessel
#

the user isn't cached

#

use client.users.fetch(id)

#

await or use .then() since it's a promise

#

the user doesnt need to be in the guild

earnest kiln
#

places SEX DM

atomic herald
#

^nani

drifting wedge
#

anyone spoonfeed me js code?

#

thanks

earnest phoenix
#

how can i make my bot "type" before sending a response?

sterile ridge
#

my helps embeds be like

#

XD

#

with microsoft?

faint prism
#

Jeez. I'd dynamically make it at that point

earnest phoenix
#

with microsoft?

#

lol

sterile ridge
#

xD

#

how can i host a bot with microsoft?
@covert gale windows... maybe

earnest phoenix
#

how can i make my bot "type" before sending a response?

faint prism
#

Azure makes more sense

#

Idk off the top of my head, but I'd look at "deploying a service to Azure"

sterile ridge
#

@earnest phoenix python

        await asyncio.sleep(2)```
earnest phoenix
#

with JavaScript

#

i use discord.js

sterile ridge
#

hmm

#

@earnest phoenix this can help u?

earnest phoenix
#

i don't try to use client.startTyping

#

xD

#

i use msg.channel.startTyping();

#

and it wroks

#

works*

#

but idk how to make it type for a while and then send the message

#

and stop typing bc the bot continues typing

#

¯_(ツ)_/¯

sterile ridge
#

aaaaaaaahh okok

rocky hearth
#
message.channel.startTyping();

      setTimeout( () => {
        message.channel.send( 'I tried to type' );
        message.channel.stopTyping();
      }, Math.random() * 3000 + 1000 );
#

@sterile ridge

earnest phoenix
#

@rocky hearth message.channel.send

onyx summit
#

maybe await the startTyping tho

rocky hearth
#

how though??

subtle osprey
#

actually, you should add await before startTyping method

rocky hearth
#
channel.startTyping().then(channel.stopTyping);

I think this will work too!

quartz kindle
#

you definitely dont wanna await startTyping, it will basically lock your code lmao

vernal rivet
#

Yea

rocky hearth
#

yeah, that is what, I was thinking

vernal rivet
#

It's supposed to be ran in sync

quartz kindle
#

actually its not, but djs just decided to do the weirdest shit ever

vernal rivet
#

Wait oh, it's a promise lmao

quartz kindle
#

what we want:
send startTyping, once finished sending, send message. the sent message will make discord stop typing automatically

what djs gives us:
send startTyping, but we cant wait for it to actually start typing. The promise resolves only after you send a message and discord makes you stop typing

vernal rivet
#

Isn't there a delay that occurs before it stops typing?

quartz kindle
#

5 seconds if you dont send anything

#

it will instantly stop typing if you send anything

#

(doesnt work for edits)

vernal rivet
#

||why can't jda do that lmao it has like 1-2 second delay||

quartz kindle
#

additionally, discord.js will continuously send startTypings until you manually call stopTyping, because it assumes you want to make it keep typing forever

#

lmfao

vernal rivet
#

Lol

earnest phoenix
#

yep

#

so i can't make it stop when sending the message

#

._.

quartz kindle
#

startTyping in discord.js is basically unusable

earnest phoenix
#

oh

vernal rivet
#

Rip

quartz kindle
#

if you want to use it the way its supposed to be used, you need to use client.api

#

thats what i do

earnest phoenix
#

alright

#

thx for help

safe creek
#

Am I able to code a discord bot using C++?

earnest phoenix
#

idk

#

i think u can

slim umbra
#

Not rrcommended tho

cinder patio
#

of course you can

trim saddle
#

there's a whole section on stack overflow exclusive to d.js

#

how

cinder patio
#

it's just a tag

trim saddle
#

that's not what i mean

#

for a really basic discord API wrapper there sure are a lot of questions about it

drifting wedge
#

how do i run an if to see if the author has a specific role with a name or id?

hasty mulch
#

Hey, real quick, the thumbnails and timestamps in embeds. What are those called?

drifting wedge
#

dpy

#

Hey, real quick, the thumbnails and timestamps in embeds. What are those called?
@hasty mulch lib?

trim saddle
#

@hasty mulch legit what you just called them

umbral zealot
#

They're called... uhm... thumbnails... and timestamps....

hasty mulch
#

No, the general name

umbral zealot
#

yeah. thumbnails and timestamps.

trim saddle
#

what you just said

drifting wedge
#

They're called... uhm... thumbnails... and timestamps....
@umbral zealot ^

hasty mulch
#

In the code...

drifting wedge
#

wHAT LANGAGE

umbral zealot
#

PRobably thumbnails and timestamps buddy

hasty mulch
#

The language doesn’t matter!!!

umbral zealot
#

yeah it does

hasty mulch
#

Forget it

umbral zealot
#

actually the library matters

drifting wedge
#

thumbnails and timespams

#

timestamps

#

thats the name

#

the lang matters code wise

#

but those r general names

umbral zealot
#

For example, discord.js calls it... drumroll... setThumbnail() and setTimestamp() , @hasty mulch

drifting wedge
#

in python ts embed.set_thumbnail(url=)

#

etc

#

it depends lol

trim saddle
#
{
"timestamp": "cooltimestamp",
"thumbnail": {"url": "https://example.com/image"}
}

@hasty mulch this is literally what they look like in raw embed data

umbral zealot
#

lemme guess the other is embed.set_timestamp(date=) ? 😄

trim saddle
#

there is no general name

hasty mulch
#

I said to forget it

drifting wedge
#

i think he gave up

hasty mulch
#

Stop tagging me

drifting wedge
#

oh dude sorry for helping

quartz kindle
#

lmao

hasty mulch
#

You didn’t help

umbral zealot
#

Sorry we can't magically pull other terminology out of our asses, buddy

drifting wedge
#

ok nice to know you

#

goodbye!

quartz kindle
#

they did help you lol

drifting wedge
#

we told you everything you need to know

quartz kindle
#

they told you what they are called in both discord.py and discord.js

drifting wedge
#

lol

trim saddle
drifting wedge
#

lmao

#

dbl has like 15 total smart ppl

#

like legit

#

and the rest r just not

solemn latch
#

I wonder if he wanted the word
Date and image

drifting wedge
#

oh

#

1 sec

#

i mean what lang tho

solemn latch
#

Those are the general terms for timestamp and thumbnail

drifting wedge
#

becuz he said he doesnt want code

umbral zealot
#

and he found his own answer

solemn latch
#

Oh

drifting wedge
#

imo there are a couple active ppl in dbl

solemn latch
#

Properties

#

Ah

pale vessel
#

Ah

drifting wedge
#

like woo, tim, evie, flaze and some more\

#

but not many really

pale vessel
#

im not that active

slender thistle
#

lemme guess the other is embed.set_timestamp(date=) ? 😄
@umbral zealot Surprisingly no

drifting wedge
#

i mean you awnser questions

#

@umbral zealot Surprisingly no
@slender thistle i dont think he wants that

slender thistle
#

It's embed = discord.Embed(timestamp=datetime_object)

trim saddle
#

technically it's all json REST

#

so it's all keys

pale vessel
#

can you just put a normal timestamp

#

or does it have to be a datetime object

trim saddle
#

i mean

#

it could be a string timestamp

slender thistle
#

has to be a datetime

pale vessel
#

wack

drifting wedge
#

@slender thistle thos os what i use

slender thistle
#

Let me try this

drifting wedge
#

timestamp = datetime.utcnow())

trim saddle
#

@slender thistle shut up before i string you

pale vessel
#

string me 😩

drifting wedge
#

int(str("no u")) something is wrong, i can feel it

slender thistle
drifting wedge
#

ye

#

^

pale vessel
#

what's Embed.Empty for

#

and why are colors methods

slender thistle
#

default colors

#

Embed.Empty is, well, an empty value

pale vessel
#

yeah

#

why are they methods

slender thistle
#

iirc it's a zws

#

because convenience

pale vessel
#

can it not be a property

#

arent they static

#

or am i braindead

slender thistle
pale vessel
#

i see why its a method now

#

it returns the color object

#

ahem

#

colour

#

where is danny from anyway

slender thistle
#

Embed(Color(0xFF0000)) ftw

#

No idea, but I love how both Colour and Color are valid

pale vessel
slender thistle
#

yis uwu

pale vessel
#

it's new

#

1.5

slender thistle
#

Oh wew

earnest phoenix
#

Hello
It does not give an error
I entered a code, the bot runs, I run the command, it does not work
I am sending his codes, help me now

#
const Command = require('../commands/Command.js');
const { MessageEmbed } = require('discord.js');
const fetch = require('node-fetch');

module.exports = class DogCommand extends Command {
  constructor(client) {
    super(client, {
      name: 'dog',
      aliases: ['puppy', 'pup'],
      usage: 'dog',
      description: 'Finds a random dog for your viewing pleasure.',
      type: client.types.FUN
    });
  }
  async run(message) {
    try {
      const res = await fetch('https://dog.ceo/api/breeds/image/random');
      const img = (await res.json()).message;
      const embed = new MessageEmbed()
        .setTitle('🐶  Woof!  🐶')
        .setImage(img)
        .setFooter(message.member.displayName,  message.author.displayAvatarURL({ dynamic: true }))
        .setTimestamp()
        .setColor(message.guild.me.displayHexColor);
      message.channel.send(embed);
    } catch (err) {
      message.client.logger.error(err.stack);
      this.sendErrorMessage(message, 1, 'Please try again in a few seconds', err.message);
    }
  }
};
rocky hearth
#

@earnest phoenix u need to have a group name

earnest phoenix
#

If possible, give me the relevant code

rocky hearth
#

are you using Commando

earnest phoenix
#

NO

pale vessel
#

lmao

#

that should have been the first thing to ask tbh

earnest phoenix
#

Help me

#

I became a cage

rocky hearth
#

any errors?

earnest phoenix
#

It does not give any error

indigo flax
#

i need help

#

so i shareded my bot

#

and in stats

#

i want it to say

pale vessel
#

shardededed

indigo flax
#

Shard:

#

but

#

rn it says

#

Shard: 3

#

i want it to say

#

Shard: ?/3

#

and what shard they are on

rocky hearth
#

That is called channel abuse

indigo flax
#

?

rocky hearth
#

u could have written 1 character per message

solemn latch
#

I havent sharded yet, I dont remember if shard.id gives a full timestamp id or if its just a count

pale vessel
#

timestamp id?

solemn latch
#

Snowflake id*

#

I havent had coffee yet, im still asleep 😴

earnest phoenix
#

Help Me [Pls pepowot

pale vessel
#

you can use `${guild.shardID} / ${client.shard.count}`

solemn latch
#

Oh intresting

#

What specifically isnt working @earnest phoenix
No returned message at all?

#

Is your embed sending but no image

#

Or is the error line being sent etc

pale vessel
#

the command doesnt work and theres no error

rocky hearth
#

@earnest phoenix Give more info

earnest phoenix
#

I hit the command but the robot shows no reaction
And I do not receive an error on the console

pale vessel
#

is the command even registered

#

like can you do ?help dog for example

rocky hearth
#

try logging random values, and see if its even reaching to the code

earnest phoenix
#

It does not work

like can you do ?help dog for example
@pale vessel

tepid marten
#

some bots are setup in a way that you dont have the ?help dog

pale vessel
#

they are using a command handler

#

i doubt they dont have it

tepid marten
#

I use one but it doesnt have the ?help dog feature

solemn latch
#

And if they don't the bot developer in question should know this and tell us that

pale vessel
tepid marten
#

yeh

pale vessel
#

can you debug @earnest phoenix

#

add a console.log("executed") inside the first line of try for example

earnest phoenix
#

ok

#

nothing happened

tepid marten
#

the command isn't registered as a command

earnest phoenix
#

Okay?!

tepid marten
#

like if you had all your commands on a table, that command you're trying to use isn't on the table

earnest phoenix
#

So what should I do now?

pale vessel
#

maybe you had invalid properties?

#

try comparing that file with your other commands

earnest phoenix
#

They are similar, they are no different

pale vessel
#

can you show your ping command for comparison?

earnest phoenix
#
module.exports = class PingCommand extends Command {
  constructor(client) {
    super(client, {
      name: 'ping',
      usage: 'ping',
      description: 'Gets Calypso\'s current latency and API latency.',
      type: client.types.INFO
    });
  }
  async run(message) {
    const embed = new MessageEmbed()
      .setDescription('`Pinging...`')
      .setColor(message.guild.me.displayHexColor);    
    const msg = await message.channel.send(embed);
    const timestamp = (message.editedTimestamp) ? message.editedTimestamp : message.createdTimestamp; // Check if edited
    const latency = `\`\`\`ini\n[ ${Math.floor(msg.createdTimestamp - timestamp)}ms ]\`\`\``;
    const apiLatency = `\`\`\`ini\n[ ${Math.round(message.client.ws.ping)}ms ]\`\`\``;
    embed.setTitle(`Pong!  ${pong}`)
      .setDescription('')
      .addField('Latency', latency, true)
      .addField('API Latency', apiLatency, true)
      .setFooter(message.member.displayName,  message.author.displayAvatarURL({ dynamic: true }))
      .setTimestamp();
    msg.edit(embed);
  }
};
harsh blade
#

(node:25) UnhandledPromiseRejectionWarning: Error: Error: Cannot find module '/home/container/node_modules/@discordjs/opus/prebuild/node-v72-napi-v3-linux-x64-glibc-2.28/opus.node' Require stack:

Hes claiming that it was working on pc and that he has everything correctly in package.json

earnest phoenix
#

7poker1

solemn latch
#

Just because somethings in package.json doesn't mean it will install

#

Opus has some dependencies afaik.

#

Is your dog command in the correct folder @earnest phoenix

earnest phoenix
#

Guys, is there a way to make my bot linked to a website's database?

#

yes

Is your dog command in the correct folder @earnest phoenix
@solemn latch

solemn latch
#

Sure you can

#

Any errors when the bot starts up @earnest phoenix

earnest phoenix
#

Sure you can
@solemn latch how

#

no Error

solemn latch
#

Depends, is it your site and your bot?

earnest phoenix
#

how about if it is not my website

solemn latch
#

Honestlt @earnest phoenix I have no clue

#

@earnest phoenix get permission from the website owners, or use the websites api.

pale vessel
#

maybe try restarting your bot

earnest phoenix
#

okay, thanks

#

@earnest phoenix get permission from the website owners, or use the websites api.
@solemn latch should i intercept the api?

solemn latch
#

Yeah, if they have an api use it to get the relevant information.

earnest phoenix
#

aight, thanks

#

Honestlt @earnest phoenix I have no clue
@solemn latch rollonthefloor

solemn latch
#

Did you restart your bot when I asked about errors on startup?

#

Also, maybe kinda silly. But did you save the dog command file?

earnest phoenix
#

its opk

#

ok

#

new error

#

TypeError: Cannot read property 'error' of undefined

solemn latch
#

I dont see client.logger as a property.

pale vessel
#

it's their own thing i guess

solemn latch
#

Well, even if it is, the error says it doesn't exist.

pale vessel
#

oh

#

where?

#

ah i see it

earnest phoenix
#

I dont see client.logger as a property.
@solemn latch

    } catch (err) {
      message.client.logger.error(err.stack);
      this.sendErrorMessage(message, 1, 'Please try again in a few seconds', err.message);
    }
  }
};
solemn latch
#

Yeah.
Your using message.client.logger but I dont think that's a thing

pale vessel
#

can someone DM me if u know about music bots bc mine is broken and we dont know how to fix it
@earnest phoenix you can try providing more info here

#

maybe one of us can help

umbral zealot
#

@earnest phoenix please just ask your questions, don't ask people to DM you, it's best to solve this as a group.

pale vessel
#

no one wants to dm some rando just to help them with a bot

#

unless you're bored or something

earnest phoenix
#

Yeah.
Your using message.client.logger but I dont think that's a thing
@solemn latch i deleted ??

#

???

pale vessel
#

say what now

earnest phoenix
#

TypeError: Cannot read property 'error' of undefined

#
    } catch (err) {
      message.client.logger.error(err.stack);
      this.sendErrorMessage(message, 1, 'Please try again in a few seconds', err.message);
    }
  }
};
lyric mountain
#

does someone know any service that can act as a "retry until status 200" for APIs?

#

or if nginx can do this

solemn latch
#

Yeah, client.logger doesn't exist.
I am not sure what that line is doing. If you know what that lines doing, fix it or remove it if you dont need it.

earnest phoenix
#

ok wait

lyric mountain
solemn latch
#

Yeah

#

Or someone on team made it. Not sure

lyric mountain
#

I just need to figure out a way to prevent missing POST requests

pale vessel
#

nay

solemn latch
#

We don't spoonfeed code here

#

Also, economy requires a database, not something you can copy paste.

#

Use an inline element on both cards @low orbit

earnest phoenix
#

ReferenceError: args is not defined poker1

solemn latch
#

Where at @earnest phoenix

#

Are divs not blocks?

#

Not inline.

pale vessel
solemn latch
#

Oh, you can convert blocks into inlines?

pale vessel
#

yes

earnest phoenix
#
      const member = this.getMemberFromMention(message, args[0]) || message.guild.members.cache.get(args[0]);
solemn latch
#

I guess I never needed that since I used inlines from the get go

earnest phoenix
#

@solemn latch ReferenceError: args is not defined

solemn latch
#

I dont see where this is in your dog code

#

Is this a seperate issue?

earnest phoenix
#

Is this a seperate issue?
@solemn latch Yes Sry

solemn latch
#

Can I see the command this is for?

pale vessel
#

you can try that

#

both of them needs to be inline

earnest phoenix
#

Can I see the command this is for?
@solemn latch Yes Wait

pale vessel
#

is the second one inline too?

earnest phoenix
#

@solemn latch

      name: 'addrole',
      aliases: ['giverole', 'addr', 'ar'],
pale vessel
#

oh its a table

#

no wonder

earnest phoenix
#

@solemn latch ☝️

pale vessel
#

imagine if they used the middle finger emoji accidentally

solemn latch
#

I deserve the middle finger one anyway pandasad

earnest phoenix
#

imagine if they used the middle finger emoji accidentally
@pale vessel e3

#

I deserve the middle finger one anyway pandasad
@solemn latch Nooo

#

Pls Help Me PLS Vpoker1

solemn latch
#

So your not requiring the args in your message

#

You should pass on the args, or make a new set of args

pale vessel
#

make it inline @low orbit

#

the table, specifically

#

thonk

earnest phoenix
#

TypeError: this.getMemberFromMention is not a function
6757_Sadge fffffffffffffffff

pale vessel
#

i'd play around with the styling if i have access to the site

solemn latch
#

I dont know where you are getting these properties.

#

But they are not in the default djs

pale vessel
#

can you make both of them inline?

earnest phoenix
#

Me ?

dire obsidian
#

i just come to ask something

#

python or node for server with php support?

pale vessel
#

what do you mean

dire obsidian
#

like

pale vessel
#

apache man

solemn latch
#

Apache man, the super hero

pale vessel
#

yes

dire obsidian
#

im using windows and for some reason cant install

pale vessel
#

better than nginx

#

debatable

#

but we all know lighttpd is the best

#

asterki just install XAMPP or something

#

makes your job easier

dire obsidian
#

i just

#

have a lot of stuff to do

#

MY GOD 155MB

pale vessel
#

yes

dire obsidian
#

anyways

#

uwu

#

i'll be more active here, in this channel

#

i need, learn a lot of stuff

solemn latch
#

155mb, so much data

pale vessel
#

im not sure what im looking at

#

where is the user info table

#

im assuming theres supposed to be one

surreal sage
#

I'm making an api using request but if i log the responded body it does it fine, but if i try to log a specific property it returns undefined

pale vessel
#

are you sure the body isnt a string

surreal sage
#
{
    "bin": {
        "id": "server-gg-testing1",
        "readonly": false,
        "bytes": 23,
        "bytes_readable": "23 B",
        "files": 2,
        "updated_at": "2020-11-06T17:28:40.677982Z",
        "created_at": "2020-11-06T17:11:18.910703Z",
        "created_at_relative": "17 minutes ago",
        "expired_at": "2020-11-13T17:28:40.67795Z",
        "expired_at_relative": "6 days from now"
    },
    "file": {
        "filename": "package.json",
        "content-type": "text/plain; charset=utf-8",
        "bytes": 20,
        "bytes_readable": "20 B",
        "md5": "ca7ac0fa4c21304cd5e235c71fcee577",
        "sha256": "d6731e554ea5c2da5236ab2153897bed43cf1f2c882ae5ce61ac5d32bbf7253d",
        "updated_at": "2020-11-06T17:28:40.510114Z",
        "updated_at_relative": "now",
        "created_at": "2020-11-06T17:16:10.228908Z",
        "created_at_relative": "12 minutes ago"
    }
}``` this is what is returns
pale vessel
#

what is undefined

surreal sage
#

i'm trying to log .bin

pale vessel
#

can you show your code

surreal sage
#
const request = require("request")
const fs = require("fs")

async function upload(bin, file_name, file_data) {
    request.post("https://dev.filebin.net", {
        headers: {
            bin: bin,
            filename: file_name
        },
        body: file_data
    }, function (err, res, body) {
            var data = res.body;

            console.log(data)
    })
}

module.exports = {
    upload: upload
}

upload("server-gg-testing1", "package.json", "{ 'message': 'hey' }")```
indigo flax
#

help

#

so i use my website

surreal sage
#

what version @sand dune

indigo flax
#

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile astralounge/trialstaffpage/.htpassword
Require valid-user

#

how come that doesnt work

#

i use github for my site

pale vessel
#

what is undefined though

surreal sage
#

.bin

#

hop in vc

pale vessel
#

uh stringify it

surreal sage
#

did you see it?

#

oh

pale vessel
#

lol

#

it wont work

#

you stringify it for fs

surreal sage
#

wut

pale vessel
#

since you cant save an object

#

you save the object as string

#

undo everything

surreal sage
#

hOw dO i ConVeRt iT to An JsON obJECt

quartz kindle
#

lmao

pale vessel
#

you were close

#

you only needed to change it to fs.writeFileSync("file.json", JSON.stringify(data))

surreal sage
#

i don't want it in a json file

pale vessel
#

you wot m8

#

thats what you tried to do

surreal sage
#

it was testing

#

i didn't want that

pale vessel
#

oh

#

try console.log(res.body.bin)

#

wew

earnest phoenix
#

How do you invite your bot to your server?

surreal sage
#

LMAO

#

uhhh, i gotta go eat tho

#

tell me if you have fixes for me to try

uncut river
#

getting this error with the dbl.js lib

#
(node:24) UnhandledPromiseRejectionWarning: Error: 404 Not Found
    at IncomingMessage.<anonymous> (/home/container/node_modules/dblapi.js/src/index.js:118:25)```
#

any clue?

#

came out of nowhere

solemn latch
#

oo

#

what where you trying to get

uncut river
#

not sure where it's erroring

quartz kindle
#

@surreal sage are you sure res.body is an object? do console.log(typeof res.body)
if it returns "string", then you have to parse it into an object: JSON.parse(res.body)

uncut river
#

i have ```js

bot.dbl.getBot(bot.user.id)``` on startup @solemn latch
#

it errors on startup

solemn latch
#

does it still error on startup?

uncut river
#

havent restarted the bot in like 2 mins but it did it twice, should i check the (/home/container/node_modules/dblapi.js/src/index.js:118:25)

#

ah

#

rip

pale vessel
#

same thing on the site lol

uncut river
#

ripp

#

thanks

pale vessel
#

try again

#

refreshing works

uncut river
#

the heck is the end of the url

#

it's so long now

pale vessel
#

cloudflare stuff

old cliff
#

is there any key difference in enmap and enmap-mongo except the difference in declaration and connection?

uncut river
#

wack

solemn latch
#

probably, but its hard to say without looking at the docs for each

blissful laurel
#

How to cheak my bot is logged

solemn latch
#

logged in?

old cliff
#

logged ?

blissful laurel
#

I mean that is on queue for verification

solemn latch
#

you get a pm from luca after you submit it

#

or you can search your bots id

blissful laurel
#

Okie

old cliff
#

Found out enmap-mongo is depracated

surreal sage
#

@quartz kindle that was the case, thank you!

crimson vapor
#

anyone know in js how I would take a long array and only use a specific part of it like an array that has 1000 values in it but I want the first 100 or second 100

#

I know I should probably use .slice() but I can't figure out how to get the correct values

pale vessel
#

what like array.slice(0, 100); array.slice(100, 200);

quartz kindle
#

if you want the first 100, the best and fastest way is to do array.length = 100 lmao

crimson vapor
#

hmm I will try this

drifting wedge
#

how would i use cronjob to like run a task even if i reset the app

grizzled raven
#

const first100 = array.length = 100 hyperoliy

quartz kindle
#

that would just output 100 lol

grizzled raven
#

yes

pale vessel
#

const first100 = (array.length = 100, array); 👀

cinder patio
#

If you change it's length then you modify the array though

pale vessel
#

depends, if he only needs the first 100 then

weary quiver
#

I really wanna do coding

crimson vapor
#

oh

raven orbit
#

Why does the bot become offline when adding a code, but the code is clean

crimson vapor
#

flaze big brain

weary quiver
#

@crimson vapor can we do that

quartz kindle
#

@raven orbit wat

crimson vapor
#

im not sure I use js

weary quiver
#

Uff

#

Do they both make a difference

#

And can js be downloaded on phone

crimson vapor
#

no idea

weary quiver
#

Uf

crimson vapor
#

but js is meant for browsers so probably

weary quiver
#

Lemme try js

quartz kindle
#

@weary quiver you mean just coding or also hosting on a phone?

weary quiver
#

Codin

quartz kindle
#

because just coding, its perfectly possible, just download one of many code editor apps

#

but actually running the code on the phone is a bit more complex

weary quiver
#

But I also wanna do hosting

raven orbit
#

@quartz kindle I added some code to my bot project, but suddenly it went offline. I do not know the reason. I checked everything. I do not know what's the reason

weary quiver
#

but actually running the code on the phone is a bit more complex
@quartz kindle true

quartz kindle
#

@raven orbit where is your bot running?

raven orbit
#

linux ubuntu

quartz kindle
#

via ssh?

raven orbit
#

yes

fiery tide
#

I assume you reran the script after making the changes?

quartz kindle
#

do you use a process manager? like pm2/nodemon?

raven orbit
#

no jast use node js

quartz kindle
#

and if you do node yourbotfile.js what happens?

raven orbit
#

It works normally but becomes disconnected after a while

quartz kindle
#

does the ssh disconnect also?

#

or do you close the ssh?

raven orbit
#

no

quartz kindle
#

so the ssh is always open, and showing logs right?

#

does it show any error when your bot disconnects?

raven orbit
#

yes always open and i use screen

quartz kindle
#

does the process exit and you have to run it again?

raven orbit
#

I checked everything until I called the service provider and didn't know the reason

quartz kindle
#

do you exit the screen after running you bot? or are you always with the same screen window open?

raven orbit
#

No error, everything works fine after that it goes offline so i start it again and same problem

#

i dont exit screen

#

When I got this problem working I kept everything open

quartz kindle
#

does your bot output any logs? from console.log and such?

#

what are the last logs before it exits?

raven orbit
#

the last logs is " Bot up RxBot "

quartz kindle
#

and then it just quits as if you pressed ctrl+C?

raven orbit
#

Just wait for what happens and nothing seems to go offline

quartz kindle
#

does it work normally again if you remove the code you added?

raven orbit
#

yes

quartz kindle
#

can you show the code you added?

raven orbit
#

yes in your DM