mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-02 15:47:23 +01:00 
			
		
		
		
	Reduce pseudo-AI typing delay
This commit is contained in:
		
							parent
							
								
									b9b0a55b4e
								
							
						
					
					
						commit
						9ff76ad500
					
				@ -274,7 +274,7 @@ sub handle_result {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if ($use_output_queue) {
 | 
			
		||||
      my $delay = (rand 10) + 5;    # initial delay for reading/processing user's message
 | 
			
		||||
      my $delay = (rand 5) + 5;     # initial delay for reading/processing user's message
 | 
			
		||||
      $delay += (length $line) / 7; # additional delay of 7 characters per second typing speed
 | 
			
		||||
      my $message = {
 | 
			
		||||
        nick => $nick, user => $user, host => $host, command => $command,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user