Skip to content

Commit

Permalink
Nicer name for TAC (Twisted Application Config)
Browse files Browse the repository at this point in the history
In preparation for moving most of functionality out into rest
of library.
  • Loading branch information
Danny O'Brien authored and Danny O'Brien committed Aug 13, 2012
1 parent 377cf42 commit e398294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion consenso/bot/ircclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, url):

def run(self, pidfile=None):
this_dir = os.path.split(__file__)[0]
command = ['twistd', '--python={}'.format(os.path.join(this_dir, 'ConsensoBotTac.py'))]
command = ['twistd', '--python={}'.format(os.path.join(this_dir, 'tac.py'))]
if not pidfile:
(f, pidfile) = tempfile.NamedTemporaryFile(
prefix="consensobot", suffix="pid", delete=False)
Expand Down
4 changes: 1 addition & 3 deletions consenso/bot/ConsensoBotTac.py → consenso/bot/tac.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,4 @@ def clientConnectionLost(self, connector, reason):
def clientConnectionFailed(self, connector, reason):
print "Could not connect: %s" % (reason,)

application = service.Application("Consenso IRC bot")
service = internet.TCPClient('localhost', 4567, ConsensoBotFactory('#test'))
service.setServiceParent(application)
application = service.Application("Consenso Twisted Application")

0 comments on commit e398294

Please sign in to comment.