#development
1 messages · Page 254 of 1
I mean no problem
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
can you post the updated code then?
this is the updated code
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
you have a duplicated 10 second delay
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
oh yeah you did tell me about that 
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)
Votes wipe on the first of the month at midnight right?
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
and if so, what timezone is the topgg's server on? I want to wipe my database of votes exactly when topgg wipes theirs
It is important to note that votes for all bots reset to 0 every month, on the first of the month at midnight UTC
thats what it says on their website
Ah i wasnt sure
actually, the duplicated delay there is to wait for the collector's 10 second timeout
so you have 2 independent timers
yeahh i’m seeing it
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
ur amazing
lmao
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
@analog patrol ok tim question
sorry to tag you specifically
but
can node canvas create just about anything..?
its a drawing canvas, it can draw anything
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
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
you can use that as a base image
and add stuff on top of it, like you do in your bingo game
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
yeahh but i host locally and upgraded my RAM to 32gb’s, and my bots not verified yet so rn it’s only in 100 servers
and can’t join anymore until i verify it
the bingos been working perfectly, i just had to make my board 50% smaller
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
hmm
otherwise your main thread will be locked for a while
is there a more effective approach? i’m relatively new to this, especially with using images like this for a game like
this
oh
lmao
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
hmm
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
i load images once and re use them
you can find a lot of good tips here
The element is one of the most widely used tools for rendering 2D graphics on the web. However, when websites and apps push the Canvas API to its limits, performance begins to suffer. This article provides suggestions for optimizing your use of the canvas element to ensure that your graphics perform well.
some of them are only for browsers, but still useful
thank you!!
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
@quartz kindle @warm surge
🤨
🤨🤨🤨🤨
mayn chatgpt is making me feel some type a way 
One message removed from a suspended account.
cant u just add a scroller?
overflow auto
or scroll
acts the same as overflow hidden
elements cant go outside of the parent
at least that's happening to me

can i publish my site and have you tinker around with the css in inspect element? perchance? (to maybe fix it somehow..)
drag and drop effects requires some js
the way its usually done is create a copy of the element and set it to position absolute and move it on mouse move
does position absolute escape the overflow hidden boundary?
i dont recall if z-index can override it
if not, then the copy must be placed elsewhere in the dom as well
if youre alreqady using dndkit then yeah you should use that
do you perchance know how to make it not "jump"?
nvm I got it!
Assgard
new board themes for my bingo!
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?
hello
Thats against TOS
Verifying a bot is meant to verify that you are a real person
its also fraud lol
yeah, but discord don't help
using someone elses ID to pass verification
then unfortunately you dont have any other option
like, verify from my country uis not asvailable
*available
i need a team that is confirmed
and have payouts
i know it can be a fraud, but how am i suppose to confirm my bot if discord don't have confirmation from my country?
then you can't im afraid
how to confirm my bot if it don't help?
wait for Discord to support your country
i'm afraid that Alexandre de Moraes ban discord before i even being able to confirm
i can't await
my situation is critical
unless you are willingly choosing to commit fraud then you dont really have a choice
yeah, i'm willing to do anything i could to start my carrer and my life, even if i need to commit fraud when it's nescessary, which is this case since discord don't help
if you're looking for a life in crime, well done - you've taken the first step! /j
damn 💀
better being a criminal than a tyrant servant
lmfao
i am reporting you to @sharp saddle
why?
why it's not important?
it's not ajust a discord bot for me, it's also my attempt to profit in life
what if you dont
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
what if it fails
Do you seriously think that a discord bot will make you money?
that's what i'm trying to do
@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
ah entendi
a princípio @sharp saddle to precisando confirmar meu bot
pro discord monetizar
leia esse artigo
e este
👍
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 
probably just gonna emulate the auto's width in a diff element
so for my bingo game
i want to add a select menu string to choose what style board will be played with
between these
i have these and the daub markers for them saved in the project folder
how would i do that?
A simple dropdown with the images' path as the value
the discord server invite on the image is so fucking useless in my opinion
why do you have that?
to promote the support server for it?
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
it's not :)
what’s UX?
user experience
i was scrolled back near 24 hours but couldnt resist
does anyone know why og:image on bot links don't get embedded in discord?
Database of 110,000 anime/game characters: make and customize the best collection in your server. 400 commands, multiplayer games and more!
you cannot say that when you literally have mee6 forming an entire enterprise around a shitty paywalled discord bot
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.
One message removed from a suspended account.
@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
Read his messages. They sound like messages from a 13-year-old who created the first discord bot and wants to be rich
Mentioning bots that dozens of people work on and have probably invested thousands of dollars in them has no place here
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
I would feel bad taking money from my users and hosting the bot on a free hosting 
This is usually the first thing people reach for when creating their first bot
hey guys i had a question.
cant say what
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 ?
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
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 🤓
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);
}
}
}
yeah using java
fr
After looking this up it seems somewhat more complex than I thought, most people are using bit shifts
Although knowing C you can probably just cast the pointer type to a char pointer and it’s fine
yeah just tried it out! It works
casting to a char works fine, and we can then 'iterate' over the memory
Yeah C has a lot of scary casts
anyone know any free code signing certificates for open source projects?
well, aside from using System.out.println and printStackTrace, and naming a class GET instead of using the standard, idk, what are u trying to do?
AAAAAAAHHHHHHHHHHH
why is C++ hiding why its segfaulting aaaaaaaaaaaaaaaaaaaaaaa
I think I finally need to learn how to use debuggers
what?
code signing certificate for like windows to trust the app
etc
I'm working on a Backend Server API for my Company
yes i do
nothing broken i was just asking if i could improve it
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
I much prefer c# for rest APIs 🙂
oh, no it isn't, catch (Exception e) { dont catch Exception when you can be specific (performance reasons)
Dependency injection is magic but so fun
Go for it
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
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
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
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
what would be a good location to buy a vps to get very fast ping from my vps to discord
One message removed from a suspended account.
Do you know how to?
I tried even to inspect mimu, found out how they do it, But once tried didn't work for me...
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
did you try in the test tool only or did you try actually saving it?
there are some things that for some reason dont work in the test/preview tool, but do in the live page
: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 */
}
This is what i've found on mimu top.gg which is what i was trying doing
But does not remove gradient still
well this works on the element inspector, but i did not test actually saving it:
body > div > svg {
display: none;
}
You're a legend, Works perfectly!
cool
Thank you so much 
np :)
@quartz kindle shall I switch from sposoring you on Kofi to doing it on GitHub mighty sir
lmao sure
ok sir done
I’ll sponsor Tim when I start getting money 💪
soon™️ :^)
shall I keep learning c++ or switch to something with a proper package manager
keep learning C++
The packages suck ass but the knowledge is invaluable to all other languages
come to ☕
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
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
it still boggles me how complicated it is to setup a C++ env on windows, like, why?
in linux it's just a few steps
Eh, it’s their way of locking you into using VS
this is 90% of it, ill upload it on github later when I figure out some stuff https://pastes.dev/WyPxNPg2y3
ms needs to understand that their ide is outdated af, just let it go
it's like embarcadero insisting in delphi
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
soon™️ :^)
Real
For what it’s worth it made sense in the context so you lucked out
lmao

ill sponsor him once but only so he can pay the guy to fix the transformer @quartz kindle
lmao, thanks for the scam
<3
just curious does it show my github for you if its private
it does yeah
im quite proud tbh, this took me way shorter than expected https://github.com/0x7d8/papyrus-cpp
C++ Version of Papyrus (https://github.com/PurpurMC/papyrus) for fun - 0x7d8/papyrus-cpp
i need to do this linked repository thing on my projects
because my c++ repositories are definitely severely out of date now
lol
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
nuh uh
considering I'm making all my stuff on mobile, nuh uh
Tf
I code on mobile and debug my code and mobile, then host it on a VPS
I code on a gameboy advanced and host it on a gucci microwave
Sell the Gucci microwave and upgrade to a wii
what about a Nintendo 64 ‼️‼️
events is a global config present in the main nginx.conf file
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)
@quartz kindle do you know the rules that causes v8 to run the gc?
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
i dont know the exact rules, but its likely a combination of object age, program idle time, memory in use, memory requested by the program and/or other factors
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
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
💀
you have both /defaults.yml and ./defaults.yml in there
and a volume with the same name as well
am confuse
weird
i wonder why they dont use something like reference counting like rust
they do, its included in there somewhere
they have a whole ass readme on it
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
i can't resolve google.com
and idfk what to do
on debian
just gonna recover via backup ig
heh funny thing is i have no idea what changes were made
@real rose you might be happy about the bingo i’ve been working on!

it’s coming along so well
YO we got COLOR
make irish bingo and name it dylan bingo
jk, make it scottish
scottish? what does that look like lol
scottish dylan
unfortunately thats a VERY different person
nvm im thinking of scottish declan
💀
i have an emoji bingo too!
halloween themed
my admin gets whatever she wants from me, and she wanted a pink one
rc is slow
er than gc
many asterisks
but in general it's possible to make GC way more performant than RC
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
it's taken a few days now, but it's now stable, all those hours paid off 😭
atomicity is the big loss though no
which in js really wouldn't matter
@harsh nova scam / spam idek
^
oh damm
so fast, I wish discord support was as fast as that
How are SRV records used in cloudflare? Can I point a subdomain to a specific port on that ip?
yes
I use it for minecraft
so i dont have find damn ip and port
like this
interesting
Well, I am working with smtp, and for some reason I cannot connect to the smtp server
and send emails through it
alright
Seems like its the same issue I had before, where its not sure where to actually be sending this request to
yeah in case of multithreading it becomes even more complicated
hi tim
hi yyron

^ me irl rn
lol
vibing to some synthwave before sleep
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
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?
Helper tool is probably just a script that does some stuff for java, nothing serious. Rogue amoeba afaik makes audio related tools, so maybe some audio related software needs this as a requirement, nothing to be worried about
have optimizations been made illegal or something
youre slow
but yeah i did abit of a read about it last night
it can mess up caches
and speculative loads/execution
id love to see v8 do a test implementation of full on reference counting to benchmark
but its quite a big task given their setup
Hi, what did i do wrong seem i cant fix it
you have an embed field with no value
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
tbh there is not much reason to have a separate format for animated images when video formats do a much better job
question
what does client.guilds.fetch I know it fetchs guilds but does itreally work with sharding as well?
it can fetch up to 200 guilds per call
it has "before" and "after" options for pagination
its via rest api, so its independent from sharding
Ahh
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
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)
custom emoji
hello, how can i return messages from voice chat channels?
wdym return messages
voice channel messages act the same as if they were in a text channel
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
anyone got any good bot website templates (i dont mean dashboards js a nice landing page) c:
What are the odds they are sending that request not via a browser? 👀
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
@earnest phoenix look on GitHub
@fallen igloo you’d be proud of me!
wrong woo 😄
hows it going? 😄
did you get it figured out?
Onboarding UI so far
everything red, seems like something that was given/typed is wrong
yes
yes thank you!!
@solemn latch
looks good
what if you put the buttons there. idk imo it's better because user doesnt need to move their mouse that far to the very left/right
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
because like other big sites, the action buttons are always near the form, even tho there's so much space left around it
I recommend making one yourself
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
school 
ig i need to make the time
tyy
There's always time, just work on it for an hour or so everyday
Hardest part is just coming up with the design
I started this 20 mins ago, not finished so
I can parse JSON now :^)
Epic
json = not blazingly fast
Why is it so red
Wrote a parser?
I like red
Yeah I can see that lol
: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 💀
Top.gg documentation website. Contribute to top-gg/docs development by creating an account on GitHub.
i hate discord.js' new docs
the search is so
bad
at least it was
bad impression to me
new djs docs?
Yess
better than before
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
thanks :D
No, currently ive only implemented the "perfect" path. I need to add a whole lot of error handling / reporting
quick tip, dont
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
just ask for chromosomes instead
Its hilarious this has become a problem
even if it wasn't for lgbt there's still gdpr, which will also ask you why you need to know their gender
chromosomes you can argue for scientific research
you just need a little checkbox for the user to accept your terms
they never read it
:^)
Isn’t this something you can get around by having a “prefer not to say” option
perhaps, but this varies from country to country
what do you mean? 🫃
WHY DOES THIS EMOJI EXIST
STOP
This should be illegal
Hell nah
lmao
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>
alright need some advice
i need advice on what i can even do with my bot tbh
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
music command from scratch, dont use anything but ffmpeg 😄
is there a way to have the bot send the other player an ephemeral that they didn’t tap it first?
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
they need to interact afaik
@proper urchin would be nice to have spacing between each section and maybe have the headlines bit smaller for better reading
^
i was gonna try a random verse one but i dont think its possible with the api im using
a bible bot?
yeah
what exactly is its use? just to pull up the bible?
maybe have themes of specific verses
honestly idk i was just trying to do something similar to the already existing bible bot. i just cant figure out what to do
maybe have it post a verse of the day
verse a day 😄
Get a verse in a channel
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
i tried that too lol. its just plain with only those 2 commands
you're using an api?
maybe create a prayer request modal
why not just download the bible in verses?
im not sure how to do that
yeah i added that for a time
if i want it in multiple servers i dont know how well that would work
create maps
huh
lol
im gonna search for all angel verses now
tbh, its only 4.25 mb. I'm lazy enough I'd just stick it all in memory lmao 😄
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
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
what does thy mean
are you asking me?
general question im not native english and saw it in the verse thing
ah, @earnest phoenix was asking about their bot working across multiple servers. i was suggesting creating a map in the commands - meaning anytime the command is initiated in a server - all of its interactions are saved in a map for THAT server so that it won’t affect any other server concurrently
interact afaik?
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
instead of closing the collector, keep it open
should i remove the version stuff. i can just set it so its automatically kjv
like a dev version of the bot that only works in that one server?
when you keep it open, use your game state to track what to respond with
?
this is so hard
tbh, its up to you how much work you want to do
Thats something I'd work on after getting a base feature set.
having a more focused idea on what the purpose of the bot will be might help as well
meaning i don’t need collectors every round?
i’m going to eventually switch to listeners for interactions instead of collectors, but i’m most familiar with collectors rn lol
but would it need to end before the next round starts?
for the json i would have to add every verse in quotes.. how do i make this faster
have you tried finding one that might also exist? i never looked so idk
idk if you plan to get this app verified or not but
i give up on this version shit
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
yes you can set a check
idek how to do this
what version of djs are you using?
wdym
im js learning as i go with youtube and chatgpt
tbh
what version though? v14?
i have no clue
are you near your pc?
im on it
sounds like a actual good combo
indeed
go to your package.json file
yup
{
"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"
}
}
v14
boom
you’re on version 14
ok
ok so make sure i’m understanding
you want this not working concurrently across multiple servers
yes
but you also want certain commands to only work on 1 specific server?
ok so let’s start with your command that you want working right now
what command are you trying to do right now?
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'
which one are you needing help with?
i’m kinda laughing rn because you’re making a bible bot while i’m over here making a jason vorhees game 😂😂
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.”
well if i can be of any assistance let me know, but definitely create a map for the commands you want used concurrently
yeah im jsut trying to learn this stuff. its confusing
it is, but this community is the best place to be to learn. no one here judges, they’re very helpful and have gone the extra mile to teach me so much. @solemn latch @deft wolf and @quartz kindle will tell you about how i come here and annoy them with questions all the time 😂😂
nah but seriously, this is the best place to learn
ill take ur spot! dont worry
you wont get smarter without asking 😉
as in hosting?
discord js and a linux vps for hosting 24/7
yeah
all im using is pylex
since its free
and im broke
we love when you ask questions though
😄
i keep mine separated
i usually just use a config.json file
my .env file never connects though, idk how
i always get an error
what error?
where in your project folder are you placing it?
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
make sure to install dotenv
and initilize it
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'
}
console.log(process.env.BOT_TOKEN);
Double check it logs correctly
make sure the token is 100% valid
sometimes you have to debug things, so by logging it you can check what you're doing is wrong
oh the .env is wrong
it is i just copied it
its .env not .env.txt
oh
edit and remove .txt

finally got it working
awesome
gotta figure out a random verse command now
sad
i dont have any other ideas for the bot anymore
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
ok, making a dominos ordering bot
might have to connect it to some arduinos and spin up some servo motors
BRO
some people make really cool features
sometimes its not about usability but instead testing your skills and proving yourself wrong
this tbh
@past field any command ideas?
xd
i can try to think of some but i need a better idea of the primary purpose of this bot
do you just want it to display biblical information? you want to have some interactive and engaging/entertainment commands?
i have no clue honestly. just to spread gospel maybe and i guess just a general bible bot
would u be open to me inviting u to my testing server to view it
You can ask ChatGPT for some command ideas
i been doin that
idk what to do
yeah sure
not sure if i can be of much help tho
Idk what you have on it it, but:
Bible quizzes, allow the user to choose new testament and old testament, and what book(s)
Bible verse a day
Obviously look up any Bible verse
Annotations of Bible verses
im not sure how to do a verse of the day/random verse
you need to have a list of verses stored somewhere
yea
so you can pick one from the list
itd be so much easier if there was an api for that
uh
did they just add this, last week when i was working on this it wasnt available
well, according to their github, the random link was added a year ago
but its possible they didnt/forgot to push it to live
maybe i just didn’t see it. but thank you very much
np
what should i add for my support server
idk
^
yk how to make support discord servers?
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
Give error
does that even export anything? i dont think you can do module.exports from inside an async function
files are loaded synchronously so that file would always give undefined when you require it from another file
nope
i dont give anything
the definition of undefined behaviour in js
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
we have a documentations, we just estimate higher adoption rates is we ALSO include a tutorial video
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
You can asynchronously assign to module.exports BUT the value won't be there when the require statement returns from execution obviously
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
Offering free trials is also huge
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.
so ur not trying to have people use your api, but your app
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
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
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
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
inb4 kernel panic
actually no it didnt. to distribue your macos app you either need to share the source code and get the user to compile it or you need to pay them 100$ a year to be able to share binaries
the binary i wanted to share didnt work. but it works on my mac
just wanted to test that
try it out pls :prayge
cant u use brew?
It’s an application tho like UI app
How would I use brew
hmm
brew isn't limited to CLI, is it?
I’ll check it out
I’m pretty sure they have some kind of certification required to use brew as well
Otherwise all sorts of malware will be there
dont think so, else all those libs & tools wouldn't exist
no hobbyist would pay $100 to deploy their thing to macs
bro Familyfriendly is going get that beer hide it
okay it looks like i cant use brew
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
lmao
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
mmm
okay so do you know how to use self-signing certificates to sign your app?
im not able to get it to work with github actions
but it works locally
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
you could say it's
a dmg control system
then how am i supposed to distribute it without signing
how is stretchly doing it
see here, it says they didnt buy a 100$ Certificate
how they let this on brew
they're whitelisting it apparently
One of the most common complaints you’ll hear from pretty much every single person that decides to try their hand at mobile app development for iOS has to do with Apple Developer accounts. Apple Developer account required? $99/year?! Outrageous! But wait, it turns out this is no longer the whole story. First off, yes, you […]
you only need a dev account if you want it on the app store i think
thats fine but like you need to get the app on brew first no?
yes, I'm talking abt how they did it
But in the screenshot, they are whitelisting it after downloading and opening the dmg file
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
okay i found something: https://stackoverflow.com/questions/65456760/can-apple-silicon-apps-be-signed-with-a-self-signed-certificate-when-distributin
but this still didnt work for me
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
aws site
card games are so fun to work with
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.
would that be more efficient than using thumbnails?
i had my graphic designer make the cards 😅
Way slower
thumbnails would be slower?
canvas is
سري يا بتش
dm a server inv
checkout my bot fr
I dont really checkout bots, I'm just happy to check out mo's because I've helped a little bit.
Sorry 😔
ah
^
a little????? understatement!!
how do i
You'll need a database, and a fair amount of time.
and a site i imagine if you are trying to save the transcripts
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
how do you register your commands?
idek
i could send u my script once i get on my pc
its just slash commands
you can register the command for your specific server id instead of globally
ok sounds good







