Skip to content

Instantly share code, notes, and snippets.

@EntityReborn
Created April 16, 2011 02:15
Show Gist options
  • Save EntityReborn/922783 to your computer and use it in GitHub Desktop.
Save EntityReborn/922783 to your computer and use it in GitHub Desktop.
c = ConfigObj("socuppet.conf")
p = PluginManager()
f = BotFactory(c, p)
if "servers" in c:
for name, server in c['servers'].iteritems():
botService = internet.TCPClient(server["host"], 6667, f)
botService.startService()
reactor.addSystemEventTrigger('before', 'shutdown', botService.stopService)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment