How to add !lastdeath / !lastkill command

Hello, I am wanting to add a command to my Twitch where when a sub or higher types !lastdeath or !lastkill a clip link comes for them. I have seen some other forum posts but they didn’t seem to work for me… any help is appreciated :slight_smile:

Hey @Nomisgag!

Something as simple as this should work:

!addcom !lastdeath -ul=sub CLIP_LINK
!addcom !lastkill -ul=sub CLIP_LINK

Replace CLIP_LINK with your clip’s link.

Ok thanks so much for that! Is it possible for the CLIP_LINK to be automatically put in there from another command? Eg… !addkill (clips last 30 seconds) which then puts that clip link into !lastkill ? Thanks again!

I guess you can try:

!addcom !editkill -ul=mod -a=!editcom !lastkill CLIP_LINK

Then when you call !editkill with a CLIP_LINK, it’ll update !lastkill

Hmm that is handy thanks for that, I just have the impression my mods will need to manually copy and paste clip links every time. I’d love to automate this process for them. Is there a way I could do that?

Yup, your mods will have to copy/paste links, sorry for that, but I don’t see another solution for now.
You’d need to be able to pull the last clip that contains the last kill or death, I believe there are solutions to pull the last clip, but it won’t always be the last kill or death, and there’s no way to differentiate a kill from a death either, unless maybe with the title of the clip, but once again, there’s no way to identify them yet, you’d need to be able to pull a recent list of clips, look through the titles, and then pick the first match, yet there’s no way to filter by title as far as I’m aware.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.