Remove superfluous comment in triage_message(). (#3291)
This commit is contained in:
		
							parent
							
								
									e104225a2c
								
							
						
					
					
						commit
						a7f3b4d1d1
					
				
					 13 changed files with 0 additions and 18 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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']) | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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**")) | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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')) | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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' | ||||
|  |  | |||
|  | @ -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') | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Robert Hönig
						Robert Hönig