-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Bot logic:
# Andrew Walkingshaw <andrew@lexical.org.uk>
self.connection.notice(nick, msg)
def main():
- if len(sys.argv)!=2:
+ if len(sys.argv) < 2:
print "acrobat: provide configuration module name on command line"
sys.exit(1)
try:
except ImportError:
print "acrobat: configuration module "+sys.argv[1]+".py not found"
sys.exit(1)
+ # Override configuration items from the rest of the command line
+ for opt in sys.argv[2:]:
+ (key,value)=opt.split("=")
+ c.__dict__[key] = value
bot = Acrobat(c)
bot.start()