#development

1 messages Β· Page 1112 of 1

digital ibex
#

:o

quartz kindle
#

yes

digital ibex
#

docker: drake no

#

ook

solemn latch
#

I think regex then
Get each match of groups of digits, and replace with match

digital ibex
#

any ideas?

#

oh wait what

#

it worked

quartz kindle
#

lol wut

digital ibex
#

holy fucking shit thats cool

honest perch
#

What the fuck

#

4000

digital ibex
#

uh

sudden geyser
#

that's still bad coverup akariRage

digital ibex
#

no idea why its showing that

quartz kindle
#

lmao

digital ibex
#

oh

#

how-

#

thats cool man

quartz kindle
#

it detects git in your process's folder i guess

digital ibex
#

oh

#

fuck fuck fuck, theres a fly in the little bit of my laptop

quartz kindle
#

4320 restarts since you first used pm2 start on it

solemn latch
#

Only a few

digital ibex
#

im using a shared host, might be everyones

quartz kindle
#

no its process specific restarts

digital ibex
#

oh

#

i've probably restarted it like 15 max tho

quartz kindle
#

if you have syntax errors your process gets stuck in a boot loop, which increases restart count a lot

#

also if you use watch mode

solemn latch
#

Watch mode gets a lot of restarts

digital ibex
#

in an ejs file, in the script tag i've got the ejs element thingy

#

which is causing a syntax error

quartz kindle
#

you can also add your own metrics which is cool

digital ibex
#

oh

quartz kindle
#

and pretty easy

solemn latch
#

Practically grafana

quartz kindle
#

for example ```js
const io = require('@pm2/io');
const guildsMetric = io.metric({
name: "Guilds",
id: "MsgViewer/Guilds"
});

client.on("guildCreate", g => {
guildsMetric.set(client.guilds.cache.size);
});

client.on("guildDelete", g => {
guildsMetric.set(client.guilds.cache.size);
});

digital ibex
#

oh wow

#

holy moly

solemn latch
#

^ pretty much how I setup prometheus.
Same dealio, just update the metric when things change

quartz kindle
#

im probably gonna move to grafana eventually

#

but its more work setting it up

#

you use grafana and prometheus together right?

knotty steeple
#

holy shit is there an eris fork with less connection issues

quartz kindle
#

prometheus gathers stats and saves them, and grafana reads them into a dashboard?

solemn latch
#

Exactly

quartz kindle
#

eris being eris :P

solemn latch
#

Prometheus server stores it, and you add a Prometheus client thats pretty much just a webserver.
The prom server will scrape the prom client every x seconds and store it

quartz kindle
#

what about the overhead of running those two giants 24/7

solemn latch
#

I actually have no idea.
My concern was disk space

summer torrent
#

you can also add your own metrics which is cool
@quartz kindle what about grafana? is there any npm package for that

quartz kindle
#

@earnest phoenix new Discord.MessageEmbed -> new Discord.MessageEmbed()

solemn latch
#

I'm storing data every 30 seconds, with like 30 metrics. Its quite a lot of data to store for long

#

30 metrics per process i track* plus all the defaults

earnest phoenix
#

Hi

gritty bolt
#

how do i slice until a certain string in discordjs

digital ibex
#

hi

#

split/regex

#

in most cases, u'd wanna use split, but in some cases regex

gritty bolt
#

how do I use split

sonic lodge
#

string.split(separator);

digital ibex
#

what language?

#

hoh

#

js mb

sonic lodge
#

split a string into an array, separated by separator

gilded dawn
#

here is the error I got earlier when my bot on Heroku suddenly started going offline 2020-08-02T22:28:23.443212+00:00 app[worker.1]: channel = Channel(server=self, **c) 2020-08-02T22:28:23.443281+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.6/site-packages/discord/channel.py", line 89, in __init__ 2020-08-02T22:28:23.443499+00:00 app[worker.1]: self._update(**kwargs) 2020-08-02T22:28:23.443534+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.6/site-packages/discord/channel.py", line 116, in _update 2020-08-02T22:28:23.443763+00:00 app[worker.1]: self._permission_overwrites.append(Overwrites(**overridden)) 2020-08-02T22:28:23.443813+00:00 app[worker.1]: TypeError: __new__() got an unexpected keyword argument 'deny_new' 2020-08-02T22:28:23.453359+00:00 app[worker.1]: Task was destroyed but it is pending! 2020-08-02T22:28:23.453629+00:00 app[worker.1]: task: <Task pending coro=<ConnectionState._delay_ready() running at /app/.heroku/python/lib/python3.6/site-packages/discord/state.py:173> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f46ca808d68>()]>> 2020-08-02T22:28:23.547149+00:00 heroku[worker.1]: Process exited with status 1 2020-08-02T22:28:23.586416+00:00 heroku[worker.1]: State changed from up to crashed

quartz kindle
#

deny_new is a recent thing, check if you library needs updating

gritty bolt
#

@digital ibex i mean like how do I find the string in that

#

like I have a specific string I wanna find in that

quartz kindle
#

show an example of a string

gritty bolt
#

im trying to find the start of a link so "https://" or "http://"

#

something in quotes

digital ibex
#

('http') ?

quartz kindle
#
a = "piejvpiwpwe wevwpew ehweip https://bla.com ouhgowuehgouwheg";
url = a.split("https://")[1].split(" ")[0] // bla.com
digital ibex
#

regex would be better for this though

solemn latch
#

Regex would be slower no?

digital ibex
#

regex is slower for almost every case

quartz kindle
#

depends on the situation

gritty bolt
#

idk how to use regex at all

digital ibex
#

same :p

quartz kindle
#

same :p

solemn latch
#

I've been learning over time. Worth learning imo

quartz kindle
#

i mean, just the basics

solemn latch
#

^

digital ibex
#

well, not at all. i've got the basic basic basic understanding but thats alll

#

lol

solemn latch
#

I've been trying to make my own regex every time someone asks

earnest phoenix
#

I just know how to code with normal python

solemn latch
#

Even if I dont give them the regex

restive willow
#

whats the best way to implement a text mute command? make a Muted role on join and deny it permissoins in every channel in the server? then check for new channels and remove permissions as needed?

#

or is there a better way

earnest phoenix
#

i forgot how you make an aysnc function out of nowhere

#

without defining it as a function

restive willow
#

how u gonna make a function withjout defining it

earnest phoenix
#

there was something like

gilded dawn
#

I should update? Python or Heroku?

solemn latch
#

Async () => {}

#

?

quartz kindle
#

new Promise()

earnest phoenix
#
async (() {
 // do something
})
#

something like that or am i wrong

quartz kindle
#

a self executing function?

earnest phoenix
#

ye ye

quartz kindle
#

(async () => {})()

earnest phoenix
#

thats what i meant

#

thank you

solemn latch
#

I was mostly there

knotty steeple
#

ok so how does indexOf work

#

inb4 google

restive willow
#

whats the best way to implement a text mute command? make a Muted role on join and deny it permissoins in every channel in the server? then check for new channels and remove permissions as needed?
@restive willow

quartz kindle
#

string.indexOf(string)
array.indexOf(item)

#

@restive willow i guess yes

#

the only other alternative would be to ovewrite permissions for that specific person when muted, but thats not very efficient

sonic lodge
#

occasionally my bot loses its custom status and i have to set it back to what it was before manually; why does this happen?

quartz kindle
#

disconnections and reconnections

solemn latch
#

Isnt there a connected event or something?

#

The ready event is something else right?

#

Or is it just ready

quartz kindle
#

the ready event may fire multiple times on hard disconnects like invalid session

solemn latch
#

Ah

sonic lodge
#

how do i watch for a disconnect

quartz kindle
#

do you have a dynamic status? that shows guild count or something?

sonic lodge
#

no, it's static

quartz kindle
#

then set it in the client options

quartz kindle
#

new Discord.Client({presence:{activity:{name:"bla",type:"WATCHING"}}})

honest perch
#

Tim

#

Tim changes to Tom

#

In my phone

sonic lodge
#

what about with d.js-light

quartz kindle
#

same thing

sonic lodge
#

second param?

quartz kindle
#

if you set the activity in the client options, will always be used when reconnecting

#

there is no second param

#

all client options are first param

#

inside an object

sonic lodge
#

πŸ‘Œ ty

quartz kindle
#

@solemn latch i am shard, the emitter of death

earnest phoenix
#

How can I do a function via an array?
I tried

['function_1', 'function_2', 'function_3'].forEach(x => x(bot) );

but -> TypeError: x is not a function

sonic lodge
#

arrays can have functions

#

[function(param) {do something}, function() {}].forEach()

quartz kindle
#

[() => {}, () => {}, () => {}].forEach()

earnest phoenix
#

[() => {}, () => {}, () => {}].forEach()
??

quartz kindle
#

lmao

earnest phoenix
#

May it be possible to give me an example?

quartz kindle
#
f1 = bot => console.log(bot.token)
f2 = bot => console.log(bot.users.cache.size)
f3 = bot => console.log(bot.guilds.cache.size)
[f1,f2,f3].forEach(f => f(bot))
earnest phoenix
#

Thank you !!

#

Does anyone know how to make / have a website for their bot? I'm not very good with UI design. Is their a template or something?

knotty steeple
honest perch
#

Yes

sonic lodge
#

that's right

solemn latch
#

I'm sure you can find some basic templates online.
But you will have to do a lot yourself @earnest phoenix

earnest phoenix
#

Alright.

#

Thank you.

sudden geyser
#

What library are you using? You'd need to remove permission for everyone (usually the @ everyone role) to view the channel while granting permission to admins, mods, and explicitly the author.

solemn latch
#

How to change permissions of a channel?

earnest phoenix
#

what lib

sudden geyser
#

There's an example on the first link.

#

good job

#

denying VIEW_CHANNEL should do the trick. Is it not?

solemn latch
#

The everyone role id is the guilds id

knotty steeple
#

@pale vessel how would i even make my array into that

#

[[":tools:", ":lock:", ":pencil:"], "nl", [":zap:", ":blush:"]]

pale vessel
#

how do you get those emojis?

knotty steeple
pale vessel
#

all right wait

#
const lines = [];
let line = [];

for (const badge of badges) {
    if (badge == "nl") {
        lines.push(line);
        lines.push(badge);
        line = [];
    }
    else line.push(badge);
}

if (line[0]) lines.push(line); // remaining```
stray portal
#

i have a bot

earnest phoenix
#

how can i make live server,member count on my site with php

summer torrent
#

@stray portal so

pale vessel
#

can you not spam your question

summer torrent
#

what is your problem

sudden geyser
#

when the channel is created, do the permissions properly set up

#

aka right click the channel and see the permissions column

#

Yes, and your issue is when the channel is created (when running the code you showed above), everyone can still see the channel, correct? And that's why I'm asking for verification.

earnest phoenix
#

i need share my bot stats for website

knotty steeple
sudden geyser
#

To make staff also see it, you'd need to specify the roles (assuming you're using staff roles) in the array of objects as well

knotty steeple
#

wait i don't push nl

obtuse jolt
#

I cheated the system

pale vessel
#

@knotty steeple did you push nl

knotty steeple
pale vessel
#

let me try on my own

knotty steeple
#

i did yes

amber fractal
#

What are you doing

random maple
knotty steeple
#

i want a newline every 3 badges

winter basalt
#

because it isnt here

knotty steeple
#

its not approved yet

amber fractal
#

can I ask why you use map for that instead of something like foreach or just a regular for loop?

random maple
#

This is not the only problem

amber fractal
#

just curious tbh I doubt that'd be the issue though lmao

knotty steeple
#

just curious tbh I doubt that'd be the issue though lmao
@amber fractal it was

#

AAAAAAAAAAAAAAAAAAAAA

amber fractal
#

wait lmao

#

F

knotty steeple
earnest phoenix
#

does anyone have a bot website template or something

knotty steeple
#

problem: its every 2 badges

#

and idk why

#

actually

#

no

#

a badge is missing

#

what

pale vessel
#

lol

earnest phoenix
#

does anyone have a bot website template or something
@earnest phoenix id like one too lol

#

so +1

amber fractal
#

Try a regular for loop instead of that for of

#

only thing I could think of

#

so something like

for(let i = 0; i < Object.keys(this.bot.lib.badges.all).length; i++){
  if(i !== 0 && i % 3 == 0){
    lines.push(line)
    lines.push("nl")
    line = []
  }else {
    let cur = Object.keys(this.bot.lib.badges.all)[i]
    line.push(this.bot.lib.badges.emoji[cur])
  }
}
``` maybe
#

only because I could see there being a problem with using indexOf

#

because it's not guaranteed to be the same every time

knotty steeple
#

man

pale vessel
#

you must be so tired of this

#

you'd probably want i % 4 === 0 instead

amber fractal
#

that counts 4 though, not 3

pale vessel
#

it doesn't push the current element

#

it only push previous elements and add nl

amber fractal
#
for(let i = 0; i < Object.keys(this.bot.lib.badges.all).length; i++){
  let cur = Object.keys(this.bot.lib.badges.all)[i]
  if(i !== 0 && i % 3 == 0){
    lines.push(line)
    lines.push("nl")
    line = []
  }
  line.push(this.bot.lib.badges.emoji[cur])
}```
then this would probably just be better
knotty steeple
#

i am actually going to cry

amber fractal
#

or ```js
for(let i = 0; i < Object.keys(this.bot.lib.badges.all).length; i++){
let cur = Object.keys(this.bot.lib.badges.all)[i]
if(i !== 0 && i % 3 == 0){
lines.push(line)
lines.push("nl")
line = [this.bot.lib.badges.emoji[cur]]
}else {
line.push(this.bot.lib.badges.emoji[cur])
}
}

#

but these have the same effect

pale vessel
knotty steeple
#

ok im adding u 2 as contributors

pale vessel
#

i'm incompetent

#

add steven

amber fractal
#

idek what your doing

#

lmao

knotty steeple
#

missing

#

1

amber fractal
#

could it be because it never gets to the 3 again

#
for(let i = 0; i < Object.keys(this.bot.lib.badges.all).length; i++){
  let cur = Object.keys(this.bot.lib.badges.all)[i]
  if(i !== 0 && i % 3 == 0){
    lines.push(line)
    lines.push("nl")
    line = []
  }
  line.push(this.bot.lib.badges.emoji[cur])
  if(i == Object.keys(this.bot.lib.badges.all).length - 1) lines.push(line)
}
``` ![mmLol](https://cdn.discordapp.com/emojis/356831697385422848.webp?size=128 "mmLol")
knotty steeple
#

bruh bruh bruh

amber fractal
#

It's all stuff that you know you just dont think of it

#

lol

knotty steeple
#

the 1 before the blush is missing

amber fractal
#

wait so it just yeeted one in the middle

#

what code do you have now?

knotty steeple
amber fractal
#

if you log cur right after you define it, do you see all of them?

knotty steeple
#

wait what it works now

#

huh

zinc condor
#

KM_Dorime how do i see how long someone has been boosting for

west skiff
#

It might be easier to loop through Math.ceil(length / 3) with arr.slice(3*i, 3*i+3)

#

all of that could be like 3 lines

knotty steeple
#

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

amber fractal
#

and a hell of a lot less readable

west skiff
#

idk its more obvious to me what its doing but thats just me

knotty steeple
#

idk what ceil is

amber fractal
#

@zinc condor in what lib

west skiff
#

it rounds up

pale vessel
#

opposite of floor

west skiff
#

so 2.3 -> 3

amber fractal
#

it's floor but up

quaint hound
#

imagine if we weren't explaining this in a coding context

#

"what's ceiling"
"its floor but up"

knotty steeple
#

floor, ceiling

#

WOW

zinc condor
#

@amber fractal doesnt matter, i just wanna know if its possible, i use my own modified fork of discordgo

amber fractal
pale vessel
#

you can always use the REST api

knotty steeple
pale vessel
#

hot

#

sorry for using map lmao

knotty steeple
#

we all got

#

0iq moment

earnest phoenix
#

Whene a bot in 75 serveur how many time to discord send you a message in dm

ripe wasp
#

Neko girls are actually coming to life if β€œfunded”

earnest phoenix
#

you sent that in every single channel @earnest phoenix

#

I need help

west skiff
#

so anyway js const arr = this.bot.lib.badges.all const n = Object.keys(arr).length let height = 240 for (var i=0; i < Math.ceil(n / 3); i++) { await fillTextWithTwemoji(ctx, arr.slice(3*i, 3*i+3).join(' '), 48, height) height += 30 }

knotty steeple
#

lmao i just realized it doesn't check if the user has the badge anymore

faint prism
#

Hey, any dotnet devs know what my issue here is?
When I attempt to access my SQLite db I get, Unable to load shared library 'SQLite.Interop.dll' or one of its dependencies.
I'm using System.Data.SQLite and attempting to publish to linux-arm64

gilded dawn
#

I restarted my bot on heroku. and now I'm getting this. I'm just so confused where this is coming from.

#

it went offline a few days ago. it's been running for years. and now i restarted it in hopes that it would work again.

deft mango
#

when the num of the reaction change,will the event discord.on_reaction_add(reaction,user) be triggered?

sonic lodge
#

yes, if someone new reacted

deft mango
#

thanks

earnest phoenix
#

How to code

knotty steeple
earnest phoenix
#

HOW CODE

indigo geyser
#

._.

#

@earnest phoenix how to code what?

#

ok it's a troll I'm stupid sad

earnest phoenix
#

An auto drivibg car

indigo geyser
earnest phoenix
#

Am working at tesla and no know how to code

sonic lodge
#

wrong place, you know this, why not stop?

indigo geyser
#

pay someone on fiverr

earnest phoenix
#

pay someone on fiverr
@indigo geyser good idea

karmic compass
#

it went offline a few days ago. it's been running for years. and now i restarted it in hopes that it would work again.
@gilded dawn as a question do you use free Dynos?

gilded dawn
#

@karmic compass yes!

karmic compass
#

Damn

#

Just as a question since I’m starting out there

#

So ty

#

Btw at the bottom it says a type error, idk what it is but it’s there

gilded dawn
#

Yeah. :/ wish I knew what the type error meant lol.

If ur starting out Heroku is kinda weird that way. I have used it for years tho so it does work but then stuff like this can happen especially if u have free dynos.

earnest phoenix
#

Is there a way in discord.py to have my bot announce?

#

Basically I wanna say that I plan on taking it down for a short amount of time

solemn latch
#

You should announce it in your bots support server.
Announcing in each server, would probably be api abuse.

sudden geyser
#

^ Along with Discord making public announcements usable, it's better in every single shape and form

earnest phoenix
#

Yeah my bot got more popular than I expected and I cant maintain it yet

harsh moon
#

I would do a for loop for the guilds table and msg them all if you dont want to announce on your support table but I would still not recomend it because of discord spam

unreal bluff
#

@earnest phoenix suggest making a second bot and don't publish it for testing purpose.

earnest phoenix
#

@unreal bluff I did do that

karmic compass
#

can i have some help?

earnest phoenix
#

however it's become costly server wise

#

my db costs are rising and becoming unaffordable

#

Testing isnt the issue it's cost

karmic compass
#

i am using a role giving command, and i have a .then()+.catch() command in case things go wrong, however it assigns the role but it only displays the message for if there is an issue

#

here is my code:

                member.roles.remove(role).then(message => {
                    message.channel.send(`${theUser.tag} no longer has ${roleName}!`)
                }).catch(err => {
                    return message.channel.send('An error occured while trying to remove a role from this user!')
                });
solemn latch
#

Your doing remove.then()
Remove returns a promise of guildMember.
So your message variable is actually a guildMember

karmic compass
#

how do i fix it?

pale vessel
solemn latch
#

Don't assign guildMembers as a message?

pale vessel
#

help vampire

karmic compass
#

its 1am can i have like an example

solemn latch
#

Its late for me too

karmic compass
#

because my brain is slower than the decay of the economy or something

solemn latch
#

If your not in a state of mind to program, you probably shouldn't waste people's time asking questions

karmic compass
#

if i'm thinking correctly then do i have to change .then(message) to .then(role) or something? or should i just wait until i manage to find another solution

solemn latch
#

It returns a guild member

#

Not a role

#

Nor a message

#

Its in the link to the docs I posted

sweet ruin
#

Hello all, I am here again with another guestion

karmic compass
#

i came up with a relatively okay solution, would if(member.manageable) {executes the code} else {message.reply('Cannot do this action!')}

summer torrent
#

@sweet ruin regex

solemn latch
#

You coulda just set the variable to not be a variable already in use

west skiff
#

creepa ya, use regex

solemn latch
#

Or args[0].includes("imgur.com")

#

Less pretty but probably good enough for what he wants

west skiff
#

https://mywebsite.com/maliciousthing?query=imgur.com

#

that'd return true for it

sweet ruin
#

so make it say

solemn latch
#

Malicious what?

west skiff
#

Idk why they need to check the website but im guessing it's for user input

sweet ruin
west skiff
#

again it could still just have that all in the query param

#

the safest way is to just use a regex, they're pretty easy

#

you're using js right?

sweet ruin
#

yeah

#

just dont comprehend regex very well

solemn latch
#

Waste of time imo if your just getting images from imgur

sweet ruin
#

well

#

what im doing is letting patrons set rank backgrounds

#

but i want to to be a guaranteed image to save to the database

#

aka a link

#

and imgur seems safest

solemn latch
#

Yeah, waste of time doing regex imo.
Just save the path and attach it back to the url when you get it

west skiff
#

to use it in js all you have to do is js someString.match(/^https?:\/\/imgur\.com.*$/)

sweet ruin
#

hmm okay

west skiff
#

It's null if it's not an imgur link

sweet ruin
#

Ah Okay, so I need to build a link checker to see if it check if it is null

west skiff
#

well no, im just saying the match function returns null if the regex doesn't match

#

so if someString was a google link it'll return null

sweet ruin
#

I see

#

hm okay

#

This will check if it is equal to null right?

surreal notch
#

How to set a timestamp at footer in discord.js v12

sweet ruin
#

@surreal notch js .setTimestamp()

surreal notch
#

Ok

sweet ruin
#

that sets the current timestamp

solemn latch
#

Yeah

sweet ruin
#

Is that yeah for me @solemn latch

#

?

#

or for Ultron

solemn latch
#

You

sweet ruin
#

Okay cool. thank you!

surreal notch
#

@sweet ruin

earnest phoenix
#

alright am here to help, any question

surreal notch
#

Oh I forgot "

#

Nvm I got it

sweet ruin
#

oh okay

#

So my problem is that

#

this regex

#

isnt recognizing imgur links either

#

it still returns "null" I believe

#

wait

#

im a fking idiot

#

the link provided has an "i" in it!

#

;n;

earnest phoenix
#

@sweet ruin dont use a regex for this smh

#

use the built in url module

sweet ruin
#

0.o

#

say whaat

#

Could you explain what you mean more @earnest phoenix ?

earnest phoenix
#

Ok so

#
const URL = require("url").URL;
const url = new URL("https://www.imgur.com/");
const name = url.hostname; // imgur.com
sweet ruin
#

hmmm

grizzled raven
#

wbh and wbh2 are both valid webhooks

nocturne cypress
#

._.

pine aspen
#

Hi!

#

Does anyone know what represents js const collector = message.channel.createMessageCollector() in eris?

pale vessel
#
let responses = await message.channel.awaitMessages(m => m.content === "yes", { time: 10000, maxMatches: 1 });
if(responses.length) message.channel.createMessage("You said yes :)");
else message.channel.createMessage("You didn't say yes :(");```
pine aspen
#

@pale vessel isn't there a built in one in eris?

pale vessel
#

no

#

that's why eris isn't bloated

pine aspen
#

ah

#

ok thanks

glass steeple
#

trying to auto purge some channels but it's not doing, solution??

async def auto_purge():
    cid = [722442867xxxx, 722767457xxxxx, 722767582087xxxxx, 722767758521xxxx]
    for c in cid:
        channel = bot.get_channel(c)
        def not_pinned(msg):
            return not msg.pinned
        await ctx.channel.purge(limit=100, check=not_pinned)
auto_purge.start()```
surreal notch
#
      return message.channel.send("Given User is already muted")
    }
    ```
It doesn't identifying that user have muted role or not
lusty quest
#

@surreal notch is the user cached?

stiff stream
surreal notch
#

@lusty quest Um what

lusty quest
#

is the user cached?

#

also make sure your user is the member object

#

@stiff stream i just say it straight away. this is a bad idea. if someone now writes Mb as My Bad the bot will start to spam

karmic compass
#

@stiff stream message.channel.send({embed:prefixerr})

polar aurora
#

Hello

sick cloud
polar aurora
#

?

earnest phoenix
#

i just realized this, but how does @gilded plank edit the message of the embed to change the timestamp? if you look in #mod-logs it says "yesterday (random time here)" on the footer

lusty quest
#

luca is open source iirc you can look into the github repo

summer torrent
#

with shitty code

earnest phoenix
#

@summer torrent Can confirm

summer torrent
#

there is Luca ascii art

sick cloud
#

@earnest phoenix not edited, that's discord's internal embed code

lusty quest
#

the bot is just filled with cursed code and memes

sick cloud
#

if you set the "timestamp" field

earnest phoenix
#

what would you set the timestamp to?

summer torrent
#

any date object

#

or timestamp

#

doesn't matter

trim saddle
#

@languid dragon did what you said last time we did this

// let req = await import(f.replace(".ts", ""))
// f: "./src/events/messageCreate.ts"

Error: Cannot find module 'messageCreate'
Require stack:
- WHYISITSPICY\Documents\Coding Projects\Economy Thing\src\client.ts
- EXTRAHOT\Documents\Coding Projects\Economy Thing\index.ts
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at EVENHOTTER\Documents\Coding Projects\Economy Thing\src\client.ts:138:31
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'HOTTER\\Documents\\Coding Projects\\Economy Thing\\src\\client.ts',
    'HOT\\Documents\\Coding Projects\\Economy Thing\\index.ts'
  ]
}
languid dragon
#

you should make it path relative

#

i'm assuming you have src/events if you set your tsconfig up correctly, you should be able to import like events/messageCreate etc...

trim saddle
#

uhh

languid dragon
#

it's going to try and find a module in node_modules if you import without any directory

earnest phoenix
#

does everyone here use .js? lol

trim saddle
#

i'm practicing typescript

west skiff
#

oh using a url module was smart!

#

I didnt think of that

sinful sorrel
#

guys

#

i was try to download quick.db

#

but

#

this happen

#

C:\Users\User\Desktop\DiscordBot\node_modules\integer\build\integer.vcxproj(19,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was
not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

#

can anyone help me?

nimble kiln
sinful sorrel
#

il try read

nimble kiln
#

just check the first answer

#

Install that npm thingy there

sinful sorrel
#

ok

glass steeple
#

what's the correct command for this?

@tasks.loop(every=datetime.timedelta(hours=1))

#

how can i specify a specific time under tasks.loop??

clever vector
#

guys what is the problem if the error said
if (!pull.config.blocked) {
^
Cant read property of 'block' of underfined

river thistle
#

what is pull ?

#

is this a command handler ?

lusty quest
#

i think is an array with a config attached

#

or a object

river thistle
#

i guess

#

@clever vector did you put the config thing in module.exports ?

clever vector
#

@river thistle its in index.js

#

that is an error in index.js

river thistle
#

?

#

But i was talking about your handler

clever vector
#

my command handler is commands

river thistle
#

Do from wich function is the error coming ?

clever vector
#

its discord.js

#

home/runner/Viral-Project/index.js:31

earnest phoenix
#

Could you send the complete error log?

lusty quest
#

what exaclty is pull? did you use something like quick.db?

clever vector
#

Yeah

lusty quest
#

this is a critical information that help a lot

#

your query is probably not correctly then

lusty quest
#

where did you define config for pull?

clever vector
#

My bot is that index.js too

#

but

#

it doesnt cost any error

#

its my friend bot

surreal notch
#

How set like that if my bot catches some error it will send in that channel in discord.js v12

golden condor
#

It's a different structure that's why

#

@surreal notch

 try {
//Do something
}
catch {
//Send message in channel here
}```
true ravine
#

I'm using a mysql database but it looks like only one of my shards connects to it - what is the proper way to give all shards access to the same db?

#

Would I create the connection in the index file or something?

blazing ravine
#

bot.guilds.cache.reduce im using this code for collect all members size from all guild but how t collect members size from channel

prime glacier
#

how can we add bot reaction on an embed!

lusty quest
#

message.channel.send(embed).then(react( "πŸ‘ " ))

#

its also possible that you dont need to set the emoji as a string

prime glacier
#

ohk

void vale
#
var msg = await message.channel.send(embed)
await msg.react(':thumbsup:');
msg.react('❌');
prime glacier
#

react is not defined

lusty quest
#

sry you need to pass the message object into then

void vale
#
message.channel.send(embed).then(m => m.react( ":thumbsup: " ))
glass steeple
#

bot is not taking it's own reaction as on_reaction_add , what to do ??

#

I've added a on_message command for bot to react to message , and on_reaction add to give roles

feral aspen
#

Hello

#

Can anyone help me with premium through dms?

glass steeple
#

this is on_message

        if len(set(message.mentions))>= 4:
            await message.add_reaction("βœ…")```

this is on_reaction_add

```if reaction.emoji == "βœ…" :
        if reaction.message.channel.id == 7224428676xxxxxx:
            Role = discord.utils.get(user.guild.roles, name="3PM IDP")
            await user.add_roles(Role)```
#

it's not working

#

i have to add reaction manually for role

blazing ravine
#

is this thumbnail(mentioned.user.avatarURL()) ?

feral aspen
#

Can I request a developer to help me using dms?

#

It is about Premium System.

pale vessel
#

o

scenic chasm
#

is this thumbnail(mentioned.user.avatarURL()) ?
@blazing ravine discord.js?

surreal notch
#

Can someone tell me how to do a person can't warn or mute a person above the role of him in discord.js v12

blazing ravine
#

ye

surreal notch
#

then tell

#

Β―_(ツ)_/Β―

blazing ravine
#
          msg.mentions.members.first() ||
          msg.guild.members.cache.get(args[0]) ||
          msg.member;

        let emb2ed = new MessageEmbed()
       
          //.setAuthor(member.user.username)
          .setImage(member.displayAvatarURL)```
#

but not work

void vale
#

v12: displayAvatarURL()

blazing ravine
#

oh

#

i forgo tdx

#

let me try

surreal notch
#

Can someone tell me how to do a person can't warn or mute a person above the role of him in discord.js v12
@surreal notch

feral aspen
#

Hey, So I have a new system which is a premium feature system, where people purchase my premium using patreon and it gives them the Premium Role.
But I have a problem with it, when someone has the premium role and uses the command outside of the Attitude Support server, it will run an error stating cannot read property 'id' of null
I didn't know what to do, so I decided to put a solution for now and ask the solution for it later, I putted this solution for now,

    if(message.guild.id = "721372685275234436"){
        if(!message.member.roles.cache.has("736643325863395331")){
            return message.channel.send(embedPErrorTwo)
}
}```
My question is, someone has premium role on my support server, and when he uses the command outside the support server, it will error, how to fix?
true ravine
#

Use bot.guilds.cache.get(...) to get your server, then check the roles from there

feral aspen
#

Where?

true ravine
#

What do you mean where?

feral aspen
#

Like how to put it?

true ravine
#

if(bot.guilds.cache.get(...).members.cache.get(msg.author.id) checks if they are in your server

surreal notch
#

Can someone tell me how to do a person can't warn or mute a person above the role of him in discord.js v12

true ravine
#

No

surreal notch
#

Ok

true ravine
#

Just compare the role positions

surreal notch
#

I have to use >?

feral aspen
#

But i dont think you understood my problem @true ravine

#

when someone has the premium role and uses the command outside of the Attitude Support server, it will run an error stating cannot read property 'id' of null

true ravine
#

Yeah because your premium role only exists in your server

feral aspen
#

Yes.

#

Ok one sec.

sullen harness
#

@feral aspen your code only checks for guilds, however when a user DMs your bot it isn't a guild and thus is guild undefined

true ravine
#

Yeah that too

sullen harness
#

You might need to add a check for that

true ravine
#

Personally my bot just ignores all messages in DMs apart from using message collectors

feral aspen
#

@feral aspen your code only checks for guilds, however when a user DMs your bot it isn't a guild and thus is guild undefined
@sullen harness I have it disabled through DMS

#

So if the premium command is runned outside the server, what should it run?

sullen harness
#

Just make it check if it's a guild or a DM

feral aspen
#

Just make it check if it's a guild or a DM
@sullen harness I have DMS disabled.

sullen harness
#

Oh

feral aspen
#

This is the code now if(message.guild.id != "721372685275234436") return message.channel.send("Must be in server") if(message.guild.id = "721372685275234436"){ if(!message.member.roles.cache.has("736643325863395331")){ return message.channel.send(embedPErrorTwo) } }

pale vessel
#

why didn't you fix it?

true ravine
#

Here is the pseudocode you need

server = your server

if your server contains a member whose id matches the message author id{
  if that member object has the premium role{
    //they are premium
  }else{
    //they are not premium
  }
}else{
  //they are not premium
}

If you read the docs you'll be able to figure out how to do that in js

feral aspen
#

I did, I sent the wrong one.

#

if your server contains a member whose id matches the message author id?

true ravine
#

if(bot.guilds.cache.get(...).members.cache.get(msg.author.id) checks if they are in your server
Basically this

feral aspen
#

Oh ok

#

One sec

silver dust
#

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'name' of undefined

#

can anybody help?

digital ibex
#

no idea where the error is coming from

silver dust
#

hm

digital ibex
#

i mean

jolly quail
digital ibex
#

i dont know where its coming from because you provided ur whole code instead of just whats needed

#

just send the code where its erroring

silver dust
#

ok

jolly quail
#

Basically from line 35 u used command.config.something

#

does command.config even exist

silver dust
#

@digital ibex ```.setAuthor(${command.config.name} Command)
.setDescription( - **Command's Description** __${command.config.description || "There is no Description for this command."}__ - **Command's Aliases:** __${command.config.aliases || "No Aliases"}__ )
.setColor('#2EFF00')

    message.channel.send(embed);
}}

}
}```

digital ibex
#

why copy code

#

its quite obvious

silver dust
#

im a beginner

viral iris
#

what's wrong ?

earnest phoenix
#

@silver dust

#

umm

#

yea?

silver dust
#

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'name' of undefined

earnest phoenix
#

You need help with the code?

silver dust
#

yeah

viral iris
silver dust
#

its about help

#

when you say

earnest phoenix
#

This looks weird

silver dust
#

!help warn

#

example

earnest phoenix
#

I have not saw that

#

wait...

midnight blaze
#

it is from command collection

earnest phoenix
#

ok

#

@silver dust is thsi BDFD?

#

Like what app are you using

silver dust
#

discord.js

#

ah

earnest phoenix
#

Can you send me a ss

silver dust
#

ok

earnest phoenix
#

wait...

#

Why are you not using like the other stuff

#

Like Git or the other stuff

#

Thats a webapp?

#

@silver dust what do you use to host the bot?

jolly quail
#

Why r u asking all this

silver dust
#

visualstudiocode

#

Why r u asking all this
@jolly quail idk

earnest phoenix
#

Then what was that website for...

jolly quail
#

The problem probably is command.config doesn't exist

earnest phoenix
#

@digital ibex ```.setAuthor(${command.config.name} Command)
.setDescription( - **Command's Description** __${command.config.description || "There is no Description for this command."}__ - **Command's Aliases:** __${command.config.aliases || "No Aliases"}__ )
.setColor('#2EFF00')

    message.channel.send(embed);
}}

}
}```
@silver dust

silver dust
#

Then what was that website for...
@earnest phoenix code

#

pastebin

#

sourcebin

surreal notch
#
      return message.channel.send("That role is above you as result you can't kick him.")
    }```
Is it correct?
jolly quail
#

command.config.anything with command.anything and try @silver dust

earnest phoenix
#

The problem probably is command.config doesn't exist
@jolly quail look tho

#

command.config.anything with command.anything and try @silver dust
@jolly quail good idea

dull badger
jolly quail
#

Any error showing up?

dull badger
#

im writing isimsiz

#

but bot dont reply

#

no error

jolly quail
#

Try console.log(msg.content) inside the if

dull badger
jolly quail
#

Lol

dull badger
#

brh

#

sorry

jolly quail
#

Np

silver dust
#

@jolly quail THANK YOU SO MUCH!

#

WORKED

jolly quail
#

Ya i told that before too

#

U ignored tho

silver dust
dull badger
#

loom i want make somethings like

#

i tag bot then bot says prefix

#

like it

#

is it same?

jolly quail
#

Hmm

#

Ya kinda

dull badger
#

let's try

surreal notch
#

any dev can help me?

jolly quail
#

don't ask to ask xD

earnest phoenix
#

yes

silver dust
#

working

earnest phoenix
#

don't ask to ask

dull badger
jolly quail
#

Hmm

surreal notch
#

I am working on kick cmd that a person cant kick a person with higher role but how to do that

jolly quail
#

Obviously not

#

U should check message.mentions.first()

silver dust
#

@dull badger turkish i suppose?

surreal notch
#

@dull badger u need to do bot.mention.something like that

jolly quail
#

Something like that

#

Lmao

#

Ya

earnest phoenix
#

I am working on kick cmd that a person cant kick a person with higher role but how to do that
@surreal notch easy

#

just check roles position

#

and compare

surreal notch
#

i tried this but failed - if(target.role.id > message.author.role.id) { return message.channel.send("That role is above you as result you can't kick him.") }
@earnest phoenix

dull badger
earnest phoenix
#

LOL

jolly quail
#

Nah

surreal notch
#

@dull badger Oof

earnest phoenix
#

Hey, I have a couple arrays labeled a1-a27, how would I display all the items inside of that array?

#

i am done

jolly quail
#

First of all @isimsiz and the actual ping r different things

earnest phoenix
#

#GuildMember.roles.highest.position

dull badger
#

so how to

#

loom

jolly quail
#

Hmm

supple oriole
#

bruh

earnest phoenix
#

Hey, I have a couple arrays labeled a1-a27, how would I display all the items inside of that array?

supple oriole
#

-bots @earnest phoenix

gilded plankBOT
#
Bots <:dblCertified:392249976639455232>

@median gustdblCertified
@crimson hare
@tiny lodge
@crystal obsidian

earnest phoenix
jolly quail
#

so how to
@dull badger

#

message.mentions.first()===Client.user something like this

#

Maybe

dull badger
#

hm

jolly quail
#

Bruh msg not message btw

#

msg.mentions.first()===client.user

#

Try this

#

@dull badger

dull badger
#

k

jolly quail
#

msg.mentions.users.first()

#

Sorry

prime glacier
#

can some one tell me i did a setup command which send an embed with a emoji reacted on it i want if someone click on that emoji a new channel create with his/her name

jolly quail
#

@dull badger

quartz kindle
#

@dull badger js cant do ifs without parenthesis

jolly quail
#

That command seems weird

#

Oh ya

#

Lol didn't see

earnest phoenix
#

Hey, I have a couple arrays labeled a1-a27, how would I display all the items inside of that array with a command?

quartz kindle
#

javascript?

earnest phoenix
#

yes

dull badger
quartz kindle
#

you can array.join("some delimiter")

jolly quail
#

At any message the bot will reply

#

Wow

dull badger
#

if i use tag it dont works

#

so i will use this

#

xd

jolly quail
#

try it

#

Once

#

if(msg.mentions.users.first()===client.user){
msg.reply(WHATEVER)
}

dull badger
#

i alr. try

#

hmmmm

#

k

#

dont work

jolly quail
#

error?

dull badger
frigid hinge
#

msg.reply('WHATEVER')*

jolly quail
#

Lmao

#

U forgot strings

#

""

#

Quotes

frigid hinge
#

your welcome ^^

jolly quail
#

@frigid hinge not 'Whatever'

#

I just meant leave it as it is

#

🀣

frigid hinge
#

don't ping me pls :/

jolly quail
#

Ok

#

@dull badger

#

Bro put that in ''

dull badger
#

i saw

jolly quail
#

Try now

dull badger
#

also error

jolly quail
#

Show

dull badger
jolly quail
#

Oof

#

U did like "Hi, The prefix is " * ""

#

I think

dull badger
#

no

jolly quail
#

Then?

dull badger
#

"Hi, The prefix is * "

jolly quail
#

Show the error line

#

Not visible in ss

dull badger
jolly quail
#

I mean the code

#

Which gave error

dull badger
#

owh

jolly quail
#

What's that * doing

dull badger
#

its prefix

jolly quail
#

i mean

#

msg.reply()*

dull badger
#

owh bruh

jolly quail
#

That * after bracket

#

XD

#

And line 12 has an extra bracket I think

digital ibex
#

oh god

#

what is that indention

jolly quail
#

Lol

#

@dull badger delete line 12

dull badger
#

done

#

but

#

also dont works

jolly quail
#

Error

dull badger
jolly quail
#

Show code

#

U deleted that * i presume?

#

@dull badger

#

This one

dull badger
#

delete it?

jolly quail
#

Delete that star

#

Obviously

#

Why's it there

analog roost
#

It’s probably his prefixπŸ˜‚

jolly quail
#

Yeah

#

But after bracket

#

Why?

dull badger
digital ibex
#

indent the code too

jolly quail
#

Np

dull badger
digital ibex
sullen harness
#

@dull badger for the love of god, press shift + alt + f to format your code.

digital ibex
#

because you didnt tell it to

jolly quail
#

@dull badger code

dull badger
jolly quail
#

Damn

#

msg.reply("Hi, the prefix is *")

void vale
#

πŸ˜†

jolly quail
#

Just replace that line with this

void vale
#

learn js

jolly quail
#

I wonder how js actually parsed that

dull badger
jolly quail
#

Np

dull badger
#

@jolly quail can dm

opaque seal
#

Is there any library able to convert voice stream into text and use that text to trigger commands?

earnest phoenix
#

no

#

apis exist though

#

look into google cloud's speech to text

opaque seal
#

So it would be possible

earnest phoenix
#

ive used it several times for final projects in school, it's fun

#

yes

opaque seal
#

I mean, what matters is that the bot is able to receive the audio

earnest phoenix
#

it is

#

however

opaque seal
#

I can't find anything online though

earnest phoenix
#

you need to send valid audio data to start receiving

opaque seal
#

What you mean?

earnest phoenix
#

exactly what i said

#

you cannot receive data as soon as you join the channel

#

instead you need to send data, i usually send some white noise or a beep, and then you'll start receiving audio data for other users

opaque seal
#

Oh ok

#

not hard then

#

What language would be bettter for this task?

#

Because I'm comfortable with js but I think Java would be best

earnest phoenix
#

i accomplished this in c#

opaque seal
#

Wait I can use google's API with any language right?

earnest phoenix
#

yes

#

there are wrappers around the api for almost any language though

opaque seal
earnest phoenix
#

correct

opaque seal
#

Ok

#

Thank you so much

earnest phoenix
#

it's not entirely free though, be sure to look at the pricing

opaque seal
#

Uhm ok

#

And I guess it's CPU heavy

earnest phoenix
#

ug

#

uh

#

no?

sullen harness
earnest phoenix
#

it's just sending bytes to an api

opaque seal
#

I mean the bot has to be listening and receiving audio 24/7

#

You could use wit.ai
@sullen harness isn't that just text AI?

sullen harness
#

Pretty sure its now able to use voice as well.

#

You might have to check it out yourself though.

opaque seal
#

it's not voice

#

I'LL TRY google cloud speech to text

#

Did you use any guide online for that @earnest phoenix?

restive furnace
#

probably just the api docs

earnest phoenix
#

just docs yeah

opaque seal
#

Ok thanks for everything

#

Didn't think that was possible

earnest phoenix
#

ive specifically used ffmpeg + discord.net + google cloud

opaque seal
#

I'll try with Java since I wanna learn that for school

digital ibex
#

i wonder why cry does not have the certified dev role

#

intΓ©ressante

#

en pensant

wary flame
#

Is it allowed to make my bot dm users when they vote for the bot? Or is this against the discord TOS

earnest phoenix
#

it is allowed

#

however it's a 50/50 chance it will actually succeed

wary flame
#

however it's a 50/50 chance it will actually succeed
@earnest phoenix because mutual servers and dms enabled or?

earnest phoenix
#

correct

wary flame
#

Ok thanks

digital ibex
#

for that, pls make it togglable for it to dm / not dm u, cuz i'd not vote for ur bot if it dmed me

honest perch
#

Why

digital ibex
#

its annoying

#

for me anyways

wary flame
#

for that, pls make it togglable for it to dm / not dm u, cuz i'd not vote for ur bot if it dmed me
@digital ibex il do that :) thanks, didnt think about that people might not like it

digital ibex
#

noice

quartz kindle
#

show your commit names

fathom meteor
#

posting my bots stats to top.gg works fine, but once it sends for the tenth times, i get an error
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ready listeners added to [client]. use emmiter.setMaxListeners() to increase limit

digital ibex
#

one sec lemme get some

restive furnace
#

do you have some client listeners inside the vote thing

fathom meteor
#

uhm

#

i dont think so, no

quartz kindle
#

you are setting up dbl inside something

#

like an interval

#

show code

fathom meteor
#
client.once("ready", () => {
   setInterval(() => {
        dbl.postStats(client.guilds.size);
    }, 1800000)
});```
#

this?

digital ibex
#

how do i view the commit history on the website?

#

cant find it anywhere

quartz kindle
#

no, not that, where do you create dbl

#

new DBL()

fathom meteor
#
const dbl = new DBL('token', client);
#

?

quartz kindle
#

and thats not inside anywhere?

fathom meteor
#

no

quartz kindle
#

anyway remove the postStats interval altogether

#

you have the autoposter enabled already

fathom meteor
#

i see

#

thanks

digital ibex
#

i cant find it anywhere

#

oh im dumb

quartz kindle
#

not even that bad lmao

digital ibex
#

i guess i write a lot of unneeded code and then remove it

earnest phoenix
#

i have a mental breakdown in my commit messages

#

or, well, have had

#

github actions killed me

#

but it's a nice CI

quartz kindle
digital ibex
#

n1cΒ£

quartz kindle
#

^ that was because for some reason i was doing commit > npm install > test
instead of save > rebuild > test

silver dust
#

hi

#

im done with my bot

#

but idk how to host it 24/7

earnest phoenix
#

hey

#

but idk how to host it 24/7
@silver dust you using glitch?

silver dust
#

nope

#

visualstudiocode

earnest phoenix
#

hmmm i know only glitch 7/24

silver dust
#

bilmem

earnest phoenix
#

aga tΓΌrkmΓΌsΓΌn

silver dust
#

elbette

#

haha

earnest phoenix
#

lan ingiliz sandΔ±m puahhaha

silver dust
#

aasdnmf-aljsdf

earnest phoenix
#

aga 7/24 yaptΔ±m

unreal edge
#

ay dont sipik târkiş

pale vessel
silver dust
#

ay dont sipik târkiş
@unreal edge ben taym

unreal edge
#

napΔ±osunuz lan hΔ±Δ±

slender thistle
#

-notr

gilded plankBOT
#

İngilizceden başka dillerde sohbet etmek için #memes-and-media kanalını, top.gg hakkında (Türkçe olarak da) destek almak için #support kanalını kullanın.
Bu kanalda Türkçe konuşmayın.

silver dust
#

ok

unreal edge
#

okey

silver dust
#

so we have to speak english while we are able to speak turkish huh?

restive furnace
#

dont use glitch

silver dust
#

i dont

#

it sucks tbh

restive furnace
#

also if you need to speak in turk, go dms

#

i mean

#

to the other guys dms

silver dust
#

it was just a question

restive furnace
#

but basically here, you cant.

jolly quail
silver dust
#

on how to host 24/7

slender thistle
silver dust
#

ok

restive furnace
#

@silver dust getavps

silver dust
#

what

autumn ice
#

Hey, when i do this command on discord --> !eval client.emit("guildCreate", message.guild); the bot should reply true, but it reply false. Someone can help me ?

jolly quail
#

U can buy an EC2 instance or use heroku

silver dust
#

hm

#

lemme watch a tutorial

#

if i could find one

quartz kindle
#

if you're looking for a good hosting solution, you will need to spend some money

#

there are free solutions, but they are not as good

silver dust
#

hm

#

well i saved some money for my bot

digital ibex
#

use it for ur host den lul

quartz kindle
#

a $3/month virtual private server will be more than good enough to start with

blazing portal
#

Hey, when i do this command on discord --> !eval client.emit("guildCreate", message.guild); the bot should reply true, but it reply false. Someone can help me ?
@autumn ice I don't know what you mean with replies. That depends on what your eval command looks like...

silver dust
#

a $3/month virtual private server will be more than good enough to start with
@quartz kindle i might try

digital ibex
#

GG starts at $1

autumn ice
#

@blazing portal I can send you a screen in dm if you want

quartz kindle
#

i'd look into a vps with at least 1gb ram

silver dust
#

i found this

digital ibex
#

when u wont even use 15% of it xD

jolly quail
#

Aws will give u 1 year free ig?

blazing portal
#

The question is, is it emitting the event? are you listening to it?

digital ibex
#

its going to say false because the event already exists

restive furnace
#

Aws will give u 1 year free ig?
1 month they did give for me... skem

#

after 1 month i had to start paying

true ravine
#

I use aws tbh

#

Right I have a question that requires a yes or no answer: Does <ClientUser>.setActivity set the presence for all shards or not?

#

(djs)

quartz kindle
#

you can specify

true ravine
#

Ah thank you

quartz kindle
true ravine
#

Oh rip I didn't see that bit

#

Thanks

quartz kindle
#

however im not sure if it works with the sharding manager

#

you'll probably need to broadcastEval the setActivity

silver dust
true ravine
#

Yeah that's fine I can do that

earnest phoenix
#

@silver dust GCloud also gives you $300 credit and/or a years worth for free @silver dust

#

But it is very expensive after the credit runs out

#

Like triple what some smaller providers charge

#

And you need a credit/debit card to sign up

digital ibex
#

if ur young, i suggest paying monthly since you dont know what you're going to be doing in like the next month

#

you might not even be coding

earnest phoenix
#

GCloud lets you pay monthly & so does basically every other provider, so its no issue

bitter sundial
#

gcloud does have an always free tier too

silver dust
#

nah

#

i finished

#

its hosting 24 7

#

that tutorial worked

quartz kindle
#

that tutorial uses heroku

#

which is one of the "free hosting" options

#

free hosting options exist but may have several limitations and worse hardware, so they are usually not recommended unless you cant afford an actual vps

surreal notch
#
  • heruko resets data every 12 hours
earnest phoenix
#

λ‹ˆμ• λ―Έ

#

λŒμ•„κ°€μ‹¬

surreal notch
#

@earnest phoenix english language only

#

😐

earnest phoenix
#

λ‹ˆμ• λ―Έ λ‹¬λ‚˜λΌ κ°ˆλ•Œ μ˜μ–΄λ₯Ό μ‚¬μš©ν• κ²Œ γ…‹γ…‹γ…‹

umbral pollen
#
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:617:28)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/rbd/pnpm-volume/de343ecc-d6b5-4252-a21d-186c7dc2d5e0/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/index.js:8:11)```