-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add Reval Clan plugin #9397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add Reval Clan plugin #9397
Conversation
|
New plugin |
|
Can you just use Dink plugin for your webhook notifiers? Considering you yoinked the code from it anyway. |
|
This plugin requires a review from a Plugin Hub maintainer. The reviewer will request any additional changes if needed. Internal use only: Reviewer details Maintainer details |
Yes, heavily took "inspiration" from Dink for many of the notifiers. Unfortunately for my case, the Dink plugin allows the user to modify certain parameters for the notifications, meaning that it's quite out of my control what the user decides to send. And who decides to send. I could filter this on my BE side, but I'd rather not create the situation where it's possible for anyone to potentially bombard my webhook endpoint, or for people to mistakenly send events that shouldn't be sent, simply because they changed the settings. Additionally, there are some notifiers that are quite specific, and I cannot imagine any general use webhook plugin wanting to implement them. I already implemented a couple more specific ones, but I've got more ideas. There's also the element of ideally not wanting our clan members to have to setup multiple plugins, when everything could theoretically be done with just one. I realize this is a rather specific use-case for just our clan. |
|
If you are not willing or otherwise unable to use/contribute to Dink then we can review this as-is. Be advised that your plugin submission is large and will take a while to review. |
|
If you've taken heavy inspiration from Dink, please attribute it in accordance to its license. Additionally, Dink is looking to potentially allow its notifiers to be re-used through the use of the PluginMessage API (see pajlads/DinkPlugin#826). Would this functionality be useful to you? |
|
@riktenx Thanks for the clarification! To clarify: I'm happy to contribute improvements back to Dink where appropriate (like bug fixes or general enhancements), but we can't adopt Dink as a dependency or merge our codebase into it. Our plugin is purpose-built for our clan's specific tracking needs with tight backend integration. Ideally I want total control over the events and how they function. Also who they are sent to (clan member validations), and when (dynamic filters from our API). Please proceed with reviewing as-is, if possible. I understand that the review will take time given the plugin's size. It is totally okay :) Did a small update as well with some housekeeping, so should be set for reviewing now 🚀 @pajlada Thanks for the suggestion! That API would definitely be useful, because even though I took inspiration from Dink, my notifiers are still mostly barebones compared to what Dink offers - more fleshed out, covers more edge-cases, etc. So if there was a way in the future to utilize Dink's logic via an API for the main events, then I'd definitely be interested. Also attributed Dink on code, added the license to the repo, and also into the README! |
You've also adapted code from https://github.com/SMaloney2017/Temple-OSRS-Plugin and should adhere to their license as well regarding attribution/notices
This is fine and you're welcome to have your own plugin.
This isn't unique to your plugin; Dink can also be directed at your server url
This can also be achieved with Dink via You should just use |
|
@iProdigy Thanks for the feedback. I've added the TempleOSRS license just like I did with Dink. Also utilized the
Indeed,
When you say the Clan validation can be directed at my server URL, you mean that I can filter out the requests in my server to only let specific people's requests pass from there? If I understood you correctly, then this is what we have been doing so far, but I want to avoid a scenario, where someone accidentally or maliciously starts spamming the server with these event webhooks. I'm sure it can be done even with my small clan member validation, but at least it's an additional hurdle.
I was actually unaware of this. Definitely a welcome feature, and will keep this in mind, should I need it with Dink in the future again. |
Yes, Dink for example includes
for the file in this repo, you want this to be a comma-separated list of github usernames that can edit the plugin. also you'll need a Line 4 in 65c0aad
|
Plugin update consists of sending accountHash on webhook notifications & adding additional external filters to detailedKill notifier
|
@iProdigy You've brought up some useful suggestions/comments once again. Added a similar warning line and changed the author name there to my GH username as well. Thought it was just more decorative, since it seems optional.
That's actually a fair catch. Might be useful to send that with every notification. Added that functionality as well. |
A plugin designed for the "Reval" OSRS clan to track player progress and share achievements with the community.
Features: