Open GreemDev opened 1 year ago
Right now it just posts hard coded messages to the single webhook url set in the config for all channels, a few things that come to mind from this;
reponame == "DiscordSRV" && channel == "release" && event == "new_version_available"
Instead of SpEL I'd use Starscript, which is at the very least an enhanced String.format.
This is because I can't really see a reason to use things outside of what is defined by whatever is configured in Starscript.
In DSRV it makes sense, because there's literally thousands of other plugins people could want to interface with, but here it's just a downloader. Plus, Starscript is very easy to use as it's just "text {some.code().here}"
.
You can see how Starscript is used here.
In my fork of the project that links to, Meteor Client, I have some kotlin extensions that allow the functions to be declared more concisely than that of what Meteor does in Java, if you're willing to use some Kotlin.
If you're open to having some Kotlin I can PR in these things if you want.
From Discord:
I'd also like to say, if this gets added I would also ask for a way to send a test message with placeholder useless info just to test the format, because I really wouldn't want to have to keep committing to a project to test the download embed