summaryrefslogtreecommitdiffstats
path: root/opt
diff options
context:
space:
mode:
authorSean B. Palmer <sean@miscoranda.com>2010-01-18 22:28:36 +0000
committerSean B. Palmer <sean@miscoranda.com>2010-01-18 22:28:36 +0000
commitf5ef55769ee9f22065cf714872ea1a38d48047d8 (patch)
tree5507c6f177c1a2bd472b07b08fa746c00154110b /opt
parent22aed08fae3cdccd2e77b5515808f770811b88cc (diff)
downloadbot-f5ef55769ee9f22065cf714872ea1a38d48047d8.tar.gz
bot-f5ef55769ee9f22065cf714872ea1a38d48047d8.tar.bz2
bot-f5ef55769ee9f22065cf714872ea1a38d48047d8.zip
Removed opt/swhack.py, and modified the Makefile for git.
Diffstat (limited to 'opt')
-rwxr-xr-xopt/swhack.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/opt/swhack.py b/opt/swhack.py
deleted file mode 100755
index 9183911..0000000
--- a/opt/swhack.py
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env python
-"""
-swhack.py - Phenny Swhack Module
-Copyright 2008, Sean B. Palmer, inamidst.com
-Licensed under the Eiffel Forum License 2.
-
-http://inamidst.com/phenny/
-"""
-
-import urllib
-
-def swhack(phenny, input):
- if not input.sender in ('#swhack', '#inamidst'):
- return
-
- query = input.group(2)
- pattern = urllib.quote(query, safe='./')
-
- u = urllib.urlopen('http://swhack.com/scripts/tail/' + pattern)
-
- i = None
- for i, line in enumerate(u.readlines()):
- line = line.rstrip('\r\n')
- if i == 0:
- phenny.reply(line)
- else: phenny.say('[off] ' + line)
- if i is None:
- phenny.reply('Sorry, no results found.')
-
- u.close()
-# swhack.commands = ['swhack']
-
-if __name__ == '__main__':
- print __doc__.strip()