#Python in Skript

1 messages · Page 1 of 1 (latest)

full stream
#

Title self explanatory, how would I do this?

visual rover
#

What

stone tree
#

it is not self explanatory

visual rover
#

Why would you want this

stone tree
#

you need to explain more

#

xD

#

skript is made to be more simple, no need to use python

visual rover
#

And if you really want to do that, you'll be in for a long and an extremely diffcult ride

full stream
full stream
#

Gotta do what you gotta do

stone tree
#

you would have to make skript again

#

for python

full stream
#

uh

latent verge
#

Use PySpigot plugin

full stream
#

How about I just outline my problem?
I need to send requests to gemini using skript

visual rover
#

You'll want to use skript-reflect for that and make use of the gemini API

full stream
#

or how to do that

#

where's a guide on how to use skript-reflect?

full stream
#

ty

#

But how would I get the gemini classes?

#

(I don't know Java)

visual rover
#

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

full stream
#

I'm talking about import com.google.genai.Client; import com.google.genai.types.GenerateContentResponse;

visual rover
#

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
visual rover
#

Can you send your code

full stream
#

rn it's literally just

#
import:
  com.google.genai.Client
  com.google.genai.types.GenerateContentResponse
visual rover
sonic jacinth
#

why do you need this?