New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
wieners #Givesomethingbackdecember
Hello everyone, as a fun project and to be a part of #Givesomethingbackdecember I have published an npm repo for choosing a winner from the lowendtalk thread. See the images to understand better.
npm: https://www.npmjs.com/package/let-wieners
source: https://github.com/sayem314/let-wieners (PR is welcome)
Example usage command for choosing random 5 users:
wieners https://www.lowendtalk.com/discussion/154148/giveaway-3-x-1gb-nvme-kvm-inception-hosting-givesomethingbackdecember#latest 5
I have so bad luck that I couldn't win running this a lot times
Thanked by 11FrankZ AnthonySmith ehab JerryHou dedotatedwam eol HostDoc dahartigan Decicus t0m ferri
Comments
nice one
Does it count each comment of each user as an entry, or only the first comment of each user?
No it does not count users comment or anything like that. Just plain simple random selection. Btw I should add this tomorrow to prevent abuses.
I came for the weiners, and I am sorely disappointed.
$7 for choosing random user eol.
EDIT:
Non-recurring.
A new version has been released with a faster and smarter selection.
I thought I won something
You did. @sayem314 lottery; your prize is the recognition in the official screenshot in the OP :-)
Another update was released a few mins ago. Moderators, can I have my edit button back? I would like to edit the post with all its feature.
Edit:
v1.1.1 fixes a bug for choosing more than three winners and added a feature to exclude author comments from selecting as a winner.
//nvm looks like it has been changed.
Does this work with multi-page threads too, or does it only take whatever is on the #latest page?
Thank you for this. Really useful.
It does work with multi pages thread. See the attached screenshot of this post. It shows that it is fetching multiple pages from post. Also the latest version will display total comments it fetched, so you know if it missed any!