Changeset 15 for trunk/amazonbot
- Timestamp:
- 06/21/06 16:10:57 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/amazonbot/amazonbot.py
r14 r15 91 91 _nick = config.get('bot', 'nick') 92 92 93 self._prev_time = time.time() 93 self._prev_time = time.time() - config.get('bot', 'freq', 'int') 94 94 self._silent = False 95 95 SingleServerIRCBot.__init__(self, _server, _nick, _nick) … … 116 116 117 117 if __debug__: 118 print >> sys.stderr, 'DEBUG> pubmsg incoming "%s", reply to %s' % (ununicoding(msg, 'euc-jp'), to)118 print >> sys.stderr, 'DEBUG> pubmsg incoming "%s", should be reply to %s' % (ununicoding(msg, 'euc-jp'), to) 119 119 120 120 if msg[0] == '!': … … 126 126 if _current_time < self._prev_time + config.get('bot', 'freq', 'int'): 127 127 if __debug__: 128 prev = time.strftime('%H:%M:%S', time.localtime(self._prev_time))128 cur = time.strftime('%H:%M:%S', time.localtime(_current_time)) 129 129 go = time.strftime('%H:%M:%S', time.localtime(self._prev_time + config.get('bot', 'freq', 'int'))) 130 print >> sys.stderr, 'DEBUG> Not expired: prev time is %s, be expired at: %s' % (prev, go)130 print >> sys.stderr, 'DEBUG> Not expired: now %s, be expired at: %s' % (cur, go) 131 131 return False 132 132 self._prev_time = _current_time
Note: See TracChangeset
for help on using the changeset viewer.