I've been searching around the web couple days and haven't found exactly what i'm looking for, even not from this forum.
The script im looking for should display files in a specified directory. Like when saying !ftplist in channel, the bot replies something like this:
<rix> !ftplist
<Bot> videofile.avi
<Bot> text_document.txt
<Bot> file.ext
Of course it would be nice to be able to sort the result by date modified.