Skip to content

Instantly share code, notes, and snippets.

View gdude2002's full-sized avatar

Gareth Coles gdude2002

View GitHub Profile
import struct
from constants import *
class Format(object):
def __init__(self, format):
self.format = format
def __len__(self):
import sys
import os
import datetime
import struct
import urllib
import urllib2
import re
import socket
import cookielib
import threading
import feedparser
import irclib
import threading
import time
import datetime
import os
class IRCBot(irclib.SimpleIRCClient):
def __init__(self, password, channels, SERVER, PORT, NICKNAME):
irclib.SimpleIRCClient.__init__(self)
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/twisted/python/context.py", line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/twisted/python/context.py", line 37, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---