Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nickoala committed Oct 30, 2015
1 parent 316f7bc commit 26c6868
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/countera.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
from telepot.delegate import per_chat_id
from telepot.async.delegate import create_open

"""
$ python3.4 countera.py <token>
Count number of messages. Start over if silent for 10 seconds.
"""

class MessageCounter(telepot.helper.ChatHandler):
def __init__(self, seed_tuple, timeout):
super(MessageCounter, self).__init__(seed_tuple, timeout)
Expand All @@ -25,4 +31,3 @@ def on_message(self, msg):
print('Listening ...')

loop.run_forever()

0 comments on commit 26c6868

Please sign in to comment.