Latest Raider information


PhantomBot Version: 2.4.2 (Revision: 5c75a7b2)
Operating System:** Windows 10
Java Version: 1.8.0_171-b11
Browser and Version: Firefox 63.0.3
Stock PhantomBot: Yes
Beta Panel: Yes

Is there a way so export the latest raider to a text file? Not a host but a raider?
Or is there a variable available with that information?

Thank you for your time.


You can write a custom script, that listens to the raidHandler. There you can write the name into a txt file


Alright. That is a way. Only if i knew how i could do that :wink: . I need to look into that.
Thank you!


just add

$.writeToFile(username + ' ', './addons/raidHandler/latestRaider.txt', false);
saveRaidFromUsername(username + '', viewers + '');

in the ./handlers/raidHandler.js script


Thank you! I will test it out @Dakoda


It didn’t update the file. Missed a space in “+ ’ ',” dunno if that should matter.


Tested it again and it doesn’t write the file away. Did what you said @Dakoda


make sure you make the folder? ill test it later myself