Prod assistant utility

This is a script that skims a thread and tells you the last time each living player posted.

<Insert generic disclaimer about downloading executables from strangers on the internet here>

Use:

In the terminal (cmd on Windows), call the executable (prod-win, prod-macos or prod-linux) with the arguments prod [topicId], where topicId is the topic ID typically found in the URL of the topic.

Example:
image
Tip: If you are doing this on Windows from cmd, omit the ./ shown here.

Requirements:

  • In the first post of the thread, you must include something like this:

    Alive
    Urist
    Mantis
    fferyllt
    Ellibereth
    MetalSonic
    
    Dead
    catspurr - town cop
    Srceenplay - town cop
    Andresvmb - town cop
    

    The reason for this is because the script scans the first post for the keywords Alive and Dead… and counts all the users listed between these two keywords as ‘living’. If you do not use the words Alive and Dead, the script will not work.

  • In your first post, you must refer to all players by their username (not their display name). For example, if CHESSKID is playing in your game, you have to refer to him as chesskid3, not CHESSKID. If there is a typo in one of the usernames, that user will not be included in the results, so be careful.

  • You should be ok to use spaces in usernames (i.e. both Metal Sonic and MetalSonic are acceptable), and capitalization doesn’t matter.

Downloads:

Windows: https://www.dropbox.com/s/5csxx20w9kmm8nz/prod-win.exe?dl=0

Mac: https://www.dropbox.com/s/np777emey03o4uu/prod-macos?dl=0

Linux: https://www.dropbox.com/s/pjszxgmu4zqygcb/prod-linux?dl=0

NodeJS source code: https://www.dropbox.com/s/jqjarplvq01naye/prod.js?dl=0

Let me know if you have any feedback.

7 Likes

Give the code to elli, get him to implement as a site wide forum function. Win

1 Like

I did post the source code in the OP, ripe for the picking.
It would be a lot simpler if the Discourse API had a “last_post_time” field in the topic.participants array.

2 Likes

Thanks a bunch - It’ll take a look and promote/put links to here in the appropriate places for exposure.

2 Likes

neato

1 Like

I tested the utility and it does what it says on the label. Thanks, Urist!

1 Like

I’m trying to ./prod-linux 2553 and it’s just not returning anything

Instead of ./prod-linux prod 2553 AS SHOWN IN THE SCREENSHOT AAAAAAAAAAAAAAAA

I made sure to set it to executable and even edited the op a bit to get it to the format you recommend

1 Like