If this already exists, please point me in the right direction.
We currently keep all logs for a certain channel. We would like to have those logs accessible by the users. Two things need to happen.
1) Expose logs via http
2) Access logs via bot commands
For 1) we could simply point our http server to the logs folder and serve the files directly. If there are other solutions to this that are better, please advise.
For 2), we would like the following skeleton command:
!logs <date>
The <date> could be precise or fuzzy. Here are some examples:
!logs 2012-01-23
!logs Jan 23
!logs yesterday
!logs 1 week ago
Starting with precise dates should be easier for initial implementation, fuzziness can be added later.
The command would alert the bot, the bot would process the date and return an URL to the appropriate log file via private or public message to the user inputting the command.
If something like this already exists, please advise.
Thank you for your patience in reading this.