fix faulty logic again
This commit is contained in:
		
							parent
							
								
									01bd0ea00b
								
							
						
					
					
						commit
						b3dc852812
					
				
							
								
								
									
										3
									
								
								bot.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								bot.py
									
									
									
									
									
								
							| @ -163,13 +163,12 @@ class IRCBot(): | |||||||
|                         continue |                         continue | ||||||
|                     channel_time = self.check_time(channel) |                     channel_time = self.check_time(channel) | ||||||
|                     now = time() |                     now = time() | ||||||
|                     if self.counter(channel) > messages_within_timeout and now - channel_time > timeout: |                     if self.counter(channel) < messages_within_timeout and now - channel_time > timeout: | ||||||
|                         # self.send("#tildetown", f"i hear activity in {channel}...") |                         # self.send("#tildetown", f"i hear activity in {channel}...") | ||||||
|                         self.send("#bots", f"i hear activity in {channel}...") |                         self.send("#bots", f"i hear activity in {channel}...") | ||||||
|                         self.config["counts"][channel] = 0 |                         self.config["counts"][channel] = 0 | ||||||
|                     self.set_time(channel, now) |                     self.set_time(channel, now) | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| if __name__ == "__main__": | if __name__ == "__main__": | ||||||
|     bot = IRCBot() |     bot = IRCBot() | ||||||
|     try: |     try: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user