Skip to content

Instantly share code, notes, and snippets.

@eka
Created February 15, 2012 20:10
Show Gist options
  • Save eka/1838691 to your computer and use it in GitHub Desktop.
Save eka/1838691 to your computer and use it in GitHub Desktop.
phenny module - log channels conversations
"""
log.py - Phenny Log Module
Copyright (c) Esteban Feldman
BSD License
http://github.com/eka/
"""
from datetime import datetime
def f_log(phenny, input):
print '%s - %s - %s: %s' % (datetime.utcnow().strftime('%m-%d-%Y %H:%M:%S'), input.sender, input.nick, input)
f_log.rule = r'(.+)'
f_log.priority = 'high'
f_log.thread = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment