diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-09 20:25:20 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-09 20:25:20 +0200 |
commit | 0b309b0e7dffbb4d48c157a60029eb3275a99f7d (patch) | |
tree | d3d0c4988ce9079edfd3a8f50abb36817a730637 | |
parent | cecdf90f8b4c76aa1f580f0b250dd5a0fd50b4b8 (diff) |
Added CTCP VERSION and SOURCE replies.
-rwxr-xr-x | fot.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 = {} |