mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +01:00 
			
		
		
		
	Plugins/Wttr: add observation time to default option
This commit is contained in:
		
							parent
							
								
									87eff496e9
								
							
						
					
					
						commit
						0cf80092a7
					
				@ -158,7 +158,7 @@ sub get_wttr {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (@$options == 1 and $options->[0] eq 'default') {
 | 
			
		||||
        push @$options, 'chances';
 | 
			
		||||
        push @$options, ('chances', 'time');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    foreach my $option (@$order) {
 | 
			
		||||
@ -300,7 +300,7 @@ sub get_wttr {
 | 
			
		||||
 | 
			
		||||
            when ('cloudcover') { $result .= "Cloud cover: $c->{'cloudcover'}%;\n"; }
 | 
			
		||||
 | 
			
		||||
            when ('time') { $result .= "Observation time: $c->{'localObsDateTime'};\n"; }
 | 
			
		||||
            when ('time') { $result .= "Observed: $c->{'localObsDateTime'};\n"; }
 | 
			
		||||
 | 
			
		||||
            when ('location') {
 | 
			
		||||
                if (exists $wttr->{nearest_area}) {
 | 
			
		||||
 | 
			
		||||
@ -25,8 +25,8 @@ use PBot::Imports;
 | 
			
		||||
# These are set by the /misc/update_version script
 | 
			
		||||
use constant {
 | 
			
		||||
    BUILD_NAME     => "PBot",
 | 
			
		||||
    BUILD_REVISION => 4548,
 | 
			
		||||
    BUILD_DATE     => "2022-06-29",
 | 
			
		||||
    BUILD_REVISION => 4549,
 | 
			
		||||
    BUILD_DATE     => "2022-07-03",
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
sub initialize {}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user