Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Create IRC channel logs #4

Open
msteiger opened this issue May 6, 2014 · 2 comments
Open

Create IRC channel logs #4

msteiger opened this issue May 6, 2014 · 2 comments

Comments

@msteiger
Copy link
Member

msteiger commented May 6, 2014

Thinking of the upcoming "Office Hour" sessions, it might be useful to log IRC messages, possibly restricted to certain time constraints.

Obviously this raises certain privacy issues - at least the channel topic should reflect that the channel is logged by Gooey. We should also consider restricting the viewing to certain groups (registered forum users?)

From a technical perspective, recording messages seems to be fairly easy:
https://github.com/github/hubot-scripts/blob/master/src/scripts/store-messages-couchdb.coffee

However, Gooey needs a space to upload the data - I doubt that a a full database is appropriate here.

A simpler approach is demonstrated here:
http://umashanthi.blogspot.de/2010/10/create-your-irc-channel-and-make-logs.html

The idea is to save the log to a local file (one per day) and move that to a web-accessible folder. This would involve Gooey to relocate from Heroku to movingblocks.net. It would be a lot easier to maintain, because it doesn't involve remote writing (to a DB).

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2012143-create-irc-channel-logs?utm_campaign=plugin&utm_content=tracker%2F983091&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F983091&utm_medium=issues&utm_source=github).
@macalinao
Copy link
Member

I went ahead and set up logging to MongoDB. Heroku/Node makes this really easy. I don't log parts/joins though; should I do that?

Here's a link to the log page: http://terabot.herokuapp.com/logs

I also log a timestamp of the message, which currently isn't displayed on the page.

@Cervator
Copy link
Member

Cervator commented Jul 9, 2014

Thanks :-)

Join/quit probably would be marginally useful at best, and spammy at worst. We can leave them off for now and always reassess later

Able to display the timestamps though? Those are more useful

Pagination / archive by day would also be handy, if not too much work - with that in place we could close this as complete :-)

Looking forward to getting to the more fun stuff with integrating GitHub & Jenkins! Much appreciated to have Gooey getting some upgrades

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants