summaryrefslogtreecommitdiff
path: root/figlet.py
diff options
context:
space:
mode:
authorBrian Sherson <caretaker82@euclid.shersonb.net>2013-08-27 20:25:22 -0700
committerBrian Sherson <caretaker82@euclid.shersonb.net>2013-08-27 20:25:22 -0700
commitf1504f7162c8c43e3b06dd279370451e9b683e9c (patch)
treec0a6d06840cf42438041f5b6cc1c1fb82f7353a1 /figlet.py
parentfc456d6660162f7ad3a278d00288865175b30281 (diff)
Diffstat (limited to 'figlet.py')
l---------[-rw-r--r--]figlet.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/figlet.py b/figlet.py
index 8f88416..7d63417 100644..120000
--- a/figlet.py
+++ b/figlet.py
@@ -1,20 +1 @@
-#!/usr/bin/python
-import re, os
-
-class Figlet(object):
- def onRecv(self, IRC, line, data):
- if data==None: return
- (origin, ident, host, cmd, target, params, extinfo)=data
- if len(target) and target[0]=="#" and cmd=="PRIVMSG":
- channel=IRC.channel(target)
- matches=re.findall("^!figlet\\s+(.*)$",extinfo)
- if matches:
- gif,fig=os.popen2("figlet")
- gif.write(matches[0])
- gif.close()
- while True:
- line=fig.readline()
- if line=="": break
- if re.match("^\\s+$", line.rstrip()): continue
- channel.msg(line.rstrip())
- fig.close()
+../figlet.py \ No newline at end of file