GDScript is heavily inspired by Python’s syntax, but has a few differences with typing and string formatting. This code is Python but tbh would probably run on Godot
Comment on The Legends is among us
NONE_dc@lemmy.world 2 days ago
Is that GDScript (Godot Engine) or Python?
OsrsNeedsF2P@lemmy.ml 2 days ago
RandomVideos@programming.dev 1 day ago
Unless you are using gdscript in a different code editor than godot, it would look different
CommanderCloon@lemmy.ml 2 days ago
GDScript really does read like Python haha
felsiq@lemmy.zip 2 days ago
It seems to match the discord bot api from python and that’d be a more logical choice for a bot lol
NONE_dc@lemmy.world 2 days ago
That bot can recognize GDScript? Or can confuse it with Python? (Since both languages are very similar in some respects)
felsiq@lemmy.zip 1 day ago
Gonna state all my assumptions cuz I don’t think we’re talking about the same thing here:
The bot I’m referring to is the discord bot that mod made, that monitors discord activities and bans discord users who play league for >30min. The code shown matches what I’d expect for that bot’s programming if python was used to create it, and doesn’t have anything to do with GDScript other than the mostly shared syntax between the two languages. I don’t think GDScript is likely outside a godot environment, and this bot is running on the discord side and not the game side.
Sorry if this is still a shitty explanation of how I read the meme, brain isn’t braining right now lol