#development
1 messages · Page 163 of 1
then this is the reason
it's loading the commands before the shard is loaded
u can register guild commands before starting your bot
why would that be the issue
how would u register guild commands if no guild is available?
the guild don’t need to be a available ? you can register them via the guild id
ai will take over wont it https://fs.rjns.de/v/FoHGNxEycIEoTROZtA
i’ve done it before
u dont have the id before it becomes available
unless u have it stored somewhere else
why wouldn’t you store it elsewhere
^
are you saying he’s registering guild commands to every guild his bots in?
what’s the point of that
^
"read above smartass"
the context
what context
well i don’t think your answer is useful
good thing I didn't ask
you can register guild commands without your bot being started
with the guild id? are you sure you're registering guild commands, cus you said "i think".
what is guildId
none of those are defining guildId
Can someone explain why I might receive test votes succesfully but not the real votes?
Not real votes
i have it setup to print out either on my server. the test votes make it through, the real votes dont.
how can a message be sent by nobody?
Webhook
One message removed from a suspended account.
the bot wasnt dm'ed
One message removed from a suspended account.
though I do need to do that that is a good shout
One message removed from a suspended account.
all the context I have is that crash report and thats it
currently I put this in there that might fix the issue
hasnt crashed so far
w solution
ah cool I guess
according to the docs: Missing for ephemeral messages and messages from webhooks
you get message create event for ephemeral messages 🤨
isn't that a privacy issue
no idea, but thats what the docs say lol
maybe its ephemerals sent by the bot itself
Hmmm how odd
The bot is in 8 ish servers and im not in all of them so I can't really track down what exactly caused it but it seems to be fixed for the time being.
All I need that bit of code for was just for a joke anyway. It was so when my mate said yes the bor would reply no and thats it really
well
as tim said it was either a webhook or ephemeral message your bot sent
when it comes to the discord api, and especially discord.js, its always a good idea to check everything, just in case
What's up people
i doubt discord would send message create events for ephemeral messages not sent by the bot
sounds like a privacy issue
also, when it comes to using code/libs made by other people, its always a good idea to check everything as well
you never know if and how much you can trust their typings/docs
tim wants you to read the entire libaries code so you understand it 😁
nah
just add a bunch of ifs in your code
to make sure the thing thats supposed to exist actually exists
what if its closed source
do you want me to fire up ghidra and start decompiling it
pretty sure a library can’t be closed source
how would it work
pretty much same answer as above
do runtime checks
not in js, but it can in other languages
it also can in certain js environments
for example nwjs supports loading compiled bytecode
clearly has never heard of elf libraries
or dlls
yeah
bro doesn’t know what a compiler is how you expect him to know that 😭
i know what a compiler is
stop lying
What does a compiler do
it compiles :^)
A compiler is a special program that translates a programming language's source code into machine code, bytecode or another programming language. The source code is typically written in a high-level, human-readable language such as Java or C++.
lmao
also guys
bro really stole this from https://www.techtarget.com/
i need help
my computer screen keeps flashing black
for like a millisecond
every like
3 minutes
if youre an amazing coder you should be able to solve this
check your graphics drivers and unplug/replug your display cable
maybe reseat your GPU too just in case
One message removed from a suspended account.
One message removed from a suspended account.
ok
girlboss are you also a computerboss?
help me with the above ^^^
imma try reseating my gpu tomorrow
One message removed from a suspended account.
One message removed from a suspended account.
Pretty sure it’s a skill issue
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
i update my drivers with gforce experience right?
issue de skill
One message removed from a suspended account.
ok i have the latest drivers i think
Yes
One message removed from a suspended account.
no
the attitude was familiar
(these guys are paranoid )
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.
do you have the same blood type
i have more concerning issues than all this speculation
i hope my graphics card ain't broken
i don't wanna buy a new one 🙁
One message removed from a suspended account.
would be a real shame
One message removed from a suspended account.
someone pinged?
One message removed from a suspended account.
oh I'm blind
One message removed from a suspended account.
does it look like i got an extra power supply laying around
it can't be your psu
when it flashes black does the monitor show up something like "display port" or "hdmi" popup like you would see if you just turned it on
One message removed from a suspended account.
Hey is there a way I can load test any discord bot?
Like to see if it can handle 100k users or something
performance testing
One message removed from a suspended account.
no it just like
a very quick black blink
To simulate huge traffic basically
One message removed from a suspended account.
Just to test performance of the bot
like 100k people spamming your bot?
Kinda yeah like concurrent users
To see how much scaling would be needed etc
Cause running shards on 1 machine is probably not ideal
🤷 maybe
how do these bots with millions of servers handle stuff
tim can probably answer this
maybe he'll see
they all do it differently but general principles apply stuff like increasing your resources like hardware obviously but also distributing your processing across multiple cpu cores and even different machines if its advanced enough
also fine tuning everything as you go for example if your database is slow maybe look at your models or use another database that can better handle load
smart caching probably as well
as you scale up you need to aim to get more out of what you already have with less
there is no set way it all depends on what your bot does and the kind of work youll be doing
a music bot will probably have a much more complicated stack and scaling procedure than a rpg bot or something
someone should make a library that emulates a specific amount of guild and shards for your bot and send fake events with the content being your bot commands (and other random messages) to test your bot
you could do it with existing libs in a janky way but it'd be cool to have a lib dedicated for it
i will make it (maybe)
To add one to what Chloe said, I do know some bots have instances of the bot. So for example shard 1 -> 10 will be an instance 11-20 ect ect.
guyz my bot dosent show slash cmds in my server... what i have to chnage in this??
My first recommendation: don’t copy paste code and expect it to work for you, especially if you don’t know how to debug it
I have a feeling it’s going to be difficult to find help with your question because you’re giving us code that you obviously did not write, and therefore we know in advance that it’s going to be difficult to help
bro ik
immediately denied once i saw the word blockchain
thats my bot
i forgot to check the applications.commands box in dev portal
wish i could claim myself as "highly skilled"
This isn’t applicable anymore
All bots now automatically get “applications.commands” when you add
yeah ik but i made that bot a year ago
and today i was thinking to add something to it
but thank you
same
module Say where
say :: Integer -> String
getHead :: String -> Char
getTail :: String -> String
getPrefix :: Integer -> String
converter :: Char -> Integer
converterString :: String -> Integer
parseWay :: String -> String
integerCheck :: Integer
integerCheck = 0
converterString s = read s
converter n
| n == '0' = 0
| n == '1' = 1
| n == '2' = 2
| n == '3' = 3
| n == '4' = 4
| n == '5' = 5
| n == '6' = 6
| n == '7' = 7
| n == '8' = 8
| n == '9' = 9
getHead x = head x
getTail x = tail x
getPrefix n
| n == 2 = "ty"
| n == 3 = " hundred"
| n == 4 = " thousand"
| n == 5 = " thousand"
| n == 6 = " million"
parseWay n = if length n /= 5 then (say (converter (getHead n)) ++ getPrefix (fromIntegral (length n)) ++ " " ++ say (converterString (getTail n))) else say (converterString ([(n !! 0)] ++ [(n !! 1)])) ++ getPrefix (fromIntegral (length n)) ++ " " ++ say (converterString (drop 2 n))
say 0 = "zero"
say 1 = "one"
say 2 = "two"
say 3 = "three"
say 4 = "four"
say 5 = "five"
say 6 = "six"
say 7 = "seven"
say 8 = "eight"
say 9 = "nine"
say 10 = "ten"
say 11 = "eleven"
say 12 = "twelve"
say 13 = "thirteen"
say 14 = "fourteen"
say 15 = "fifteen"
say 16 = "sixteen"
say 17 = "seventeen"
say 18 = "eighteen"
say 19 = "nineteen"
say 20 = "twenty"
say 50 = "fifty"
say n = if (all (== '0') (show n)) || converter (getHead (show n)) == integerCheck then say (converterString (getTail (show n))) else parseWay (show n)
i tried to create a natural language parser, but the case say 0 is always emitting a zero whenever the end is 0.
So:
say 200 -> two hundred zero
say 2000 -> two thousand zero.
bro has all the crypto stack up his sleeve
@frosty gale
they probably lost the source after so long
can't blame them, people wanted the games back on steam
how can i remove these suggestions?
Not sure from what I can see they're probably built in to your handler or something
oh damn
cuz uk
when i play from yt or ym i.e youtube or youtube music it actually dosent play anything
nono in the code
damn it is lavalink
It is a laavalink
thats actually wild tho
why remove the drm anyways
but it needs to be lavalink.subdomain.tld or just domain.tld
did the servers shut down
replit does not support lavalink anymore
it says lavalink-replit
replit doesn't support lavalink
oh
so where should i have to host new one>
you'd probably need to buy a server at a hosting
i dont know anyone that host's lavalink or unless you want to use public lavalinks
but thats unsafe
yeah
can i use from lavalink?
use those
bruh public lavalink
[07-09-2023 11:48:24]: [ERROR] Node "ssl.horizxon.studio" encountered an error: write EPROTO C087AECC087F0000:error:0A000458:SSL routines:ssl3_read_bytes:tlsv1 unrecognized name:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1586:SSL alert number 112
.
[07-09-2023 11:48:24]: [WARN] Node "ssl.horizxon.studio" disconnect because [object Object].
[07-09-2023 11:48:54]: [LOG] Node "ssl.horizxon.studio" reconnected.
[07-09-2023 11:48:54]: [ERROR] Node "ssl.horizxon.studio" encountered an error: write EPROTO C087AECC087F0000:error:0A000458:SSL routines:ssl3_read_bytes:tlsv1 unrecognized name:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1586:SSL alert number 112
.
[07-09-2023 11:48:54]: [WARN] Node "ssl.horizxon.studio" disconnect because [object Object].
use non ssl lavalinks
kk
Just buy a VPS from a VPS provider and host them yourself, there are pretty cheap options available
[07-09-2023 11:50:45]: [READY] Node "54.38.198.24" connected.
[07-09-2023 11:50:45]: [ERROR] Node "54.38.198.24" encountered an error: Unexpected op "ready" with data: [object Object].
what if bro has no money
Skill issue
yep thats the issue lol

Get a job 
fr
dayum
what if bro is not old enough for a job
at the age of 19?
nvm
skill issue then
Yeah?
i work for a hosting company
i think this aint a place to bully me -_-
fr
[07-09-2023 11:50:45]: [READY] Node "54.38.198.24" connected.
[07-09-2023 11:50:45]: [ERROR] Node "54.38.198.24" encountered an error: Unexpected op "ready" with data: [object Object].
dunno tbh you'd have to move from replit
i get this now
i just work retail once a week and thats enough to fund all my stuff
starting full time soon though
havent really needed one rn but i have a very cheap one that i forgot about but keep paying for lol
it only hosts 2 things i think
i dont own
mb
bro works for hosting company but has no vps
but what this actually mean?
DigitalOcean, Google Cloud Platform, and Hetzner 🔛🔝
and digital ocean just tries to get you to pay as much as they can get from you
we dont even talk about gcp because theyre designed for businesses
aws is just overpriced and it's not even good
i have 1 dedicated server in the cloud and 3 in my home
if i had dedicated servers at home id be mining crypto by now
I don't think so, where are you getting this from?
can someone provide a refrence code for lyrics cmd for a lavalink music bot?
my mail constantly goes to spam
so i left hetzner
i did mail to mail and it went to spam
did you check spam lists
they usually say if your ip is blacklisted because of local or neighbour ips
i host my systems there in my home
discord also used to block hetzner's IPs from their voice servers
they might still do, I dunno
ya cus theyre abused AS hell
theres one ip blocklist that immediately marks your ip as spam if the company youre hosting on has at least one reported spam ip and tells you to pay like $100 a month or some large amount to remove you from the neighbour ban
I mean, their prices are reasonable given the services they provide, though a good medium between all is GCP
ddos protection is ass
i run a cloudflare tunnel from my home to the public cus
i only have 1 static ip
quite expensive tho for the specs
Never been the case for me or our organizations/teams (Node.js, OpenJS Foundation, LLVM, Electron, TC39, etc etc)
they do have the better user experience than other hosts though ill give them that
DigitalOcean has always provided the greatest experience compared to any others we've tried
old games that are CD-locked
cant run without having the CD in the drive
they either couldnt be bothered to change that for the steam release, or they cant because they dont have the source code anymore
hi tim
makes sense
you say that but if you are unfortunate like me and live in the UK thats about what it costs in electrisity to keep a raspberry pi on 24/7 over here
if its at max load all the time I mean
i think its actually cheaper now. I ree did the calculation since power droped 15p from 45p/KWh and its more like £2.24 a month for a pi4 running at max usage these days
^
like the old versions of rollercoaster tycoon 3
hi
no its just im surprised because my minecraft newtork server doesn't cost that much
for some reason i love the languages that lots of people tend to hate
haskell, assembly
i really love it
mc servers probably cost less cuz they have less things included like backups and ddos protection since its nothing critical so they can get away with just the hardware reservation and thats it.
and do not intercat with other server
oo
bro shut
whats proof
bud thinks they don’t have logs here
usually its the opposite, its critical for game servers to have ddos protection and backups, otherwise youre gonna have a lot of problems
unless your server is not public
the standard for that is wayyyyy lower for minecraft servers
from my experience a lot of vendors don't bother with that and just resell DO droplets, relying on their ddos protection
dropshipping 💀
wait thats actually fucking smart
dropshipping galaxygate/contabo vps
thats my next business idea
Watch out, that could cause copyright issues and crossing the line of using service to sell service
all i see is a hater 🗣️ 🗣️ 🗣️ 🗣️
Like I mean that it could be a TOS issue, not that I’m entirely hating against the idea
dont know why not
theyre still getting paid
if anything youre helping them get customers
there would probably be a legal stop at some point
you're also technically using their services so they can halt your entire business if they find you crossing a line ig
but reselling it fair game
i would do that
i
😭
yeah i bet you love OSS discord considering youre using all of it for free 💀
dont get smart with me person emulating android on a pc and it booting slower than a device running on a power optimised over performance arm chip a fraction of the size of an x86 cpu
bro what
quite proud of that roast
roast that i don't understand
shit's still going
my ubuntu vm starts faster than that
One message removed from a suspended account.
🗣️💯
ur not wrong
it's just bliss os tbh
android 9 runs fine
One message removed from a suspended account.
thanks faith 😭 😭
If anyone has experience with Go, I'm stumped here. I have these structs, Chunk and ChunkType, and I'm trying to serialize a buffer into a Chunk struct. However, gob.Decode() keeps returning error: EOF, and I'm not quite sure why ```go
type Chunk struct {
Length uint32
Type ChunkType
Data []uint8
Crc uint32
}
type ChunkType struct {
Bytes []uint8
}
// Testing sample data
func TestingChunk() Chunk {
length := uint32(42)
chunk_ty := "RuSt"
message_bytes := "This is where your secret message will be!"
crc := uint32(2882656334)
chunk_buffer := bytes.NewBuffer(make([]uint8, 0, 4 + 4 + length + 4))
binary.Write(chunk_buffer, binary.BigEndian, length)
binary.Write(chunk_buffer, binary.BigEndian, []uint8(chunk_ty))
binary.Write(chunk_buffer, binary.BigEndian, []uint8(message_bytes))
binary.Write(chunk_buffer, binary.BigEndian, crc)
fmt.Println(chunk_buffer.Bytes())
chunk, err := ChunkFromBytes(chunk_buffer.Bytes())
if err != nil {
panic(err)
}
return *chunk
}
// The problematic function
func ChunkFromBytes(data []uint8) (*Chunk, error) {
fmt.Println("Creating chunk from bytes", len(data))
buf := bytes.NewBuffer(data)
dec := gob.NewDecoder(buf)
var decodedChunk Chunk
// Returning error: EOF no matter what
err := dec.Decode(&decodedChunk)
if err != nil {
return nil, err
}
return &decodedChunk, nil
}
Nevermind, it's because Gob preserves type info in its encoding and is assuming to read that
Hello! Does anyone know the JavaScript library called Jimp?
I am creating an image with this code and I want to make the message inside it two lines, but it's not working. How can I do that?
const messageText = (`${member.user.username} sunucudan ayrıldı!Sunucumuz ${member.guild.memberCount} kişi oldu. Hedefe ${kalanUyeSayisi} üye kaldı!`);
const correctedMessageText = replaceTurkishCharacters(messageText);
const textX = 70;
const textY = background.getHeight() - 50;
background.print(yazitip, textX, textY, correctedMessageText);
background.write(`Sayaç-Çıkış-${member.id}.png`, () => {
Kanal.send({
content: ` `,
files: [{
attachment: `Sayaç-Çıkış-${member.id}.png`,
name: `Sayaç-Çıkış-${member.id}.png`
}]
}).then(() => {
fs.unlink(`Sayaç-Çıkış-${member.id}.png`, (err) => {
if (err) {
console.error(`Dosya silinemedi: ${err}`);
}
});
});
});
});```
First Line: ${member.user.username} sunucudan ayrıldı!
Second Line: Sunucumuz ${member.guild.memberCount} kişi oldu. Hedefe ${kalanUyeSayisi} üye kaldı!
you forgot a newline character
`${member.user.username} sunucudan ayrıldı!\nSunucumuz ${member.guild.memberCount} kişi oldu. Hedefe ${kalanUyeSayisi} üye kaldı!`
i put the \n after the first line
so I have a minigame that shows you code snippets and the faster you find the line number of where an error would occur you get money, im still on the generation part and it seems that the wrong line number is often early and therefore seemingly not random, is there any good way of making it seem more random?
https://fs.rjns.de/v/GUKpoRPXeAjDatVbFH
i’m confused
get a working code snipet, count lines, pick a random line, delete random character from that line
:^)
nahh, I want some more complex errors too like wrong math equations
currently I have this for defining
const list: Snippet[] = [
{
language: 'js',
lines: [
'function getRandom() {',
[
{
content: ' return Math.random()',
isError: false
},
{
content: ' return Math.random() * 100',
isError: false
},
{
content: ' return math.random()',
isError: true
},
{
content: ' return getRandom()',
isError: true
}
],
'}',
'',
[
{
content: 'const confirm = prompt("do u really want to generate random number? (y/n)") === "y"',
isError: false
},
{
content: 'const confirm prompt("do u really want to generate random number? (y/n)") === "y"',
isError: true
}
],
'',
'if (confirm) {',
[
{
content: ' alert(getRandom())',
isError: false
},
{
content: ' alert(getRandom( )',
isError: true
}
],
'} else {',
[
{
content: ' alert("ok")',
isError: false
},
{
content: ' alert("ok)',
isError: true
}
],
'}'
]
}
]```

you're defining everything manually? thats a lot of work
basically if the line is a string I just add it no care
you will need a fuzzer
and a javascript parser
you get your fuzzer to generate random code, and a parser to parse against it
if its an array I get a random elem from it, if its an error I set the wrong line and only choose correct lines for the rest, if im at the last dynamic line and still dont have a wrong line I force it to be one
fr
couldn’t be me
technically not, I have like 3 people who want to help write snippets
I juast gotta proofread them
actually
you can try generate a valid abstract syntax tree from a set of valid statements
and then randomly screw something up
and then convert that into code
sounds difficult
that's the only way to automatically generate code
using human labour is not gonna cut it
you can always use ai, it wont be 100% right but it'll work
why not
i uh
tbh
it's not gonna be reliable
a team of 3, not even full time, won't catch up
i know
the goal is to dynamically generate a problem so that any problem is unique
I dont need that many snippets because lines of them are random
steal a 10000 line code from the internet
get 20 lines
break one of those lines
and boom
using finite set of hand-crafted problems is gonna run out soon
and don't forget about repetition - as well, same code, same steps
symbol names and values can be altered, but logical structure may stay the same - and that's where i'm looking at
well i think there’s thousands of possibilities with what i said
so i don’t think that’s an issue
well Ill worry about the minigame itself for now anyway
and another reason that i tell you to have a parser against it is to get where it's incorrect at
so you don't have to painstakingly store the result
(only applies to automatically-generated code)
what
wdym what
why
I love it
Add visual feedback to show if the user actually got it correct
Cuz now i press button and it just goes next
With no feedback
Is bad Ux
you get to know in the end
Still bad uw
Ux*
People don’t get feedback on their buttonpress
At least add a correct at the top
Like correct: 1/3 or something
That changes when pressing a button
honestly, that ain't THAT complicated
most ast generators have a way to reverse-generate a valid input
used to do that to test my BNF expressions
ofc that's still complicated for battle
kuuhaku
it is the weekend
i will try java tomorrow and become the master 👿
I give you 3
3 what?
days before you give up
Hours*
I mean, hours and days are interchangeable in this context 
cap
lets see then
is there a reason why the Shardmanager is looping?
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
Because you have multiple shards
That callback is called upon the creation of each shard
Also you’re getting your user count before the shard is ready which means it will always be 0
Because there are multiple shards
You have logs for each shard being created
Therefore each time one is created, you get a console log
You’re doing this entirely wrong btw
i am?
Yes
You can’t just throw a shardmanager into your existing code and have it work
This is technically an infinite recursion since your index.js contains the shard manager but the manager then runs another instance of the index.js file over and over and over
You should look at the docs more before doing this
There's a good guide you can follow for that
https://discordjs.guide/sharding
i got it kinda working now
yep it works
Because one connection handling a lot of data is problematic
why?
Only so much you can feasibly send via one gateway connection
Not to mention multiple connections probably allows discord to multithread their servers a lot more
it’s my issue if i don’t wanna do it
sounds like you complicating bot development
It’s a discord issue as well because then you’re bottlenecking their hardware
fixed the looping
what’s the point of allat
Everything has a limit at how much it can handle something before it breaks down and halts
Let's say I give you much more stuff than you can actually carry, it's going to slow you down unless you become stronger, and the more stuff I give you to carry, the slower you'll become
i think a better thing to say is you give me two bags to hold the candy instead of in my hands
so it doesn’t overflow !
more like 2 semitrucks instead of 1 so your tires dont explode
makes sense i guess
Lots of data through one connection isn’t ideal
when is discord going to add new features to the platform
kinda been boring recently
And it allows discord to optimize backend stuff more heavily
i wanna use a new feature to make something innovative
wow the 12th nitro only feature this year
u dont need new features for that, innovation comes from implementation, not resources
you do
Almost every new feature Discord makes is Nitro-only, they aren't adding much to the API lately, for example, more component support in modals that they said they'll do in months but it still hasn't happened
for example before people used to make forms by just asking questions through messages and waiting for you to reply
and now there’s modals
so that’s basically useless
still
I made a tcg and dont think discord will add a feature to make it obsolete too soon
don’t know what tcg means
One message removed from a suspended account.
inb4 they paywall new bot api features
Isn’t it open source on his GitHub
It’s this one right? https://github.com/OtagamerZ/ShiroJBot
i don’t wanna see the code
too much
i wanna see video
why does he make pull requests on his own repo
why
branching / merging
what
with branching you can separate different works
eg. new features, breaking changes, etc.
only way to merge when I'm working on diff computers
also sometimes I work on diff branches to keep the production unaffected till I finish
i have music bot in 83 server but discord dosnt accept my req for whitlist the bot ??
How can we help you with this?
shutdown the bot
✨
or keep it running but you won't be able to pass 100 guilds
how i can get whitelist
if discord denied it you cannot
Music bots rarely reach large server numbers anyway. They exist until YouTube pays attention to them 
yes my bot paly YouTube vd
well
thats why you cant verify it
lol
lol hh
yes
"but discord dosnt accept my req for whitlist the bot"
i assume that means they denied his verification request
some one have discord server
your stealing youtube's ad revenue
and they do not like that
so discord doesn't verify the bots
i want o talk to staff team or same ting
they won't verify the bot
if i stop it
there is no point in that
what is the reason that discord gave you?
or change the bot to join to create bot ?
why did they deny it?
i mean if your completely changing the bots purpose you might as well create a new application
but you may be able to 🤷 check if you can reapply for verification
but 83 server is hard
if you dont say why it was denied, then we cant help
my 2 bot jus in 25 server
screenshot the reason
i steal need 50 server
but i assume that because you play the music through YouTube that's the reason
as they don't verify those bots
some her have discord server link
i need it
For what?
i want to asq if i change my bot from music to join to create bot if the gane i verifay my bot
ask support
link
if you dont say why it was denied, we cant answer that
for some denials its possible, for others its not
if discord said something like "we will not be verifying this bot", then you cant, you have to create a new one
dosnt say that
it's VERY hard to have a youtube music bot verified
because ur breaking their ToS, and discord doesn't want to get involved
you'll need to use another service that allows third-party music sharing
hm i'm looking at a verified music bot that uses youtube
i wonder how they did it
Grandfather ruling. It was once allowed, and they may have been verified early on. But at any point youtube can issue a cease and desist on that bot like how Rythm and Groovy did
Well I wouldn’t say allowed but discord didn’t care as much as they do now
yeah you can’t revering
reverify*
gotta make a new application
Well making a new application with the idea of yt music will result in the same thing happening so 🤷♀️
but wanted to keep this bot because his other one isn’t in 75 guilds to verify it
guys should i add a referral system to my economy bot
to be fair
the fact that the username the support agent is stating
and the username from the user here

what
I mean it's common to have your bot be on an alt
In case your main gets banned for whatever reason because discord
Or just put it on a team ^-^
I'm pretty sure you can't transfer ownership if the owner is banned
But I guess you can still do some things being a team admin
But it's definitely better than nothing
Unless I you solely allow ncs music to be played
Any good databases for JS V14?? I want to move away from the file
All of them are probably ok, it depends on what you know or what you can afford
If, for example, you worked on .json files as a database, mongodb will be the closest to it
has anyone here worked with aws?
Somewhat
No guarantee I can fix your issue
Well not an issue exactly
I am moduling the current configuration of my teams terraform
vpc ec2 esc cloudwatch
And a bunch of stuff
I’d recommend using SQLite it’s way more beginner friendly than the higher level ones
I use sqlite already
The file based one
Ohhh well if you wanna stay relational databases I believe the best choices are either MySQL or Postgres
Is it possible for me to replace import Nav from "../components/nav"; with import Nav from "@component/nav";?
got it
{ "compilerOptions": {
"baseUrl": "./",
"paths": {
"@components/*": ["src/components/*"]
}
}}```
@lyric mountain you've done android mobile dev, right? If so, what framework/language/etc do you recommend using for it? Also, is it plausible to develop a mobile app of decent functionality in a few months for someone that has no experience with mobile dev?
As much as I love java, I don't recommend it for android
The framework I'm currently using is flutter
React native is an option too, but I think it's inferior to flutter, idk, feels out of place when the latter was basically born for it
Shouldn't be too hard to get the handle of it, it's a typed language so you'll get it easily
Also has native intellij support
Is flutter it’s own language or is it incorporated in combination with something else?
It's basically dart
But like, not like js and react's case
The language exists almost exclusively for flutter
Hard to think about any other usecase for it
A thing I liked is that the language heavily frowns upon bad design
Somewhat remembers me of rust, it fights you so you don't write bad code
I hate how ur forced to use comma everywhere tho
This seems like a good choice because it supports ios AND android so I wouldn't have to write different implementations from scratch if it's decided to be a success and we need ios
Oh, cool
Supports all yeah, also desktop and web
I work at a boba shop so it would basically just be like a mobile ordering platform, they have a website but it's not great UX-wise, and I want to improve on it while learning a new skill
I haven't talked to them about it
I would likely get a bonus after finishing it
are you planning on just presenting it to them once it's finished
add rewards like mcdonalds app
Definitely not how much I would get paid if I did it as a freelance gig but I'm not in it for the pay
I want to make a practical app for resume experience
That would be big
Frankly, even without a bonus it's already a good opportunity
Plus I really like my bosses and our team is close to them, they treat us very well
It's hard to practice design if u don't have something concrete to work on
My gf's dad redesigned their menu for free, they gave him a few hundred bucks
Now u have the perfect target for the project
My gf designed ads for their store, she got a couple hundred bucks
how much will your bonus be
I want to design an app
idk, I don't really care tbh
even if it's nothing I don't care
will it be a functional app?
thats cool
It'll be like the mcdonalds app or chick fila or any other standard ordering app
But usually small companies don't have the funds to pay for someone to design those things
So if I can do it for them for free then I would be very happy
They work super hard and pay us very well for what we do, I want to do something for them now c:
take 3% from every transaction till you recoup your hourly wage from the job. then 1.5% of every transaction into perpetuity 😁
lowkey was thinking about this but taking 10% of the tips that flow through the app
but then I remembered I'm not doing this for profit
I will take whatever they offer me to do it, or I will take nothing. Either way I'm happy
what
your doing something for them
working for minimum wage
how much are you making
I work for $12/hour + tips
You can ask one thing that'd benefit u more than money
Keep the authorship of the app
bros wage is increasing after taxes
That's what I'm thinking
I make the app for them, but it's still my intellectual property
Let them use it to the maximum, make it one of the best for what it does
And you'll get a strong portfolio piece
Yeah
That's what I want to do
Plus I need a good frontend project to show off on my portfolio
Everything I've done so far has all been backend
Nothing to really show for what I've made
i just realized
An app is the ultimate showcase of functionality AND design
Yep
isn't this what ubereats and doordash is for
My girlfriend is awesome at designing things, I can get her help for that end
Yes but those apps have additional fees and oftentimes are out of date on menu items and such if the owners for get to update them
Having a native app for your restaurant is just better because it's more custom to you
are you saying your app will use an ai robot to scan the stores ingredients and make the menu items properly dated 🤨
no
Use Theme instead to generate a cohesive pallete
So like a themeprovider?
Yeah
Mantine taught me good on that one c:
Lul
then how will your app magically not be out of date
Direct integration to database perhaps
The owners will be able to update the items more easily
It will be centralized
like nfts?
That's the opposite of blockchain
You're thinking of decentralized
Our restaurant alone has 4 different platforms that orders get sent through
Menufy, fantaun, uber eats, and grubhub
It gets difficult to change all of them all the time
so are you planning to abandon them all
No
But the app will serve as a way to get up to date and accurate information on them
or use the app to change the menu in all of them using some sort of api
People will still use the other services all the time I'm sure
But the app is just another option
hm
The app will still send orders through Menufy so we don't have to deal with another service
Those apps also have apis no?
sounds difficult good luck
That way when an order goes through, the receipt gets printed at the front like the rest of the menufy orders
You can integrate with them too
I'm sure they do
But that's a little ambitious for now
I'll look into that once I actually get a go-ahead from my bosses
btw why don't you guys use doordash
nice
GOD DID
Which means now I’ve gotta figure out flutter 💀
did your boss say he's paying you
bud is doing free labor
Or perhaps they’ll let me work on it at work so I get paid my usual wage to clock in and work on it
That’s the point yeah
“If this guy did all of this as volunteer work and did a good job, imagine how good he is when he gets paid!” - someone looking at the resume
Invaluable
I just hope my boss doesn’t have unreasonable expectations for the timeframe
It’s probably going to take a few months
@lyric mountain would you say that flutter is easy to develop with in a timely manner?
unfortunately thats not how the real world works
Yeah I know but the point still stands
probably, it's much easier than js that's for sure
in the real world, it will be "wow this guy did all of this without being paid, so maybe i can get him to do it for me as well either free or very cheap"
I have 0 “professional” experience, this will get me some
The idea is to get my foot in the door
@lyric mountain u recommend intellij or vsc for this?
I'm gonna assume intellij is a developer's best friend for a mobile app
Wdym with theme
intellij
or well, android studio?
android studio is just a worse fork of intellij
intellij has all features studio has
My god this is so annoying to do
Trying to get an emulator running rn
Have to go into my bios tho
Yeah I did it’s just a problem with Intel haxm
Had to do like a billion things and 5 or 6 restarts
Furthermore windows decided to update in the middle of it so I had to wait longer
Probably doesn’t help that I got this laptop like 6 years ago so it’s a little old
So slow
Pressed the run button probably about 3 minutes ago and I’m waiting still
Now I got it to run, but I don’t see anything..?
Nvm got it
yep
No more new thank god
my only issue with it is using column/row
Material UI makes it feel like a google app but I’m sure you can customize widgets more
cuz they go haywire if u dont put them into a sized container
can u make mobile apps with js
is it html
no
what is it then
React Native doesn't use HTML and CSS by default. Instead, React Native uses JavaScript to create user interface components. However, you can use third-party libraries to render HTML into native views. For example, you can use react-native-render-html or react-native-htmlview.
React Native uses Flexbox for layout. React Native's style properties, names, and values usually match CSS. However, React Native uses Flexbox exclusively, so there is no implementation of CSS Grid.
React Native uses JSX, which lets you write markup language inside code. JSX looks like HTML, but instead of web elements like <div> or <span>, you use React components. For example, <Text> is a Core Component that displays text.
you'll still use html/css-like structures
but not exactly those
react-native/flutter are very html-like
and both also use css-like styles
🤨
so it's just html in javascript
bruh
l react native
react is html, just OOP html pretty much
Also html/css is just good because it’s very structured
html is such a hard programming language
Try using Java swing for designing something and you’ll instantly realize why html is the way it is
they should nerf it
(It’s not a programming language)
speaking of which, it's saturday already
2 days into weekend
did u progress in java at all?
Lowkey I really like dart, this is quite nice
Hard to believe this is my 9th language lol
(Not proficient in any of them except Java though)
1 day
it is
is javascript or html harder
Not comparable
They have different functions fundamentally
HTML is meant to structure data, Javascript is a multi-paradigm programming language
so which is more difficult to learn
Thank you! I am planning on moving it online as it will be easier to move hosts and stuff. As trying to move hosts right now is impossible without risking the deletion of currency etc
sounds fun
learning html is almost like learning json lol, just has a bit more features
so is html lol
literally
centering is not html, its css
bruh same thing
css is not html lol
Is it possible to run server side code once and include the result in a component with nextjs?
getServerSideProps
they work together but they are different things lol
that only runs once per page load
Is it possible to use child process in there?
i think so
being screamed at
(same if top level import)
from google
it looks like any form of middleware that sets the edge runtime experiment will break it
since edge serverless deployments do not generally have a filesystem
export const config = {
runtime: 'nodejs', // or "edge"
}
try testing the same code but as an API endpoint
see if that works
https://stackoverflow.com/questions/66720347/module-not-found-cant-resolve-child-process-google-spreadsheet @surreal sage
this might hhelp
honestly not sure
