#💻︱programming
1 messages · Page 31 of 1
?
?
i understand wat he means but im too bad to explain
is this even relevant?
It's not
I don't get it xd
can anyone help me
Probably try to Google how to set up DNS for Minecraft bedrock
i love these kind of websites
Uhh when?
- Never said that
- Not relevant to this channel
Your bio has a link I thought you would change it
exposed
Why would I change it, I'm sorry I'm just confused from the start of this conversation
You told me once you're 17...
I asked when because I never said this but ok
So you I thought you would go and edit the website.
I forgot to ask if it's coded using html
Ofc it is haha
uwupp pro language ngl
Best language is brain- and for some reasons i cant say the rest

double ping because the first imagr had nono words in it
o
Lo your name
Can anyone help me with LuckPerms?
- I've create two group, which is
🔪Staff (Owner➡️Moderator)
🔪Donator(MVP➡️VIP) - I'd assigned the prefixes too using bukkit color codes.
- The permission also get listed down (eg: essentialx.*)
The main question is:
A. How do I add someone to the rank?
B. Why the prefixes won't work?
C. What is weight?
D. What is parent?
I explained my problem before but it kinda got ignored
- Either through ur browser using
/lp editor with a command which looks something like this:/lp user [username] parent add [group name]
- You need essentials and vault installed on ur server
- dont have the words to describe it rn lol
- parent = group
i just got back from school pls dont kill im tired ok
Thanks bro! Appreciate that
The fact that this person was dedicated enough to buy the https lisence is incredible lol
It's free 
Oops he already told u me dumn excuse me lol
It's free (and I didn't know that some organisation offered it for free), because big organisation are paying for it
Isn't that smth else?
Nope
SSL certificate?
?
My point is
It's free for us because others paid
Ohh yes, I know, I thought you meant you pay this for a single certificate
Don't see why, you can just use certbot and you easily have https
The point of the S in Https is security
Not sure if that's true but https is basically http in a combination with SSL ot TLS. And cloudfare itself does not really provide extra security if we're talking about https but they have some protection services etc
Well https simply means that request to/from the server can not be viewed or modified by 3rd party
I actually used cloudflare but meh, I just switched because I didn't like it

Yes
Found it way easier to set up
I was having seizures while trying to set up the cloudflare server certificate
It gets rid of all the immature childs with less brain cell than a jelly fish
I know this was a generalisation and it doesn't apply to everyone, sorry if I offended anyone
But for the little time I've been hanging out in vc, I had multiple people say slurs and use sound board to annoy people
I wouldn't choose for certbot
Why not?
Too many struggles 🥲
I haven't had any struggles 
Try to make an automatic cert system then <3
Comment Lines almost on 50% :))
What is this tool?
Statistics plugin in Intellij IDEA
Ahh ty
Maybe u know if its exist on eclipse? 😅
no idea xd
Ahh ty anyways 😂 im using eclipse for game dev 😂 would be nice to have this
use intellij™️
Surely having 50% of your text be comments is way too many comments no? 😂
He just commenting everything 😅
Thats just impressive
I mean, I don't think so since it's a library. and for example```java
/**
- <p><b>Interface {@link cz.majksa.majbot.permissions.PermissionHolder}</b></p>
- @author majksa
- @version 1.0.0
- @since 1.0.0
*/
just copy paste that 500 times
I want to create a menu that only admin(s) can open it using Deluxe Menu. Can somebody help with the has_permission tag?
I can relate, but it's really nothing too hard with IntelliJ
Is there a shortcut in intellij to hide all javadocs? coz for me the issue is once I've javadoced everything, I know what stuff does so I don't need the docs so it just makes it harder to navigate.
I think there is an option to hide files with a certain name if that's what you're talking about
this might be what you're looking for: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206834215-Is-there-any-way-to-collapse-just-comments-
what I would suggest is using the file structure (or something like that) tab
it shows a list of all methods inside a class and you can click it which sends you to the method
ngl I use ctrl + alt + f a lot of the time to find stuff. Even to navigate between classes if i know the project
But yh, this was what i was looking for I think
thx 💜
lol
can this channel be used for asking non-mc related programming questions, e.g about apis of other services/games?
Yep! All things programming
Anyone here ever tried doing mods and launching them from eclipse ? (I've got some trouble with it, ping me if you know how it works)
You should be able to do it from Eclipse, you just won’t have a premium mc acc
How does the CubeBot work when it comes to linking accounts & receiving your rank roles.
Why aren't the roles instant?
What slows down the process?
How does it all work pretty much?
This would be interesting imo since not many people actually know how it works.
Would anyone have an idea what total_time_played would refer to in Steam's GetUserStatsForGame API request when used on CS:GO? No units are specified and it doesn't logically match up to anything I can tell, or the time shows in the steam launcher.
Do I see a behind the cube thread?
What is the use of has_permission tag in deluxemenus?
Ooof, that's kinda sucks
It's not complicated. The reason it's not instant is because of Discord Rate limits. We have hundreds of users join everyday.
It's not a "verified" bot like Groovy or Mee6 that have extra capacity to make API calls, so we have to have some delay to reduce the rate and avoid limits
does the queue sometimes get lost? because i waited for like a day and only when I typed in the linking help channel did I get my roles.
No that's intentional.
The message in the link channel states you have to react to the message to receive your roles :stuck_out_tongue:
It's reacting to the message or typing in the channel
surely that's an unnecessary step though?
All I know it is used for reducing the load on us and the Discord rate calls
I think reacting helps cause you can do it on an event which I don’t think gets rate limited or something
Maybe executing a give role api request on a user not present in the server counts towards the error ban
In that case doing it on reaction would reduce rate limits, if someone links their discord account but is not in the server
Active chat rare moment
Well the message or reaction makes sense, I think it's so you get the member object without having to make an API call and then you add the roles just in 1 call.
Honestly I didn't know verified bots have extended rate limits but this server is partnered, wouldn't it be possible to communicate it with Discord to extend those limits (maybe)?
And even if you delay the calls you still gotta do them for every member at some point meaning you don't really reduce them or is there some other way?
Well to extend the rates you would need to get the bot verified which adds a couple of extra steps along with some issues
Once the bot is verified, I don't think you can update it live
I know, that's what I'm saying.
The issue is to enter the verification process you gotta have the bot in 100 guilds
You need to get it in 100 servers ?
I thought it was you need it to be verified to enter it in more than 100 servers
This process is currently available for bots in more than 75 servers, oh 75
Yes, but I think you gotta cross some amount of guilds which I think is 75
exactly
Ye I said that incorrectly^
Thats what I just found out
Anyway, from what I've seen, there aren't any requirement regarding the nature of the servers, so just creating an alt account, creating 75 servers, inviting the bot to all of them and then verifying the bot should work
I don't think that's gonna work
Yeah no that isn't how it works
I mean, "if your bot is in more than 75 servers" is the only requirement they give
But alt accounts are against ToS afaik so yes that ain't gonna make it
well who's to say it's an alt ?
Even if it's the same ip address you can just say that it's your sibling's account
And ?
That's a clear evidence that one person owns multiple accounts
Lmao, how many accounts do you thin I have ?
¯\_(ツ)_/¯
Well nobody really cares until you are trying to bypass the bot verification
If they don't mention it, it doesn't mean they don't check it
ok so from what I've seen now, it is unclear weither they check it or not "Now"
They weren't before, and too many people created fake bots to have the certified developper badge
(One of the server devs has it)
Maybe
wait
I wasn't saying they didn't get it legit
Lemme check voltana
I was just saying some didn't
Voltana ?
oh since the server is partnered
check Cerberus#0005
He's got Bug hunter, certified moderator, hype squad eventer, nitro, nitro classic, hype squad badge
And disc employee
yeah
Also wdym nitro classic
Well second nitro badge
Anyway
Cerberus has a different colored bug hunter badge
Bug catcher
What server ?
Nice
10 !
Oh I found night btw
Also
Did you pass the quiz for discord bug catching ?
It doesn,t seem to be working for me when I message the bot
But it might be due to the fact that it says that bug catching is closed between friday and monday
lol
lmao
People would be happy to get it lol
You just said it
They are badge hunting
All they want it to get badges
So giving them an exclusive badge would just encourage them to do it
™✓
but yeah, with that being said, it's kinda sad for people like me that would have wanted that badge and would have really worked properly just to get it
Same way I applied for the discord certified moderator badge, because I'm a moderator in many servers
I know lol
also
Do you know how to collect data from a json response in node ?
oh ofc, thats not what I meant
I mean that it's sad that discord is removing the ability to earn certain badges
No need for one
well thats the problem, I know because I copy pasted an example, so I know it's possible, I just don't know what to put as number and arguments lol
btw, the real response I recieve
{
"request": {
"type": "City",
"query": "New York, United States of America",
"language": "en",
"unit": "m"
},
"location": {
"name": "New York",
"country": "United States of America",
"region": "New York",
"lat": "40.714",
"lon": "-74.006",
"timezone_id": "America/New_York",
"localtime": "2019-09-07 11:38",
"localtime_epoch": 1567856280,
"utc_offset": "-4.0"
},
"current": {
"observation_time": "03:38 PM",
"temperature": 18,
"weather_code": 113,
"weather_icons": [
"https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
],
"weather_descriptions": [
"Sunny"
],
"wind_speed": 0,
"wind_degree": 345,
"wind_dir": "NNW",
"pressure": 1011,
"precip": 0,
"humidity": 58,
"cloudcover": 0,
"feelslike": 18,
"uv_index": 5,
"visibility": 16
},
"forecast": {
"2019-09-07": {
"date": "2019-09-07",
"date_epoch": 1567814400,
"astro": {
"sunrise": "06:28 AM",
"sunset": "07:19 PM",
"moonrise": "03:33 PM",
"moonset": "12:17 AM",
"moon_phase": "First Quarter",
"moon_illumination": 54
},
"mintemp": 17,
"maxtemp": 25,
"avgtemp": 21,
"totalsnow": 0,
"sunhour": 10.3,
"uv_index": 5,
"hourly": [
{
"time": "0",
"temperature": 18,
"wind_speed": 28,
"wind_degree": 15,
"wind_dir": "NNE",
"weather_code": 122,
"weather_icons": [
"https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0004_black_low_cloud.png"
],
"weather_descriptions": [
"Overcast"
],
"precip": 0,
"humidity": 68,
"visibility": 10,
"pressure": 1008,
"cloudcover": 75,
"heatindex": 18,
"dewpoint": 12,
"windchill": 18,
"windgust": 35,
"feelslike": 18,
"chanceofrain": 0,
"chanceofremdry": 87,
"chanceofwindy": 0,
"chanceofovercast": 90,
"chanceofsunshine": 15,
"chanceoffrost": 0,
"chanceofhightemp": 0,
"chanceoffog": 0,
"chanceofsnow": 0,
"chanceofthunder": 0,
"uv_index": 0
},
{ "time": "300", ... },
{ "time": "600", ... },
// 6 more items
]
}
}
}
OHHHH
ok thx
Now I understand
so the reason the first one was a 0 in the example I copied, was because there weren't any index
alright, thx a lot Krypton
whats the point of that zero now ?
ok so since country is the first
I put 0
if I wanted the second result I would put 1 ?
oh ok
Thx a lot
hey Krypton are you still there ?
I keep getting this error
TypeError: Cannot read property 'name' of undefined
at C:\Users\Helene\Desktop\Discord Bot\bot.js:31:35
at processTicksAndRejections (node:internal/process/task_queues:96:5)
When I do data["location"]["name"]
Please don’t swear
plz tell me what did I say ?
I want to make sure not to say it accidentaly again
You said the sh- word...
...
which is considered a swear word
Little advice, sh!t is more a curse rather than a swear word
I know depending on the context it can be a swear word, but the way I used it was a curse word
Or am I mistaking between the two ?
Aren’t those the same things?
I don't think so
Curse words can help you more accurately communicate your emotions, which contradicts the folk belief that people use profanity because they lack vocabulary skills
Thats a statement I found
Anyway
The way I used it and if I remember correctly was : "Ah sh&t..."
Same thing dude
I think the s word is more of a swear
Just refrain from saying it again as we do keep it family friendly
But doesn't swearing implies that you are using it to attack someone ?
oh yeah for sure
I just think that the way I used it isn't that bad
It was
For instance, discord is a 13 + platform
Both can be Used to attack someone
k
By curiosity, how would you have formulated the way I felt when I realised my mistake
For reference, imagine the way you would have felt after walking on an animal defecation*
I was missing an a lol
I'm talking about the "thing" that comes out of the body when you go to the bathroom
I would watch
Man you do not understand
Hahah
Anyway, it doesn't really matter anymore
We should probably keep this chat for programming stuff
Ur typing like a college student writing a scientific paper on the angle of the sun
Same here
And english isn't my main language
I speak what I can
Only English
japanese ? (I'm learning it)
rip
Yes
Wait no I can speak some Latin
:)
Try it I'm curious
French is a latin root language
So I should be able to understand some of it
Porcus igni
Alright, I have no idea what that means
I can assume igni might have something to do with heat maybe ?
The pig is on fire
porcus sounds a lot like porc which is pig meat, so I'm gonna say it means cooked pig
OMG
Knew it
Yeah
The fact that it's always the root word makes it that almost every words are different
French is also hard
In most modern language, we use prefix and suffix which often comes from latin or greek
Spanish is very easy
Latin root baby
Still
In that sense, I would argue you that spanish grammar is really similar to french grammar, but I agree that most word in spanish are easier to learn because they sound the same
While most words in french are completly different
Spanish in general is pretty simple to learn
@minor roost Yo, do you think you can still help me with my array problems ?
{
"request": {
"type": "City",
"query": "New York, United States of America",
"language": "en",
"unit": "m"
},
"location": {
"name": "New York",
"country": "United States of America",
"region": "New York",
"lat": "40.714",
"lon": "-74.006",
"timezone_id": "America/New_York",
"localtime": "2019-09-07 08:14",
"localtime_epoch": 1567844040,
"utc_offset": "-4.0"
},
"current": {
"observation_time": "12:14 PM",
"temperature": 13,
"weather_code": 113,
"weather_icons": [
"https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
],
"weather_descriptions": [
"Sunny"
],
"wind_speed": 0,
"wind_degree": 349,
"wind_dir": "N",
"pressure": 1010,
"precip": 0,
"humidity": 90,
"cloudcover": 0,
"feelslike": 13,
"uv_index": 4,
"visibility": 16
}
hmmm
I still can't figure it out
When I try putting only one of the big tittles like [current] it only writes undefined
Anyway, at least for now I made this
Try ["current"]
Well can you show the whole part of the code where you are reading the JSON?
And it is probably not a JSON error, also show the part where you are creating the embed
This configuration works
Because it works with my $inspire command
I just can't get the right data
can you just try printing data["current"] to the console
if I try putting other parameters like [0]["name"] or ["name"] after ["location"] it says cannot find something of something undefined

could it be the api just glitching ?
Probably no
Then could it be the way I call the api ?
Anyway, thx for trying to help, Imma go to sleep. If you find a way to solve this just ping me and I'll try it tomorrow morning
Yay
O
Bon travail !
Merci
FRANÇAIS
I'm Canadian btw, but yes, from quebec so my main language is french
O
I'm Lebanese, been learning French from the day I joined school, so almost 13 years
It's painful
Not well honestly
I sometimes am good with translating and stuff but my vocabulary is still not strong enough
I mean, it's generaly the same
We just use different expression
Sometimes a different pronounciation
And we use a bit more english words
btw, saying Canadian french and Quebec french is the same thing, except a lot more people understand when you say Canadian french, because some people don't know what the province of Quebec is or where it is
The same way some people think that places like Alska are countries
or that it's part of Canada
well as long as we don't make ourselves a country, Quebec is still part of Canada
spam = eggs
print ('spam * 3')
true
Because you put the quotes
spam is a variable
Which you didn't declare
anyway
*3 is a mathematic opperator
But now everything is a string
So this :
Would do this
spam*3
instead of
eggseggseggs
To put colors, after the first 3 ` you need to put the keyword of the language you used
For exemple
public void myFunction() {
}
Is the keyword Java
html 
I mean, it is still a HyperTextMarkupLanguage

Sheesh sucks

.

I hacked nasa using photoshop
Eggs is not spam
I hacked nasa using word
I hacked nasa using h2O
i hacked nasa using only o
@minor roost I hacked it using L
Zrušit stahování!!!!!!
But how-
... That would be binary
ever heard of... sarcasm?
I-
I hate my life lol
my PC crashed some time ago
and a library I've been working on got lost, because it's the only one that's not on github or gitlab
F
This is why we always commit to GitHub
Backup on pc before you begin working. If it works backup on a cloud. I have all my coding stuff twice on pc and once on my cloud (which is downstairs but still). And sometimes on GitHub
I think I started to go serious about learning python
I'm installing the softwares and pycharm on an old laggy pc
And joined 2 new servers for teaching it
Feeling good
@dense zinc you're a professional with these stuff
oops ping sorry ignore it
Good luck!
No worries 😉
Me downloading a pycharm file that is 366 mb with a 300 kbps internet speed
IT'S ALMOST DONE
YEPEEE
Hi mitty
I wouldn't suggest using Pycharm if you're only just starting Python 😛 just IDLE that comes with python is enough for learning, and then vscode is a very lightweight compared to pycharm
I was watching a YouTube video and it said it's used for environnement
Can I share the link?
https://youtu.be/rfscVS0vtbw
Here. Jump to the timestamp 1:45
This course will give you a full introduction into all of the core concepts in python. Follow along with the videos and you'll be a python programmer in no time!
Want more from Mike? He's starting a coding RPG/Bootcamp - https://simulator.dev/
⭐️ Contents ⭐
⌨️ (0:00) Introduction
⌨️ (1:45) Installing Python & PyCharm
⌨️ (6:40) Setup & Hello Wor...
if you are fine using it then sure, it's quite a large IDE and has many enterprise features so can be a bit overwhelming for a beginner to python
vscode on the other hand is lightweight, and then IDLE itself is perhaps the easiest thing to start messing around with python
I have no idea tho, as I'm a beginner and people around me can barely understand 1+1=2 I need your advice
Uh help
Help help
What here?!
Oh my God this slow internet!
Anyone please!?
@hearty bloom HELP
What do you need help with ?
The pic above
I mean.. what is the difficulty
Only?
I mean the two others are just preference
De rien
Okay help again
It will take a while to get used to it
Sorry if I'm disturbing anyone
Now how to create?
What to do here?
All those settings are fine, just click create
you were?
20mins
Yes.
In another way;
Hey siblings, pls don't open internet I'm playing
Them in 1 sec: "open youtube"
The 4h video you are watching is one of the most boring things I've ever seen
Like the first 30min can be resumed like this :
There are 3 types of variable
Strings, Numbers and Booleans
print() write the stuff between the parantheses in your console
I barely know English
So it might be a bit difficult for me
I know it seems boring but still insisting to learn it
You speak french right ?
Nope, arabic
then why did you say thx in french lol
Because I do know French and English
And since you also understand French I wrote merci
oh ok
oh btw, @lusty pagoda one of the utility of using VsCode, is it's ability to be used for every language super easily
For exemple, you could code in python while having a javascript program running in the background
While still having most of the fonctionnalities given by specific IDE
latest work:
number = -5
print(sqrt(36))
number = 6
print (sqrt(49))
print (max(3, 8))
print (min(3, 9))
print (floor(2.9))
print (ceil(2.9))
print (sqrt(number))```
ik ik it's not a thing
ikr
name = input("Enter your name: ")
print ("hello " + name + "!")
age = input("how old are you?:")
print ("great!")
print ("so, your name is "+ name + " and you're "+ age +"!")
use fstrings 😉
^^
print (f"so, your name is {name} and you're {age}!")
And what's the difference?
?
its easier to understand
{ replaces "+ and } replaces +"
and you can also do more stuff with fstrings but i wont go too deep into that
Is there are a website to learn minecraft programming using json? 
I have knowledge on json but components are confusing me like format version and these stuff
And is it possible to code minecraft json using mobile?
Like is there are an editor that can open mcfunction file?
j- json?
@desert tulip wiki.bedrock.net has beginner guides
@plush walrus Yes, bedrock is data driven and uses JSON for creating addons
yes it stores data, which Bedrock then loads and turns it into what you created
eww
hence it's called data-driven and not programming

Any good editor for mobile to code in :>?
That I'm not sure, sorry :(
I just want an editor that can use mcfunction
Lmao .mcfunction are so easy
just create a file with the function name u want then add .mcfunction and put on the file some minecraft cmds and ur done 
ya. They basically allow you to not use command blocks :)
Found this 
Last thing where can I find a good 3d creator for mc?
I want to create a dragon mod 
Like models? That would be Blockbench. Though I don't think it exists on mobile
I read on the wiki that there is a web browser and its good with mobile
Umm wait I think prisama3d will be good for this mission
Thanks for helping

All websites exist, the difference is control
You can never do blockbench using a phone, that would be 0.9 impossible
I'm a bit confused on what you mean
Blockbench would very much be possible on phone, every keyboard control is accessible via some button in some way
ikr real programmers use .pptx
Have you clicked the pencil (edit) icon the world in-game, and checked if the pack appears in behaviour packs "available" section?
Pack icons aren't needed, the manifest looks correct so not sure sorry.
I've never made packs on mobile, my only thought is that the game is still in the background so doesn't reload packs
Ik its not needed
Shall I try make it .mcaddon?
Ima try that
Huh?
I'm very confused now 
Hmm, inside your zip does it have behavior_pack and resource_pack?
it might be easier to zip the contents of behavior_pack (and call it bp.mcpack) and zip the contents of the resource pack (and call it rp.mcpack), and try importing it that way
no I just putted the add-on folder on a zip file then renamed it to .mcaddon
this is the first tike that .mcaddon fails with me 
ah I don't think it works that way, I think you just zip the behaviour_pack and resource_pack, and then rename it to .mcaddon
my_addon.mcaddon
behavior_pack
...
manifest.json
resource_pack
...
manifest.json
🤔
My files 
Oh that doesn't look right.
your packs should be in this tree:
com.mojang
behaviour_packs
<your_pack_name>
entities
loot_tables
...
manifest.json
think you just need to move the files in "Test addon" up one directory and should be good to go
I just want to make custom recipes
it was
com.mojang
behaviour_packs
<my pack>
recipes
manfiest.json
yeah that's right, but from your screenshot it looks like you've got it as:
com.mojang
behavior_packs
test addon
Test addon
...
umm nope
there was 2 files and 1 folder on the test addon folder
I rewrote the manfiest.json beacause I lost it
It was like this (manfiest.json is not on recipes folder)
it's manifest not manfiest 😛

😂
thanks 
you dummy blob, gotta check those file name lmao
spelling mistakes are like 60% of all programming issues
its my first time creating an add-on
I'm just messing with ya
My code breaks all the time because of spelling mistakes
Last time my code didn't work because I was putting ? instead of & in a url
lol
How would you make it
Minecraft's basic puny 2 GB of RAM isn't enough to run an AI
So you would need to code in plugins idea
draw hiccup
rung variant
broccoli angle
governor product
portrait edition
constituency crouch
Technosword, if that helps you I can keep going
Thanks I have made millions
extraterrestrial earthwax
Thank you so much 
Lol idk why I made "saddle" 
ok bye ima go create my dragon mode 
May someone help me in something?
I want the resource pack to be installed when the behaviour pack is insatlled
installed*
Do I use modules?
oh got it 
Probably the game doesn't register the size if its very small
Problem I tried and the mod doesnt work 
I will try again
Didnt work
Honestly the best plug-in would be a plug-in that detects spelling errors
I can’t even tell you how long I look at my programs scratching my head
fun fact: that exists
I'm eager to learn scripting. I'm a map maker looking to expand my knowledge and need a teacher that is willing donate at least an hour of their time every-so-often.
I know some are a bit annoying, but you get quickly used to it
Aka intellisense
Thats a plugin for inteliJ I assume ?
Built in
I don't use IntelliJ
Hi 👋
I prefer eclipse, it makes it easier to export and import external files

Is this just for programing things in general or just stuff for the server?
All programming
Anyone with experience with Kubernates and some time to help me? (doesn't need to be now, I just wanna learn it xd)
also a help with setting up the actual Minecraft kubernetes cluster would be awesome
(it doesn't need to be direct help, some tutorials are fine. but also explaining something I didn't understand or answering questions would be amazing :P
I can try to help I don't usually use kubernates but I can try to help you out
What is it that you need help with @hearty bloom ?
Ping me when you respond
sorry, was sleeping when you replied - gmt+2 ftw
best would be understanding them so I can use them for my projects, but if you just help me set then up for my private Minecraft server for example, that would be awesome
...Poor apple sheep, (they) replied 23 min after your message
Is it possible to like use python functions in node.js
Like I have functions to connect to database and don't want to remake it to js so I want to use the python function I have for it, is that even possible?
I read this but I still don't really understand it https://stackoverflow.com/questions/23450534/how-to-call-a-python-function-from-node-js
I think you can
I can try
Ping me when I can help u
I mean what do your functions look like ?
Missclick on nitro PLus lol ?
missclick haha
The only really big difference between the two is that Python use indentation while Javascript use separators
For example, the channel description is in javascript
ye I know
camezonda = new Camezonda();
//Always true
while (camezonda.thinkHeIsDevelopper()) {
camezonda.kick();
}
I can confirm that Cam is actually a 10/10 pro developer

prove it
and youn is cracked
yes
thanks :)
well first of, I got the basic understanding of what nodes, pods, clusters,... are. do you have any tutorials you would recommend to continue?
and should I choose EKS, GKE or AKS?
(amazon, google, azure)
or like make custom on my vps
Google is good I've not used the two others but a custom could be goode depending on the quality of it but I suggest using google
I do have a tutorial I can send you
23 votes and 16 comments so far on Reddit
epic, thanks :)
Np have a nice day
you too
@plush walrus ```js
const { exec } = require("child_process");
exec("python -c 'import db_actions; db_actions.class.function()'", (error, stdout, stderr) => {
if (error) {
console.log(error: ${error.message});
return;
}
if (stderr) {
console.log(stderr: ${stderr});
return;
}
console.log(stdout: ${stdout});
});
source: https://stackoverflow.com/questions/3987041/run-function-from-the-command-line https://stackabuse.com/executing-shell-commands-with-node-js
But I want to call a function from the class, is that possible?
I'll try it later, thanks
can i ask why you wanna use kubernetes for a minecraft server? its probably one of the most inefficient ways of setting up a mc server lmao, but it is possible and this is a good way to do it if you havent figured it out already https://opensource.com/article/20/10/kubernetes-minecraft-ansible
One of the best outcomes of Ansible's move towards content collections is it spreads the thousands of modules in Ansible's "core" repository into many more independent repositories. This means movement on issues and modules that had long been delayed (often due to the sheer volume of issues and pull requests in the repo) can progress more rapidly.
but i use kubernetes + docker for work (albeit im still learning it myself)
I am using kubernetes because we also have discord bots, central API (which bots, Minecraft and website contact) and website
and I just think that kubernetes will save us time
also I wanna learn it coz it's quite popular and I already know docker
thats fair, if you've got more stuff adding into it its fine
:)
but just a plain vanilla mc server its kinda useless
lmao
but yeah its industry standard for cloud stuff so is useful to know especially if thats something you ever wanna go into
yea
is this the correct way to use and call js functions?
function send_data(){
const result = "result"
return result
}
console.log(send_data())
I think that would work, but you could try using arguments
well
ye but I don't rly need them
I think you need arguments
true
but
but yeah that works
And what you could do is this :
function send_data(result){
return result
}
console.log(send_data(12))
And you would get 12 in the console
or
function send_data(firstNumber, secondNumber, thirdNumber){
return firstNumber+secondNumber*thirdNumber
}
console.log(send_data(2, 4, 8))
etc
got it ?
I had this function which just did not work for me
I think the problem is how you called the function
res.send(api_data());
I think you need to assign the function to a variable first
ohh
var res = fun(12, 30);
function fun(x, y) {
return x * y;
}
console.log(res);
ye but now that I did I get undefined
hmmmm
even though I return something from the function
Nevermind @plush walrus This worked for me
ye then I just get function_name is not defined
hmmm
or the exec('python -c "import db_actions; print(db_actions.Database.read_api())"', (error, stdout, stderr) => {
nah that works
ye cuz when I do console.log(api_data) it's fine
'python -c "import db_actions; print(db_actions.Database.read_api())"'
hmmm
weird
alright
Well good luck, this goes over my puny knowledge of programmation
@plush walrus error: Command failed: python -c 'import db_actions; db_actions.class.function()'
File "<string>", line 1
'import
^
SyntaxError: EOL while scanning string literal
Thats what I got when I tried the code of the other person
node javascriptTest.js
error: Command failed: python -c "import db_actions; print(db_actions.Database.read_api())"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'db_actions'
seems like this time a part of it worked
Then it might be the python part of your code that doesn't work, or the bridge between the two
what's the purpose of this
Proving the fonctional part of his code
He deleted some of his message
Thats why the conversation seems heratic
oooh
ohyes
oki im on
I have an express app and I want to call a function to get the page content
app.get('/', (req, res) => {
// call function here
res.send(function_results)
```But when I try calling the function it returns undefined
yes
send it please
function get_api(){
exec('python -c "import db_actions; print(db_actions.Database.read_api())"', (error, stdout, stderr) => {
const api_data_raw = stdout.split("'");
const total_messages = api_data_raw[1];
const total_guilds = api_data_raw[3];
const api_data = {
total_messages,
total_guilds
};
return api_data;
});
}```
I think the function works fine
I can console.log pretty much anything and it works
okay
Ima write smth for you
app.get('/', (req, res) => {
// Import
const func = require('file');
// Function
let result = func();
// Sends result to page
res.send(result);
});```
the func returns the result
so just do let result = func() then i guess
and if you try it with a promise?
how to do that?
have you tried to log the function tho?
mhm
what is your full code over there
const express = require("express");
const {exec} = require("child_process");
const app = express();
const port = 3000;
app.listen(port, () => console.log(`Server running on port ${port}`));
function get_api(){
exec('python -c "import db_actions; print(db_actions.Database.read_api())"', (error, stdout, stderr) => {
const api_data_raw = stdout.split("'");
const total_messages = api_data_raw[1];
const total_guilds = api_data_raw[3];
const api_data = {
total_messages,
total_guilds
};
return api_data;
});
}
console.log("sheesh");
console.log(get_api());
app.get('/', (req, res) => {
const api_data = get_api();
console.log(api_data);
res.send(api_data);
});```
here u go
log api_data
there is your problem
what did you change?
I just
console.log(total messages) and total guilds
then commented it out
and it works
im so confused
but the function is still undefined
alr
fixed^
my program
hmmm
hmmm
does anyone have an f5 button resource pack? lol
I just recently finished learning html does anyone happen to know a windows application that I'm able to program in html?
vs code
uninstall sys32

for such an awful joke
What I wanted to expand my knowledge of programming

?
Yeah I've got a lot of IRL stuff going on that I don't really want to go into but need to sort myself out 🙂
Thanks man ❤️
can someone make an f5 button lol I can't wait anymoreee
;(
I’m on smoke
ikr pls ban @languid flame he is misusing channels!!!11!1!1!1!11!1!!1!1!11
Agreed
Please get banned @languid flame
I wonder how they code ranks like these into the cubecraft games network
Making rank systems is pretty easy
Ah
they use the vanilla permission system 









Yes
Anyone know PHP/pmmp plugin development
I know php but idk pmmp
both php5 and php7-8
what's up?
I'm making a server but I can't talk about it here :)
yes me, what do you need?
I'm wanna make a cosmetic plugin with block bench models
But idk how and where to start 🥲
Everyone stop talking....
No
Are you on bedrock or Java
Bedrock
I believe you need a plugin to change it (at least for Java)
Ah don’t know much about C++ sorry
Im talking about PHP
How does CC do it if it's Vanilla?
...
What
Don’t know much about that either
I thought someone said it was on Vanilla lmao
Unless I’m just tired and forgetting I believe you need to use code to change it
How do I create a menu using DeluxeMenus?
use your own code instead ^^
Doesnt bedrock use c#
no
It’s inside of the NMS entity classes, but its location probably varies depending on which version you’re looking at
someone pls make an f5 button resource pack
just press f5
for mcpe (mobile players)
mobile ft non split has so many benifits but no one has made a resource pack for it
like u can literally diagonal god bridge!
technically faster cause u can sprint while doing it
why not make one urself then
idk how to and even if I knew making it on a 2 gb ram tab isn't gonna be fun ;(
Considering how you've asked 3 times here with no one offering to make it, here might not be the place 👀
Lol ikr
I wish someone would make it tho
like people have added f3! and F1 too
I feel it would be easy to make f5 compared to making a full debug screen idk if it's not maybe I'm just dumb lol
¯_(ツ)_/¯
u making it?
F1 and f5 are similar
do hides controls and f5 changes perspective
I tried to make the F1 f5 but I just can't access the code on this dumb tablet
@spice plaza
also dont suggest changing f5 control to F1 it does not work
wish I had a pc welp
😭😭😭
¯_(ツ)_/¯
type echo im a jar file > jarfile.jar into cmd
Thanks
np
poor guy lol
depends what you need it for
but it usually requires some build library (gradle, maven, ant, ...)
Spigot plugins
so you have a project/plugin and want to create a .jar file from it?
did you use gradle or maven?
(do you have a pom.xml file or build.gradle?)
Lmao my friend just Said that there a web developer and I asked what do you ur they said Wix lmaoooo

