summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-06-09 20:25:20 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-06-09 20:25:20 +0200
commit0b309b0e7dffbb4d48c157a60029eb3275a99f7d (patch)
treed3d0c4988ce9079edfd3a8f50abb36817a730637
parentcecdf90f8b4c76aa1f580f0b250dd5a0fd50b4b8 (diff)
Added CTCP VERSION and SOURCE replies.
-rwxr-xr-xfot.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/fot.py b/fot.py
index 5ecd65d..d85ace8 100755
--- a/fot.py
+++ b/fot.py
@@ -4,8 +4,9 @@ from twisted.words.protocols import irc
from twisted.internet import reactor, protocol
from twisted.python import log
from twisted.protocols.basic import LineReceiver
+from twisted._version import version as twisted_version
-import os, re
+import os, re, platform
from ConfigParser import ConfigParser
@@ -57,6 +58,11 @@ def refresh_modules():
class Bot(irc.IRCClient):
def __init__(self):
+ self.versionName = 'fot'
+ self.versionNum = 'Python/%s %s' % (platform.python_version(), str(twisted_version))
+ self.versionEnv = '%s %s %s %s' % (platform.system(), platform.release(), platform.version(), platform.machine())
+ self.sourceURL = 'http://cgit.jvnv.net/fot/'
+
bots.append(self)
self.modules = {}
self.keywords = {}