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:
Access saved messages to use them in responses
Respond to interactions
Access interaction data
Assign roles
Access information about the server, channels, roles, and members
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