Latest Raider information


#1

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.


#2

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


#3

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


#4

just add

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

in the ./handlers/raidHandler.js script


#5

Thank you! I will test it out @Dakoda


#6

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


#7

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


#8

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