From a7f3b4d1d1a0affb47e4ee36f21a4861eac8e740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6nig?= Date: Fri, 13 Jan 2017 19:21:45 +0100 Subject: [PATCH] Remove superfluous comment in triage_message(). (#3291) --- contrib_bots/lib/commute_bot.py | 1 - contrib_bots/lib/define_bot.py | 1 - contrib_bots/lib/followup.py | 2 -- contrib_bots/lib/giphy.py | 1 - contrib_bots/lib/git_hub_comment.py | 2 -- contrib_bots/lib/github_issues.py | 1 - contrib_bots/lib/john.py | 1 - contrib_bots/lib/thesaurus.py | 2 -- contrib_bots/lib/tictactoe-bot.py | 1 - contrib_bots/lib/virtual_fs.py | 1 - contrib_bots/lib/wikipedia.py | 2 -- contrib_bots/lib/xkcd.py | 1 - contrib_bots/lib/yoda_bot.py | 2 -- 13 files changed, 18 deletions(-) diff --git a/contrib_bots/lib/commute_bot.py b/contrib_bots/lib/commute_bot.py index cdf03cf..862503b 100644 --- a/contrib_bots/lib/commute_bot.py +++ b/contrib_bots/lib/commute_bot.py @@ -76,7 +76,6 @@ class CommuteHandler(object): ''' def triage_message(self, message, client): - # return True iff we want to (possibly) response to this message original_content = message['content'] # This next line of code is defensive, as we # never want to get into an infinite loop of posting follow diff --git a/contrib_bots/lib/define_bot.py b/contrib_bots/lib/define_bot.py index 269b7fc..30423eb 100644 --- a/contrib_bots/lib/define_bot.py +++ b/contrib_bots/lib/define_bot.py @@ -22,7 +22,6 @@ class DefineHandler(object): ''' def triage_message(DefineHandler, message, client): - # return True if we want to (possibly) response to this message original_content = message['content'] # This next line of code is defensive, as we # never want to get into an infinite loop of posting follow diff --git a/contrib_bots/lib/followup.py b/contrib_bots/lib/followup.py index b5413cd..cfdcf73 100644 --- a/contrib_bots/lib/followup.py +++ b/contrib_bots/lib/followup.py @@ -23,8 +23,6 @@ class FollowupHandler(object): ''' def triage_message(self, message, client): - # return True iff we want to (possibly) response to this message - original_content = message['content'] # This next line of code is defensive, as we diff --git a/contrib_bots/lib/giphy.py b/contrib_bots/lib/giphy.py index 43c2299..89d6518 100644 --- a/contrib_bots/lib/giphy.py +++ b/contrib_bots/lib/giphy.py @@ -39,7 +39,6 @@ class GiphyHandler(object): if message['type'] == 'private': return client.full_name != message['sender_full_name'] - # Return True if we want to (possibly) response to this message. original_content = message['content'] is_giphy_called = (original_content.startswith('@giphy ') or message['is_mentioned']) diff --git a/contrib_bots/lib/git_hub_comment.py b/contrib_bots/lib/git_hub_comment.py index 9fb458f..9cde643 100644 --- a/contrib_bots/lib/git_hub_comment.py +++ b/contrib_bots/lib/git_hub_comment.py @@ -40,8 +40,6 @@ class GitHubHandler(object): ''' def triage_message(self, message, client): - # return True iff we want to (possibly) response to this message - original_content = message['content'] is_comment = (original_content.startswith('@comment') or diff --git a/contrib_bots/lib/github_issues.py b/contrib_bots/lib/github_issues.py index 5e29c4c..4fe3ad8 100644 --- a/contrib_bots/lib/github_issues.py +++ b/contrib_bots/lib/github_issues.py @@ -46,7 +46,6 @@ class IssueHandler(object): ''' def triage_message(self, message, client): - # return True if we want to (possibly) respond to this message original_content = message['content'] # This next line of code is defensive, as we # never want to get into an infinite loop of posting follow diff --git a/contrib_bots/lib/john.py b/contrib_bots/lib/john.py index 2bb5c08..3856c8f 100644 --- a/contrib_bots/lib/john.py +++ b/contrib_bots/lib/john.py @@ -114,7 +114,6 @@ class JohnHandler(object): ''' def triage_message(self, message, client): - # return True if we want to (possibly) response to this message original_content = message['content'].lower() return (original_content.startswith("@john") or original_content.startswith("@**john**")) diff --git a/contrib_bots/lib/thesaurus.py b/contrib_bots/lib/thesaurus.py index dc4983c..e9de297 100644 --- a/contrib_bots/lib/thesaurus.py +++ b/contrib_bots/lib/thesaurus.py @@ -59,8 +59,6 @@ class ThesaurusHandler(object): ''' def triage_message(self, message, client): - # return True if we want to (possibly) respond to this message - original_content = message['content'] is_thesaurus = (original_content.startswith('@synonym') or diff --git a/contrib_bots/lib/tictactoe-bot.py b/contrib_bots/lib/tictactoe-bot.py index ffaef89..0b741a7 100644 --- a/contrib_bots/lib/tictactoe-bot.py +++ b/contrib_bots/lib/tictactoe-bot.py @@ -275,7 +275,6 @@ class ticTacToeHandler(object): ''' def triage_message(self, message, client): - # return True if we want to (possibly) response to this message original_content = message['content'] is_tictactoe = (original_content.startswith('@tictactoe') or original_content.startswith('@ttt')) diff --git a/contrib_bots/lib/virtual_fs.py b/contrib_bots/lib/virtual_fs.py index 911293d..9df542e 100644 --- a/contrib_bots/lib/virtual_fs.py +++ b/contrib_bots/lib/virtual_fs.py @@ -8,7 +8,6 @@ class VirtualFsHandler(object): return get_help() def triage_message(self, message, client): - # return True iff we want to (possibly) response to this message if message['type'] != 'stream': return False diff --git a/contrib_bots/lib/wikipedia.py b/contrib_bots/lib/wikipedia.py index 419b43a..7faaf65 100644 --- a/contrib_bots/lib/wikipedia.py +++ b/contrib_bots/lib/wikipedia.py @@ -28,8 +28,6 @@ class WikipediaHandler(object): ''' def triage_message(self, message, client): - # return True iff we want to (possibly) response to this message - original_content = message['content'] # This next line of code is defensive, as we diff --git a/contrib_bots/lib/xkcd.py b/contrib_bots/lib/xkcd.py index 6bb90a9..1ad9b6c 100644 --- a/contrib_bots/lib/xkcd.py +++ b/contrib_bots/lib/xkcd.py @@ -28,7 +28,6 @@ class XkcdHandler(object): ''' def triage_message(self, message, client): - # Return True if we want to (possibly) response to this message original_content = message['content'] is_xkcd_called = original_content.startswith('@xkcd ') is_xkcd_called_without_command = original_content == '@xkcd' diff --git a/contrib_bots/lib/yoda_bot.py b/contrib_bots/lib/yoda_bot.py index e4c65cd..f54d620 100644 --- a/contrib_bots/lib/yoda_bot.py +++ b/contrib_bots/lib/yoda_bot.py @@ -64,8 +64,6 @@ class YodaSpeakHandler(object): ''' def triage_message(self, message): - # return True iff we want to (possibly) response to this message - original_content = message['content'] return original_content.startswith('@yoda')