#development

1 messages · Page 254 of 1

quartz kindle
#

cool, then you can try using it

thorn torrent
#

I mean no problem

thorn torrent
#

Ok thanks for the help

past field
#

when I add it, idk if it's messing with how the round are ending or what but it just sends round 1 over and over and over again

#

I want it to be 10 seconds for players to choose, then the results are sent in 2 separate embeds. Green embed showing the surviving players, and a red embed for players who lost medkits or got hunted

quartz kindle
past field
#

and the logs

#

and a video of the gameplay

#

round 1 duplicates

#

and the safe & medkit loss embeds are supposed to send at the same time

#

i need to add a delay of some sort between result embeds and round messages

#

like the rounds are not progressing correctly, but they were before I added to result embeds

#

in the first code i sent

quartz kindle
#

the second one affects the while loop, the first one doesnt actually do anything except delaying the round incrementation for no reason

#

also, this is one of the issues i told you about when you asked me to review your codes before

#

you have a timer that is independent on the actual action flow, which can lead to race conditions

past field
#

oh yeah you did tell me about that pepe_facepalm

quartz kindle
#

your current action flow is like this

#

start loop
send message
start the 10 seconds timer (independent timer)
setup collector
wait for collections
wait for collector end
do things
(somewhere around here the independent timer ends, but its not guaranteed to end after the stuff above ends, it can end sooner than that)

vapid berry
#

Votes wipe on the first of the month at midnight right?

quartz kindle
#

you need to eliminate independent timers and lock everything together into a single flow:
start loop, send message, setup collector, wait for collections, wait for collector end, do things, delay X seconds pefore next round

vapid berry
quartz kindle
vapid berry
#

UTC thank you

#

thats all i needed!

quartz kindle
#

thats what it says on their website

vapid berry
#

Ah i wasnt sure

quartz kindle
#

so you have 2 independent timers

past field
#

yeahh i’m seeing it

quartz kindle
#

to avoid doing this kind of thing, you can wrap events into promises

#

that will give you an easy way to keep everything in a single flow and a single context

#
await new Promise(resolve => {
  collector.on("collect", ...)
  collector.on("end", {
    ...
    resolve();
  })
})
#

no timers needed, no race conditions

past field
#

yes i was just thinking about this

#

you're a genius

quartz kindle
#

lmao

surreal sage
#

I hope someone here knows how to use dnd kit

I want to add sortable and draggable items, they originate from the highlighted red box
I want to drag them into the blank spaces under tiers

I'm not sure what components to put where for this to work

past field
#

@analog patrol ok tim question

#

sorry to tag you specifically

#

but

#

can node canvas create just about anything..?

quartz kindle
past field
#

lawd

#

i gotta learn canvas

#

i have an idea but i feel like it’s going to be impossible for me to learn it lol

#

so the game you helped me with earlier, i’m sure you can visualize it, but it’s a jason vorhees theme of my click war game, a little different

#

i just thought about using canvas to create a map of camp blood of where jason is and where each player it every round and they can use that to decide what they want to do

quartz kindle
#

try making it in an image editor like photoshop for example

#

then the layers you have in photoshop, you can decide which parts are easy to draw (shapes, circles, etc) so that you can recreate them directly with canvas

#

and more complicated graphics you can save as separate images on load onto the canvas

past field
#

ok i may be biting more than i can chew lol

#

ok so i just had this created

quartz kindle
#

you can use that as a base image

#

and add stuff on top of it, like you do in your bingo game

past field
#

this is gonna be fun

#

that’s what i was thinking

#

so i’ll add a “view map” button that have dots on it - 1 to view the players position (it’ll be an ephemeral so it’ll only show their position) and one to show where jason is

lament rock
#

ephemeral images KaedeStare

#

Thats a lot of processing power just for the image to be yeeted

past field
#

and can’t join anymore until i verify it

#

the bingos been working perfectly, i just had to make my board 50% smaller

lament rock
#

Its not so much ram, but it does help. It's more so the CPU hit

#

that would more than likely have to be pushed to its own worker thread

#

or make a thread pool

#

and if you do that approach, dont cache anything in memory unless you have to because the worker threads have their own memory space

past field
#

hmm

lament rock
#

otherwise your main thread will be locked for a while

past field
#

is there a more effective approach? i’m relatively new to this, especially with using images like this for a game like
this

lament rock
#

I already have to do that for my worker nodes

#

Not using js

past field
#

oh

lament rock
#

lmao

past field
#

i hear a lot about rust

#

but i don’t have a clue about anything with that lang

lament rock
#

Meh for image processing, people usually turn to python and its pillow library

#

Now dont get me wrong, you can do image processing in js just fine and have decent performance

past field
#

hmm

quartz kindle
#

its not really a problem as long as you dont abuse your resources

#

dont make images too big, dont re-load images that dont need re-loading

past field
#

i load images once and re use them

quartz kindle
#

you can find a lot of good tips here

#

some of them are only for browsers, but still useful

surreal sage
#

How can I prevent overflow of elements while still letting elements outside of the container

#

I want to use drag and drop, but with the amount of items I have in this list, it wants to overflow, and overflow: auto/hidden causes the items to be stuck in the list

deft wolf
#

🤨

thorn torrent
eternal osprey
#

mayn chatgpt is making me feel some type a way onionpray

sage bobcat
lyric mountain
surreal sage
#

or scroll

#

acts the same as overflow hidden

#

elements cant go outside of the parent

#

at least that's happening to me

surreal sage
quartz kindle
#

the way its usually done is create a copy of the element and set it to position absolute and move it on mouse move

surreal sage
quartz kindle
#

if not, then the copy must be placed elsewhere in the dom as well

surreal sage
#

dndkit's drag overlay might seem better for this

quartz kindle
#

if youre alreqady using dndkit then yeah you should use that

surreal sage
surreal sage
#

nvm I got it!

eternal echo
#

Assgard

past field
#

new board themes for my bingo!

urban delta
#

I need someone who have stripe and a confirmable country for me to confirm my bot, my friend country to confirm payout is not available anymore, and my country, Brazil, is also not available to confirm payout. I need help so my bot can be in more than 100 different servers, please can anyone help?

regal epoch
#

hello

spark flint
#

Verifying a bot is meant to verify that you are a real person

#

its also fraud lol

urban delta
spark flint
#

using someone elses ID to pass verification

#

then unfortunately you dont have any other option

urban delta
#

like, verify from my country uis not asvailable

#

*available

#

i need a team that is confirmed

#

and have payouts

urban delta
spark flint
#

then you can't im afraid

urban delta
#

how to confirm my bot if it don't help?

spark flint
#

wait for Discord to support your country

urban delta
#

i can't await

#

my situation is critical

spark flint
#

unless you are willingly choosing to commit fraud then you dont really have a choice

urban delta
spark flint
#

if you're looking for a life in crime, well done - you've taken the first step! /j

pearl trail
#

damn 💀

urban delta
spark flint
#

lmfao

royal portal
urban delta
#

why it's not important?

#

it's not ajust a discord bot for me, it's also my attempt to profit in life

royal portal
#

what if you dont

urban delta
#

that's why i need to verify it

#

i need to start my life somehow

#

and i don't plan my hardwork being trashe dout

#

*out

royal portal
#

what if it fails

deft wolf
#

Do you seriously think that a discord bot will make you money?

urban delta
#

that's what i'm trying to do

civic scroll
#

@covert gale how to update mc mods from 1.20 to 1.21

#

is it as simple as changing dependencies

#

unfortunate

#

:wah:

#

???????????????????????????????????????????

#

welp, guess no porting

sharp saddle
urban delta
#

ah entendi

#

a princípio @sharp saddle to precisando confirmar meu bot

#

pro discord monetizar

surreal sage
#

hi chat

#

I have an initial width in pixels

#

And I want to transition to the auto (or max-content) width

#

How can I do that plea

surreal sage
#

probably just gonna emulate the auto's width in a diff element

past field
#

so for my bingo game

#

i want to add a select menu string to choose what style board will be played with

#

i have these and the daub markers for them saved in the project folder

#

how would i do that?

lyric mountain
#

A simple dropdown with the images' path as the value

pine willow
#

the discord server invite on the image is so fucking useless in my opinion

#

why do you have that?

past field
pine willow
#

but okay

past field
lament rock
# past field why not?

People are not inclined to type out a url if it's available elsewhere. It's bad UX to make people do that

neon leaf
#

user experience

pearl trail
#

no, it's user xperience

green kestrel
#

i was scrolled back near 24 hours but couldnt resist

timber hatch
frosty gale
# green kestrel

you cannot say that when you literally have mee6 forming an entire enterprise around a shitty paywalled discord bot

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

frosty gale
#

@quartz kindle i swear js has a new redos vulnerability out every day

#

getting chatgpt to generate your regex expression doesnt guarantee it will be safe from redos

deft wolf
#

Mentioning bots that dozens of people work on and have probably invested thousands of dollars in them has no place here

frosty gale
#

maybe not thousands but the barrier to entry is generally very low

#

making a good bot many people will want to use/pay for takes more time than money

#

setting up subscriptions/payments will cost you in transaction fees only if you select the right provider

#

hosting again depends on how optimized your bot is but if youre smart about it you can abuse the hell out of a cheap VPS for ages

#

its more of a combination of luck & gap in the market and time than money

deft wolf
#

I would feel bad taking money from my users and hosting the bot on a free hosting weirdsip

#

This is usually the first thing people reach for when creating their first bot

eternal osprey
#

hey guys i had a question.

eternal osprey
#

Suppose in c i have this:

short i = 0x1234;
short* i_ptr = &i;

when i do i_ptr+1 -> it calculate the following right:
address_of_i + sizeof(i).
So it skips the all of the bytes in memory belonging to variable i right?

In that case, how would i instead get the next byte address of short i?

#

like i_ptr + 0.5 or som?

#

no that's dumb as it needs to read whole bytes.... hmm maybe we can use char* ? That operates on byte level ?

wheat mesa
#

Why would you want to do that? If you really wanted to treat one piece of data as multiple different types, use a union struct. Much easier and safer

eternal osprey
#

my school tells me to

#

they want me to learn about memory page words

#

so they give me a bunch of data types and tell me to display each byte of each data type in memory

#

c is fun tho 🤓

pearl trail
#

damn our curriculum must be same

#

I'm learning that too

hidden gorge
#

Am i doing anything wrong here?

import functions.HTTP.GET;
import functions.HTTP.HttpResponse;
import main.Server.Server;

import java.io.InputStream;
import java.util.Properties;

public class Main {
    public static void main(String[] args) {
        Properties properties = new Properties();
        try (InputStream input = Main.class.getClassLoader().getResourceAsStream("config.properties")) {
            if (input == null) {
                System.err.println("Sorry, unable to find config.properties");
                System.exit(1);
            }
            properties.load(input);

            int port = Integer.parseInt(properties.getProperty("server.port", "8080"));

            String baseURL = properties.getProperty("BaseAPIUrl", "http://localhost");
            String requestURL = baseURL + ":" + port + "/";

            System.out.println("Starting Java API Server on port " + port + ", please wait...");
            Thread.sleep(1000); 

            Server server = new Server(port);
            server.start();

            GET httpGet = new GET();
            HttpResponse httpResponse = httpGet.SendGet(requestURL);

            if (httpResponse.getStatusCode() == 200) {
                System.out.println("API Online!");
            } else {
                System.err.println("API is not online. Exiting process.");
                System.exit(1);
            }

        } catch (Exception e) {
            System.err.println("Failed to start server or make GET request: " + e.getMessage());
            e.printStackTrace();
            System.exit(1);
        }
    }
}
spark flint
#

yeah using java

real rose
#

fr

royal portal
#

running as a minecraft plugin

wheat mesa
#

Although knowing C you can probably just cast the pointer type to a char pointer and it’s fine

sharp saddle
#

C >

eternal osprey
#

casting to a char works fine, and we can then 'iterate' over the memory

wheat mesa
#

Yeah C has a lot of scary casts

crystal wigeon
#

anyone know any free code signing certificates for open source projects?

lyric mountain
neon leaf
#

AAAAAAAHHHHHHHHHHH

why is C++ hiding why its segfaulting aaaaaaaaaaaaaaaaaaaaaaa

#

I think I finally need to learn how to use debuggers

crystal wigeon
#

etc

hidden gorge
lyric mountain
hidden gorge
lyric mountain
#

what are you trying to do with THE CODE?

#

and what's not working

hidden gorge
lyric mountain
#

well, you can replace the debug printers with an actual logger

#

and rename GET to Get or HttpGet for the sake of standard

#

and functions in java are camelCase, not PascalCase like c#

#

and why the Thread.sleep?

#

httpResponse.getStatusCode() == 200 can be replaced with httpResponse.getStatusCode() / 100 == 2 to prevent false-positives

#

dont mix cases in a prop file

#

put Properties properties = new Properties(); in a global scope so u dont initialize it again every time you need to get a prop

#

close the try-with-resources after you finish using the file, to prevent holding resources needlessly

#

that's all ig

wheat mesa
#

I much prefer c# for rest APIs 🙂

lyric mountain
#

oh, no it isn't, catch (Exception e) { dont catch Exception when you can be specific (performance reasons)

wheat mesa
#

Dependency injection is magic but so fun

crystal wigeon
#

hey can i share my open source prject here?

#

i would like some feedback as well 😄

wheat mesa
#

Go for it

crystal wigeon
#

its a noteapp written in rust that allows you to jot down notes from anywhere. its super handy.

#

do try it out

#

id love to hear some feedback.

#

but ye if windows tells you its a malware, its not lol its just not signed and i cant afford

#

its like 100$

#

wtf

#

You can seamlessly create readme.md files with it too

frosty gale
#

i really struggle to see why rust here is necessary

#

from what i see youre using a library that lets you call rust functions from your front end which is svelte

#

youre not really doing anything that native code performance would help with

#

if anything its probably slowing your app down

wheat mesa
#

Just because rust isn’t necessary doesn’t mean it’s not fun and good for learning c:

#

Gotta climb a hill before you climb a mountain

frosty gale
#

if its for learning, sure but they didnt mention that

#

so i gave any regular opinion on the overall state

#

but this should hopefully be useful advice for any future serious projects

slender wagon
#

what would be a good location to buy a vps to get very fast ping from my vps to discord

spark flint
#

ashburn

#

thats the lowest afaik

#

i've had like 3-5ms ping from there

warm swan
#

Is it possible to get rid of the red gradient of top.gg via css code?

sage bobcat
#

One message removed from a suspended account.

warm swan
#

I tried even to inspect mimu, found out how they do it, But once tried didn't work for me...

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

quartz kindle
#

there are some things that for some reason dont work in the test/preview tool, but do in the live page

warm swan
#
:root {
  --top-gg-colors-bg: transparent !important; /* Ensures no background color */
  --top-gg-colors-overlay: transparent !important; /* Removes the red overlay */
  --top-gg-colors-red-500: transparent !important; /* Removes any red highlights */
  --top-gg-colors-red-700: transparent !important;
  --top-gg-colors-red-900: transparent !important;
}

/* Removing any background and shadow from all potential containers */
body, html, .chakra-stack, .chakra-container, .chakra-text, .css-* {
  background-color: transparent !important; /* Forces all backgrounds to be transparent */
  background-image: none !important; /* Removes background images */
  box-shadow: none !important; /* Removes any shadows */
}

warm swan
#

But does not remove gradient still

quartz kindle
warm swan
quartz kindle
#

well this works on the element inspector, but i did not test actually saving it:

body > div > svg {
    display: none;
}
warm swan
#

I will try

#

1 moment, let's see

warm swan
quartz kindle
#

cool

warm swan
#

Thank you so much Kanna_love

quartz kindle
#

np :)

neon leaf
#

@quartz kindle shall I switch from sposoring you on Kofi to doing it on GitHub mighty sir

neon leaf
#

ok sir done

wheat mesa
#

I’ll sponsor Tim when I start getting money 💪

quartz kindle
#

soon™️ :^)

neon leaf
#

shall I keep learning c++ or switch to something with a proper package manager

wheat mesa
#

keep learning C++

#

The packages suck ass but the knowledge is invaluable to all other languages

lyric mountain
#

come to ☕

neon leaf
#

yeah its been pretty fun so far, just the packages part sucks really bad

#

took me 6 hours to install uWebsockets lmao

#

now I got the hang of it I think though

wheat mesa
#

There’s some non centralized package managers but honestly I prefer to just run linux + use cmake

#

Makes C++ infinitely easier

#

find_package() my beloved

neon leaf
#

yeah cmake is decent

lyric mountain
#

in linux it's just a few steps

wheat mesa
#

Eh, it’s their way of locking you into using VS

neon leaf
lyric mountain
#

ms needs to understand that their ide is outdated af, just let it go

#

it's like embarcadero insisting in delphi

wheat mesa
#

I’ve been considering making a custom arduino language in C++ as a way to get into embedded dev but I haven’t had the time

quartz kindle
#

soon™️ :^)

wheat mesa
#

Real

quartz kindle
#

dafuq why did it send that again

#

bugged ass discord for android

wheat mesa
#

For what it’s worth it made sense in the context so you lucked out

quartz kindle
#

lmao

quartz kindle
#

lmfao

deft wolf
frosty gale
frosty gale
quartz kindle
raven nexus
#

how to make this one

#

when use the mouse hover it show local time

real rose
#

I personally use this site

tough condor
#

anyone need help with any bot development using d.py? I'm bored

wheat mesa
#

Learn a language

#

Learn C++

#

Boom now you’re not bored

neon leaf
frosty gale
#

because my c++ repositories are definitely severely out of date now

neon leaf
#

lol

sharp geyser
#
events {
    worker_connections  1024;
}
http {
    server {
        listen 443 ssl;
        http2 on;
        server_name auth.chimeralabs.sh;
        ssl_certificate     /etc/letsencrypt/live/chimeralabs.sh/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/chimeralabs.sh/privkey.pem;;
        location / {
            grpc_pass grpcs://zitadel-enabled-tls:8080;
            grpc_set_header Host $host:$server_port;
        }
    }
}

So I am setting up a auth system, and it recommends this configuration for enabling tls/ssl for it

#

Problem is, this won't work because events is not valid for me, and I also don't really understand it, this is not how I normally setup nginx where I have 2 server blocks, one redirecting http to https, and the other handling https

tough condor
neon leaf
#

yu uh

#

its fun

tough condor
neon leaf
#

Tf

tough condor
# neon leaf Tf

I code on mobile and debug my code and mobile, then host it on a VPS

sharp geyser
#

I code on a gameboy advanced and host it on a gucci microwave

wheat mesa
#

Sell the Gucci microwave and upgrade to a wii

sharp geyser
#

idk man

#

I like being able to destroy an aussies wifi by simply turning it on

tough condor
quartz kindle
#

you dont need to define it in website config files

#

it just tells nginx the max number of connections per thread its willing to accept (global, not per website)

frosty gale
#

@quartz kindle do you know the rules that causes v8 to run the gc?

wheat mesa
#

most garbage collectors use a mark and sweep algorithm in combination with reference counting

#

I’m not sure about v8 specifically but it’s a pretty standard thing so I’d imagine v8 also uses that

quartz kindle
#

there are two GCs (scavanger, mark & sweep) and 3 stages of memory age (nursery, intermediate, old age)

#

scavanger runs often, it has some relation to object creation/deletion/scope change, mark & sweep runs less often and its more based on time and memory use

sharp geyser
#

How do I tell docker to have access to the defaults.yml and steps.yml files? What I currently have, causes it to not be accessible via zitadel

#

time="2024-09-19T21:44:42Z" level=warning msg="unable to read config file" caller="/home/runner/work/zitadel/zitadel/cmd/zitadel.go:73" error="read /defaults.yml: is a directory" file=/defaults.yml

#

for some reason its being treated as a directory

#

yet its clearly not

#

nvm, seemed to have fixed it

#

💀

quartz kindle
#

and a volume with the same name as well

#

am confuse

sharp geyser
#

I am as well

#

I mean to type ./

#

not /

#

💀

frosty gale
#

i wonder why they dont use something like reference counting like rust

quartz kindle
frosty gale
#

reference = 0 = implode

#

so why is a gc even needed at all

quartz kindle
#

they have a whole ass readme on it

frosty gale
#

Make Javascript Fast Again

#

MJFA

sharp geyser
#

I love how I can't send emails through SMTP anymore

#

conn refused iara_smh

surreal sage
#

hi chat

#

uh

#

i tried to install wireguard with wireguard-install

#

but now my server's networking configuration is absolutely fucked

#

i can't ssh in

#

and idfk what to do

#

on debian

#

just gonna recover via backup ig

real rose
#

vnc in

#

and undo your changes

surreal sage
past field
#

@real rose you might be happy about the bingo i’ve been working on!

real rose
past field
past field
real rose
#

YO we got COLOR

spark flint
#

make irish bingo and name it dylan bingo

real rose
#

wtf

#

🍏 🤍 🟧

spark flint
#

jk, make it scottish

past field
#

scottish? what does that look like lol

spark flint
#

scottish dylan sku unfortunately thats a VERY different person

spark flint
#

nvm im thinking of scottish declan

real rose
#

💀

real rose
#

i like the graphics

#

i cant lie

#

p fun for discord

past field
#

my admin gets whatever she wants from me, and she wanted a pink one

scenic kelp
#

er than gc

#

many asterisks

#

but in general it's possible to make GC way more performant than RC

quartz kindle
#

the issue with reference counting is mainly circular references and edge cases

#

the special rules you need to have in place to handle those cases are where most of the performance hit comes from

#

it should still be faster than mark & sweep in most implementations

#

just less flexible/featureful

tough condor
#

it's taken a few days now, but it's now stable, all those hours paid off 😭

scenic kelp
#

which in js really wouldn't matter

tough condor
#

@harsh nova scam / spam idek

#

^

#

oh damm

#

so fast, I wish discord support was as fast as that

sharp geyser
#

How are SRV records used in cloudflare? Can I point a subdomain to a specific port on that ip?

warm surge
#

I use it for minecraft

#

so i dont have find damn ip and port

sharp geyser
#

interesting

#

Well, I am working with smtp, and for some reason I cannot connect to the smtp server

#

and send emails through it

warm surge
#

alright

sharp geyser
#

Seems like its the same issue I had before, where its not sure where to actually be sending this request to

quartz kindle
sharp geyser
#

hi tim

quartz kindle
#

hi yyron

sharp geyser
quartz kindle
#

^ me irl rn

sharp geyser
#

lol

quartz kindle
#

vibing to some synthwave before sleep

sharp geyser
#

im vibing to music

#

while trying to fix my shitty ass smtp issue

#

Idk wtf I am doing wrong if this website can do it correctly

eternal osprey
#

hey guys. I am running on the latest mac and macos version.. what is rogue amoeba and Helper-Tool?

#

They seem hella sketchy

#

I know that rogue amoeba is a certified program, but which 2 items is using/requiring it?

#

the Helper Tool seems to come from this dir:
so maybe it's a Java thing?

untold ocean
eternal osprey
#

i see

#

thanks!

surreal sage
#

have optimizations been made illegal or something

frosty gale
#

but yeah i did abit of a read about it last night

#

it can mess up caches

#

and speculative loads/execution

frosty gale
#

but its quite a big task given their setup

raven nexus
quartz kindle
surreal sage
#

why are we still using gifs

#

the format is so bad

#

in every way

#

if using webm or mp4 would be common practice life would be so much better

#

dear discord, get to work

lyric mountain
#

well, mp4 and webm are for videos

#

but yeah, webp and apng exist

quartz kindle
#

tbh there is not much reason to have a separate format for animated images when video formats do a much better job

warm surge
#

question

#

what does client.guilds.fetch I know it fetchs guilds but does itreally work with sharding as well?

quartz kindle
#

it has "before" and "after" options for pagination

#

its via rest api, so its independent from sharding

warm surge
sharp geyser
#
server {
        listen 443 ssl;
        server_name auth.chimeralabs.sh;
        ssl_certificate     /etc/letsencrypt/live/chimeralabs.sh/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/chimeralabs.sh/privkey.pem;
        location / {
            grpc_pass grpcs://127.0.0.1:8080;
            grpc_set_header Host $host:$server_port;
        }
}

I keep getting 502 bad gateway

#

8080 is listening tho

sharp geyser
#

I fixed it

#

I was dumb and forgot tls/ssl is not configured for it, so I have to use grpc since I am using external tls (aka nginx to handle ssl)

eternal osprey
#

is there a way to make this emoji smaller?

#

\❌

#

[\❌]

pearl trail
#

custom emoji

crystal otter
#

anyone please help how do I get a top.gg servers link

pearl trail
opaque acorn
#

hello, how can i return messages from voice chat channels?

lament rock
#

wdym return messages

#

voice channel messages act the same as if they were in a text channel

timber hatch
#

Does anyone know how to prevent requests to nextjs server actions from external locations?

Allegedly it's implemented by default but my site is currently having an issue where users are attempting to access a route which is only accessible via button, and in this instance the button isn't rendered for them. Implying some level of automation

#

.

^ And despite us not actually serving anything to them it still eats up a function invocation. so our function invocations are just SCALING LIKE CRAZY

earnest phoenix
#

anyone got any good bot website templates (i dont mean dashboards js a nice landing page) c:

solemn latch
#

If they're not using your site to send the request theres a good chance you cant block it.

I'm assuming its hosted via vercel, you might have better luck reaching out to their support and seeing if they can block these requests.

#

Its possible its even an attack; vercel hosted sites are often targeted to increase cost.
If its as much as you're thinking

cloud relic
#

@earnest phoenix look on GitHub

past field
#

@fallen igloo you’d be proud of me!

solemn latch
#

hows it going? 😄

#

did you get it figured out?

sharp geyser
#

Onboarding UI so far

earnest phoenix
#

everything red, seems like something that was given/typed is wrong

spark flint
#

yes

past field
past field
bold crypt
pearl trail
bold crypt
#

or add a image on the left side of the screen and move the form from middle to right (along with the buttons)

#

cuz then from takiyo's suggestion, it would be too much space left

pearl trail
#

because like other big sites, the action buttons are always near the form, even tho there's so much space left around it

lyric mountain
#

The thing with templates is that they're easily recognizable

#

Making a landing page doesn't take much time, and you don't need anything but html + css

earnest phoenix
#

ig i need to make the time

#

tyy

lyric mountain
#

There's always time, just work on it for an hour or so everyday

#

Hardest part is just coming up with the design

bold crypt
bold crypt
#

and this is like in 1 hour

#

no references

#

ofc a lot can be changed

small tangle
#

I can parse JSON now :^)

bold crypt
#

Epic

frosty gale
#

json = not blazingly fast

harsh nova
harsh nova
sharp geyser
harsh nova
sharp geyser
#

:c

#

At least it looks decent

#

and not overpowering

#

Also, here is the version with the buttons closer to the form

#

@pearl trail

#

Also don't ask why it says USD next to first name

#

thats not finished 💀

earnest phoenix
#

where do devs get their docs template from? Top.gg and discord.js's look alike?

spark flint
surreal sage
#

i hate discord.js' new docs

#

the search is so

#

bad

#

at least it was

#

bad impression to me

solemn latch
#

new djs docs?

small tangle
quartz kindle
#

xD

pearl trail
sharp geyser
#

This is current version

#

I have form validation as well, and if you have errors on a current step you can't continue forward

#

Not sure if the blue or the white accents it better

sharp geyser
small tangle
lyric mountain
#

unless you want A LOT of complaints or people trying to find legal breaches

#

ask only the absolutely necessary info, the less you have the better

quartz kindle
sharp geyser
lyric mountain
#

even if it wasn't for lgbt there's still gdpr, which will also ask you why you need to know their gender

quartz kindle
#

you just need a little checkbox for the user to accept your terms

#

they never read it

#

:^)

wheat mesa
lyric mountain
#

perhaps, but this varies from country to country

proven lantern
lyric mountain
#

WHY DOES THIS EMOJI EXIST

proven lantern
#

🫃
🦵

lyric mountain
#

STOP

sharp geyser
#

This should be illegal

bold crypt
#

Hell nah

quartz kindle
#

lmao

frosty gale
#

why is this becoming normal

#

this is at the bottom of github

proper urchin
#

I figured it out and it is div class "star", however I tried adding the icon and all it did was glow yellow. The star still seemed to overlap. Is there a Top.gg supporter that can tell me what I'm doing wrong?

<style>
body {
  background: linear-gradient(to right, #112233, #223344);
  background-attachment: fixed;
  background-size: cover;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to   
 right, #112233, #223344);
  opacity: 0.7;
  z-index: -1;
  transform: translateZ(-1px);
}

body::before:hover {
  transform: translateZ(0);
}

.star, .icon-star {
    color: yellow !important; 
    background-color: yellow !important; 
    filter: none !important; 
}


.star, .icon-star {
    filter: drop-shadow(0 0 5px yellow) !important; 
}



</style>
past field
#

alright need some advice

earnest phoenix
#

i need advice on what i can even do with my bot tbh

past field
#

made a game called “click war1 1v1

#

basically the bot will pick 2 random players each round

#

first person to tap the snipe button wins that round

#

and it keeps going til last player

#

but i’m using collectors

solemn latch
past field
#

is there a way to have the bot send the other player an ephemeral that they didn’t tap it first?

earnest phoenix
#

anyone have ideas i can add to my bible bot? all i really got is a command to set the version, a command tto view versions, an info command o view the commands, and a verse one to fetch a specific verse. idk what to add

solemn latch
chrome tree
#

@proper urchin would be nice to have spacing between each section and maybe have the headlines bit smaller for better reading

earnest phoenix
#

i was gonna try a random verse one but i dont think its possible with the api im using

chrome tree
#

a bible bot?

earnest phoenix
#

yeah

past field
#

maybe have themes of specific verses

earnest phoenix
past field
#

maybe have it post a verse of the day

solemn latch
#

verse a day 😄
Get a verse in a channel

earnest phoenix
#

i tried that but i would have to generate random verses for that. im not sure how i can do that

#

i havent found any apis that are usable to generate random verses

#

mine just generates specific

past field
#

maybe you can add bible trivia

#

you can add some yourself

earnest phoenix
#

i tried that too lol. its just plain with only those 2 commands

solemn latch
earnest phoenix
#

wait can i send links in here

past field
#

maybe create a prayer request modal

solemn latch
#

why not just download the bible in verses?

earnest phoenix
earnest phoenix
#

if i want it in multiple servers i dont know how well that would work

past field
#

create maps

earnest phoenix
#

huh

earnest phoenix
#

so would i just like hold that in a json or whwat

#

im still new to this

chrome tree
#

im gonna search for all angel verses now

solemn latch
#

tbh, its only 4.25 mb. I'm lazy enough I'd just stick it all in memory lmao 😄

earnest phoenix
#

i added a command to allow the user to set a specific version to be used. such as kjv or web. how would i use that for this

#

or should i just forget about that command

past field
# earnest phoenix huh

if you create a map in your command it’ll make the command state unique to that server

#

that’s what i do at least, i’m fairly new too so im sure there’s another/better way

chrome tree
#

what does thy mean

past field
chrome tree
past field
past field
solemn latch
#

interact as far as i know

#

they need to click a button, command or something first

past field
#

ohhh i was whenever the first persons clicks, the collector closes and it just shows “interaction failed” for the loser of that round, i don’t want them thinking that’s why they lost lol

solemn latch
#

instead of closing the collector, keep it open

earnest phoenix
#

should i remove the version stuff. i can just set it so its automatically kjv

chrome tree
solemn latch
#

when you keep it open, use your game state to track what to respond with

solemn latch
#

tbh, its up to you how much work you want to do

#

Thats something I'd work on after getting a base feature set.

past field
#

having a more focused idea on what the purpose of the bot will be might help as well

past field
#

i’m going to eventually switch to listeners for interactions instead of collectors, but i’m most familiar with collectors rn lol

solemn latch
#

you can have 1 collector for a whole game if you wanted

#

or per round

past field
#

but would it need to end before the next round starts?

earnest phoenix
#

for the json i would have to add every verse in quotes.. how do i make this faster

past field
#

idk if you plan to get this app verified or not but

earnest phoenix
#

i give up on this version shit

past field
#

i found this for ya

#

full bible in json format

earnest phoenix
#

im gonna just quit the version stuff and just leave it set to kjv

#

can i add commands that are only usable in one server

past field
earnest phoenix
#

idek how to do this

past field
earnest phoenix
#

im js learning as i go with youtube and chatgpt

#

tbh

past field
earnest phoenix
past field
earnest phoenix
chrome tree
earnest phoenix
past field
earnest phoenix
past field
#

should see the discordjs version in there

#

looks something like

earnest phoenix
#

{
"name": "holybot",
"version": "1.0.0",
"main": "index.js",
"dependencies": {
"axios": "^1.4.0",
"discord.js": "^14.0.0",
"dotenv": "^16.4.5",
"express": "^4.18.2"
},
"scripts": {
"start": "node index.js"
},
"engines": {
"node": ">=16.0.0"
}
}

past field
#

v14

earnest phoenix
#

boom

past field
#

you’re on version 14

earnest phoenix
#

ok

past field
#

ok so make sure i’m understanding

#

you want this not working concurrently across multiple servers

earnest phoenix
#

yes

past field
#

but you also want certain commands to only work on 1 specific server?

earnest phoenix
#

i was thinking of setting up a server with a support command too

#

yeah

past field
#

ok so let’s start with your command that you want working right now

#

what command are you trying to do right now?

earnest phoenix
#

im just working on deleting all the versions stuff to keep a verse command, info command, and random verse command which are all pretty simple

#

im just doing that rn'

past field
#

which one are you needing help with?

earnest phoenix
#

nothing yet

#

i dont think

past field
#

i’m kinda laughing rn because you’re making a bible bot while i’m over here making a jason vorhees game 😂😂

earnest phoenix
#

...

#

fair

#

2 different things

#

on the same platform

#

wow

past field
#

it’s just funny because i’m literally typing my result message rn “Your trap failed. Jason caught you, cut your chest open, ripped your heart out and threw it in his lake.”

past field
earnest phoenix
past field
#

nah but seriously, this is the best place to learn

earnest phoenix
chrome tree
past field
#

and learning the docs!

#

are you using the documentation for djs v14?

earnest phoenix
#

i have no clue

#

what do u guys use to run bots

past field
# earnest phoenix i have no clue
discord.js

discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.

past field
chrome tree
earnest phoenix
#

all im using is pylex

#

since its free

#

and im broke

past field
#

oh i can’t help there

#

i host locally

earnest phoenix
#

i dont need help im just saying

#

it works fine

solemn latch
#

😄

earnest phoenix
#

my .env token never works

#

should i just keep it stored in index.js

solemn latch
#

bad practice

#

thats how so many small bots get their tokens leaked

past field
#

i keep mine separated

chrome tree
earnest phoenix
#

i always get an error

solemn latch
#

what error?

earnest phoenix
#

idk

#

id have to test again

past field
#

where in your project folder are you placing it?

earnest phoenix
#

just my folder

#

its like this

#

i just add a .env file to it

#

is that right?

#

then id just use this to get the command
process.env.BOT_TOKEN

#

with BOT_TOKEN=token in the .env file

solemn latch
#

make sure to install dotenv

#

and initilize it

#
earnest phoenix
#

yes i do

#

it just always gives me this error
Error [TokenInvalid]: An invalid token was provided.
at Client.login (/home/container/node_modules/discord.js/src/client/Client.js:216:52)
at Object.<anonymous> (/home/container/index.js💯8)
at Module._compile (node:internal/modules/cjs/loader:1275:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
code: 'TokenInvalid'
}

solemn latch
#

console.log(process.env.BOT_TOKEN);
Double check it logs correctly

earnest phoenix
#

huh

#

this is what my files looks like

#

i js dont know what im doing wrong

spark flint
#

make sure the token is 100% valid

solemn latch
#

sometimes you have to debug things, so by logging it you can check what you're doing is wrong

spark flint
#

oh the .env is wrong

earnest phoenix
spark flint
#

its .env not .env.txt

earnest phoenix
#

oh

spark flint
#

edit and remove .txt

earnest phoenix
#

how do i fix it

#

welp

#

im an idiot

#

thanks bun

spark flint
earnest phoenix
#

finally got it working

spark flint
#

awesome

earnest phoenix
#

gotta figure out a random verse command now

#

sad

#

i dont have any other ideas for the bot anymore

spark flint
#

the way i recommend finding bot command ideas is think about yourself

#

what do you want in a bot

#

what would make your life easier

#

and make those commands

#

chances are, you'll strike gold and find a feature others are looking for

real rose
#

fr

spark flint
#

ok, making a dominos ordering bot

real rose
#

might have to connect it to some arduinos and spin up some servo motors

real rose
#

you might be onto something

spark flint
#

i've seen plane ticket booking bots before

real rose
#

BRO

spark flint
#

some people make really cool features

#

sometimes its not about usability but instead testing your skills and proving yourself wrong

earnest phoenix
#

@past field any command ideas?

chrome tree
past field
#

do you just want it to display biblical information? you want to have some interactive and engaging/entertainment commands?

earnest phoenix
earnest phoenix
wheat mesa
#

You can ask ChatGPT for some command ideas

earnest phoenix
#

idk what to do

past field
#

not sure if i can be of much help tho

queen needle
earnest phoenix
#

im not sure how to do a verse of the day/random verse

quartz kindle
earnest phoenix
#

yea

quartz kindle
#

so you can pick one from the list

earnest phoenix
#

itd be so much easier if there was an api for that

quartz kindle
#

did you try searching for one?

earnest phoenix
#

it doesnt worm

#

work

quartz kindle
earnest phoenix
#

its reference

#

i use that api to fetch verses

#

u cant do random verses with it

quartz kindle
#

how so? i just did one?

#

that picture is a random verse

earnest phoenix
#

i couldnt figure that out

#

only way i could do it is to fetch specific verses

quartz kindle
#

its on their website

earnest phoenix
#

uh

#

did they just add this, last week when i was working on this it wasnt available

quartz kindle
#

well, according to their github, the random link was added a year ago

#

but its possible they didnt/forgot to push it to live

earnest phoenix
#

maybe i just didn’t see it. but thank you very much

quartz kindle
#

np

earnest phoenix
#

what should i add for my support server

earnest phoenix
#

idk

quartz kindle
#

^

earnest phoenix
raven nexus
#

Hi, i have question of doing send message to whatapp group from discord
I receive Invalid form body still cant get it fix can someone guide me please what did i miss on the code

sharp geyser
#

Give error

quartz kindle
#

files are loaded synchronously so that file would always give undefined when you require it from another file

frosty gale
timber hatch
#

does anyone know any good coding tutorial video creators? just released a new app and want to make a video guide on how to use the api but don't have the time or skillset to do it myself. willing to pay of course

lyric mountain
#

write a documentation instead

#

documentations can be edited, videos are timeless

timber hatch
#

we have a documentations, we just estimate higher adoption rates is we ALSO include a tutorial video

lyric mountain
#

adoption rate will be higher if you make the api known, not by making a tut

#

let people know what it does and why it'd benefit them

lament rock
lyric mountain
#

at the end of the day people will use what they need at that moment, I've used a bunch of largely unknown APIs cuz they were there when I searched for

#

if your api is useful AND findable on google (AND is cheaper than alternatives), people will use it

lament rock
#

Offering free trials is also huge

timber hatch
#

Our API is free. Completely and always.

The API is for OUR app so we're not trying to acquire NEW customers. We're trying to increase adoption of it.

It wouldn't benefit from search queries for example because it doesn't provide value to people who aren't already using our app.

lyric mountain
#

so ur not trying to have people use your api, but your app

timber hatch
#

No. We want our APP users. Using our API

#

We just want to provide as much value as possible by having video tutorials AND documentation

lyric mountain
#

It'll cause more trouble than it's worth (see "discord bot tutorial" issues), but if you're keen on having one then you can probably hire someone in freelancer or similar sites

#

Do note that it'll require a new video everytime you do a meaningful change to the api

crystal wigeon
#

Anyone have a Mac?

#

Can you help me to check if something works?

#

I made a Noteapp and it works on my Mac but I wanna see if it works on others Mac too

#

I don’t wanna pay 100$ a year to get a CA fk Apple

lyric mountain
#

If it works on one mac I'd imaginei it works in other macs too

#

They aren't like normal pcs, they all share the same specs & core software

crystal wigeon
#

the binary i wanted to share didnt work. but it works on my mac

#

just wanted to test that

#

try it out pls :prayge

crystal wigeon
#

How would I use brew

#

hmm

lyric mountain
#

brew isn't limited to CLI, is it?

crystal wigeon
#

I’ll check it out

lyric mountain
#

yep, it's not

crystal wigeon
#

I’m pretty sure they have some kind of certification required to use brew as well

#

Otherwise all sorts of malware will be there

lyric mountain
#

dont think so, else all those libs & tools wouldn't exist

#

no hobbyist would pay $100 to deploy their thing to macs

crystal wigeon
#

I’ll give it a shot then

warm surge
crystal wigeon
#
An app from a code repository that is not notable enough (under 30 forks, 30 watchers, 75 stars).
Electronic Identification (eID) software.```
#

they say if your app is not popular enough they wont accept it

lyric mountain
#

lmao

crystal wigeon
lyric mountain
#

well, now you proceed to ramble about how closed apple is

#

optionally u can make a self-compiling installer for ur tool

#

like, let the users compile themselves, but automate & abstract it

crystal wigeon
#

mmm

crystal wigeon
#

im not able to get it to work with github actions

#

but it works locally

lyric mountain
#

nope, never used gh-actions

#

tim might know it tho

crystal wigeon
#

big scam

#

apple

#

the only reason im trying to use brew is to like bypass that gatekeeper

#

cause thats whats preventing people from using the dmg

#

in teh first place

#

what nonsense is this

lyric mountain
#

you could say it's topggSunglasses a dmg control system

crystal wigeon
#

then how am i supposed to distribute it without signing

delicate zephyr
#

you dont

#

its apple

crystal wigeon
#

how is stretchly doing it

#

see here, it says they didnt buy a 100$ Certificate

#

how they let this on brew

lyric mountain
#

they're whitelisting it apparently

delicate zephyr
lyric mountain
delicate zephyr
crystal wigeon
lyric mountain
#

yes, I'm talking abt how they did it

crystal wigeon
#

My problem is the dmg file itself isn’t opening

#

It also says if you install via brew you don’t need to do that

crystal wigeon
#

but this still didnt work for me

past field
#

ok question

#

so i have a bingo game

#

in my null server i uploaded all 75 bingo
balls and the trophy emojis for it

#

now i want to create a card game, which would require 52 cards

#

actually nvm i just thought of what i could do

#

can use thumbnails

surreal sage
#

aws site

solemn latch
#

I miss my blackjack bot, real decks. Too many bots fake the decks

#

If you're feeling ambitious you can even put it in canvas, makes some cool visuals for users.

past field
#

i had my graphic designer make the cards 😅

solemn latch
#

Way slower

past field
past field
solemn latch
#

canvas is

past field
#

ohhhh

#

i want you to come see my bingo game lol

drowsy sluice
#

سري يا بتش

solemn latch
earnest phoenix
#

how do i script a good ticket system

#

available in only my support server

earnest phoenix
solemn latch
#

I dont really checkout bots, I'm just happy to check out mo's because I've helped a little bit.
Sorry 😔

earnest phoenix
#

ah

earnest phoenix
past field
earnest phoenix
#

how do i

solemn latch
#

You'll need a database, and a fair amount of time.

past field
#

and a site i imagine if you are trying to save the transcripts

earnest phoenix
#

can i make a command only usable and viewable in slash commands in a support server? i want a ticket command that can only be viewed and used in a certain server. how do i do this

#

like if u type / it will show up in the support server but no other servers

past field
earnest phoenix
#

i could send u my script once i get on my pc

#

its just slash commands

past field
#

you can register the command for your specific server id instead of globally

past field