Twitter: force timeline check to wait 5 minutes (for channel joins and antispam)
This commit is contained in:
		
							parent
							
								
									8a7660380b
								
							
						
					
					
						commit
						d41d8ed0c9
					
				@ -65,7 +65,8 @@ class Twitter(Module):
 | 
				
			|||||||
        self.client = oauth.Client(self.consumer)
 | 
					        self.client = oauth.Client(self.consumer)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # settings
 | 
					        # settings
 | 
				
			||||||
        self.next_timeline_check = 0
 | 
					        # force timeline check to wait 5 minutes (for channel joins and antispam)
 | 
				
			||||||
 | 
					        self.next_timeline_check = time.time() + 300
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # try getting the stored auth tokens and logging in
 | 
					        # try getting the stored auth tokens and logging in
 | 
				
			||||||
        (oauth_token, oauth_token_secret) = self._retrieve_stored_auth_tokens()
 | 
					        (oauth_token, oauth_token_secret) = self._retrieve_stored_auth_tokens()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user