Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env python
import template
class IRCScript(template.IRCScript):
def privmsg(self, user, channel, msg):
print(' [%s] <%s> %s' % (channel, user, msg))
def action(self, user, channel, data):
print(' [%s] * %s %s' % (channel, user, data))
def userJoined(self, user, channel):
# gnome-desktop-item-edit /usr/share/applications/new-launcher.desktop --create-new
motoma@queuer-n$ python queuer.py
motoma@queuer-1$ python queuer.py
motoma@queuer-0$ python queuer.py
motoma@database$ python database.py
motoma@filter-n$ python filter.py
motoma@filter-1$ python filter.py
motoma@filter-0$ python filter.py
@Motoma
Motoma / database.py
Created November 10, 2011 16:28
database.py
#!/usr/bin/env python
import os
import pickle
import beanstalkc
OUTPUT_DIRECTORY = 'processed'
MQHOST = 'arbiter'