Commits

Marcin Kasperski committed 230f997

Some comment improvement.

  • Participants
  • Parent commits ecdb5da

Comments (0)

Files changed (1)

File sample/clock_statistician.py

 
 FICS_USER='clockstatistician'
 FICS_PASSWORD=''
-#FICS_HOST='localhost' # For proxy-save
 
-# TODO: better finger
 FINGER_TEXT="""mekk.fics example code: clock_statistician.py.
 See http://bitbucket.org/Mekk/mekk.fics/ for more information.
 
 
 DB_DRIVER = 'sqlite3'
 DB_URL = os.path.join(script_dir, 'clockstat.db')
-# For sqlite 2 or more connections generate „database is locked” errors. So we stick with 1
+# For sqlite, using 2 or more connections generate
+# „database is locked” errors. So we stick with one.
 DB_MIN_CONNECTIONS = 1
 DB_MAX_CONNECTIONS = 1
 
 # http://findingscience.com/twistar/
 
 #################################################################################
-# ”Business logic” objects (data objects, processing not directly bound
-# to FICS interface)
+# ”Business logic” (processing not directly bound to FICS interface)
 #################################################################################
 
 class ClockStatistician(object):
         """)
 
 #################################################################################
-# Commands (different tells handled in a bot)
+# Commands (handling tells to the bot)
 #################################################################################
 
 class BestCommand(TellCommand):
 my_bot = MyBot(clock_statistician)
 reactor.connectTCP(
     FICS_HOST, FICS_PORT,
-    #fics_connector.ReconnectingFicsFactory(
-    fics_connector.FicsFactory(
+    fics_connector.ReconnectingFicsFactory(
         client=my_bot,
         auth_username=FICS_USER, auth_password=FICS_PASSWORD)
 )