#Python in Skript
1 messages · Page 1 of 1 (latest)
What
it is not self explanatory
Why would you want this
you need to explain more
xD
skript is made to be more simple, no need to use python
And if you really want to do that, you'll be in for a long and an extremely diffcult ride
Not really, I just want python in skript
🤷
Gotta do what you gotta do
bro you'd have to make a plugin in java to convert python code into java
you would have to make skript again
for python
uh
Use PySpigot plugin
How about I just outline my problem?
I need to send requests to gemini using skript
You'll want to use skript-reflect for that and make use of the gemini API
Yeah, the problem is I have no idea what I'm doing
or how to do that
where's a guide on how to use skript-reflect?
If you're referring to the importing part, you'll want to take the imports from google's snippet and add them to your skript
Or if you're talking about creating a class like in the snippet, you don't need to worry about that
You'll just want to focus on the code inside the main method
I'm talking about import com.google.genai.Client; import com.google.genai.types.GenerateContentResponse;
You need to do
import:
com.google.blablabla```
so just copy the name of the import and put it in ur skript like that
Make sure to remove the ``;`` at the end tho
It doesn't recongnize it
Can you send your code
rn it's literally just
import:
com.google.genai.Client
com.google.genai.types.GenerateContentResponse
I don't think the second import is in the import: section nevermind the discord formatting broke and showed the code wrong for me
why do you need this?