merlinfuchs / embed-generator

Create rich embed messages for Discord (previously discord.club)
https://message.style
MIT License
329 stars 37 forks source link

Support for custom scripts #104

Open merlinfuchs opened 1 year ago

merlinfuchs commented 1 year ago

Allow users (probably only premium) to write their own scripts in some kind of scripting language to implement their own logic.

Starlark looks like a promising language because it's very similar to Python and can easily be embedded. The go implementation also supports limiting the execution steps (roughly proportional to execution time). https://github.com/google/starlark-go

There would need to be a custom SDK that provides the necessary functions to interact with message.style and Discord:

Inspriation from YAGPDB: https://docs.yagpdb.xyz/reference/templates