Remove superfluous comment in triage_message(). (#3291)

This commit is contained in:
Robert Hönig 2017-01-13 19:21:45 +01:00 committed by showell
parent e104225a2c
commit a7f3b4d1d1
13 changed files with 0 additions and 18 deletions

View file

@ -76,7 +76,6 @@ class CommuteHandler(object):
''' '''
def triage_message(self, message, client): def triage_message(self, message, client):
# return True iff we want to (possibly) response to this message
original_content = message['content'] original_content = message['content']
# This next line of code is defensive, as we # This next line of code is defensive, as we
# never want to get into an infinite loop of posting follow # never want to get into an infinite loop of posting follow

View file

@ -22,7 +22,6 @@ class DefineHandler(object):
''' '''
def triage_message(DefineHandler, message, client): def triage_message(DefineHandler, message, client):
# return True if we want to (possibly) response to this message
original_content = message['content'] original_content = message['content']
# This next line of code is defensive, as we # This next line of code is defensive, as we
# never want to get into an infinite loop of posting follow # never want to get into an infinite loop of posting follow

View file

@ -23,8 +23,6 @@ class FollowupHandler(object):
''' '''
def triage_message(self, message, client): def triage_message(self, message, client):
# return True iff we want to (possibly) response to this message
original_content = message['content'] original_content = message['content']
# This next line of code is defensive, as we # This next line of code is defensive, as we

View file

@ -39,7 +39,6 @@ class GiphyHandler(object):
if message['type'] == 'private': if message['type'] == 'private':
return client.full_name != message['sender_full_name'] return client.full_name != message['sender_full_name']
# Return True if we want to (possibly) response to this message.
original_content = message['content'] original_content = message['content']
is_giphy_called = (original_content.startswith('@giphy ') or is_giphy_called = (original_content.startswith('@giphy ') or
message['is_mentioned']) message['is_mentioned'])

View file

@ -40,8 +40,6 @@ class GitHubHandler(object):
''' '''
def triage_message(self, message, client): def triage_message(self, message, client):
# return True iff we want to (possibly) response to this message
original_content = message['content'] original_content = message['content']
is_comment = (original_content.startswith('@comment') or is_comment = (original_content.startswith('@comment') or

View file

@ -46,7 +46,6 @@ class IssueHandler(object):
''' '''
def triage_message(self, message, client): def triage_message(self, message, client):
# return True if we want to (possibly) respond to this message
original_content = message['content'] original_content = message['content']
# This next line of code is defensive, as we # This next line of code is defensive, as we
# never want to get into an infinite loop of posting follow # never want to get into an infinite loop of posting follow

View file

@ -114,7 +114,6 @@ class JohnHandler(object):
''' '''
def triage_message(self, message, client): def triage_message(self, message, client):
# return True if we want to (possibly) response to this message
original_content = message['content'].lower() original_content = message['content'].lower()
return (original_content.startswith("@john") or return (original_content.startswith("@john") or
original_content.startswith("@**john**")) original_content.startswith("@**john**"))

View file

@ -59,8 +59,6 @@ class ThesaurusHandler(object):
''' '''
def triage_message(self, message, client): def triage_message(self, message, client):
# return True if we want to (possibly) respond to this message
original_content = message['content'] original_content = message['content']
is_thesaurus = (original_content.startswith('@synonym') or is_thesaurus = (original_content.startswith('@synonym') or

View file

@ -275,7 +275,6 @@ class ticTacToeHandler(object):
''' '''
def triage_message(self, message, client): def triage_message(self, message, client):
# return True if we want to (possibly) response to this message
original_content = message['content'] original_content = message['content']
is_tictactoe = (original_content.startswith('@tictactoe') or is_tictactoe = (original_content.startswith('@tictactoe') or
original_content.startswith('@ttt')) original_content.startswith('@ttt'))

View file

@ -8,7 +8,6 @@ class VirtualFsHandler(object):
return get_help() return get_help()
def triage_message(self, message, client): def triage_message(self, message, client):
# return True iff we want to (possibly) response to this message
if message['type'] != 'stream': if message['type'] != 'stream':
return False return False

View file

@ -28,8 +28,6 @@ class WikipediaHandler(object):
''' '''
def triage_message(self, message, client): def triage_message(self, message, client):
# return True iff we want to (possibly) response to this message
original_content = message['content'] original_content = message['content']
# This next line of code is defensive, as we # This next line of code is defensive, as we

View file

@ -28,7 +28,6 @@ class XkcdHandler(object):
''' '''
def triage_message(self, message, client): def triage_message(self, message, client):
# Return True if we want to (possibly) response to this message
original_content = message['content'] original_content = message['content']
is_xkcd_called = original_content.startswith('@xkcd ') is_xkcd_called = original_content.startswith('@xkcd ')
is_xkcd_called_without_command = original_content == '@xkcd' is_xkcd_called_without_command = original_content == '@xkcd'

View file

@ -64,8 +64,6 @@ class YodaSpeakHandler(object):
''' '''
def triage_message(self, message): def triage_message(self, message):
# return True iff we want to (possibly) response to this message
original_content = message['content'] original_content = message['content']
return original_content.startswith('@yoda') return original_content.startswith('@yoda')