fix typo
This commit is contained in:
		
							parent
							
								
									8adff14dbb
								
							
						
					
					
						commit
						2d337313f2
					
				| @ -19,7 +19,7 @@ def build_output(rolls, modifier): | |||||||
| 
 | 
 | ||||||
| @pinhook.plugin.register('!roll') | @pinhook.plugin.register('!roll') | ||||||
| def roll(msg): | def roll(msg): | ||||||
|     matches = dicepatern.match(msg.arg) |     matches = dicepattern.match(msg.arg) | ||||||
|     if matches: |     if matches: | ||||||
|         msg.logger.info('Valid dice roll: {}'.format(msg.arg)) |         msg.logger.info('Valid dice roll: {}'.format(msg.arg)) | ||||||
|         rolls = [random.randrange(1, int(matches.group('sides'))+1) for i in range(int(matches.group('amount')))] |         rolls = [random.randrange(1, int(matches.group('sides'))+1) for i in range(int(matches.group('amount')))] | ||||||
|  | |||||||
| @ -19,7 +19,7 @@ def build_output(rolls, modifier): | |||||||
| 
 | 
 | ||||||
| @pinhook.plugin.register('!roll') | @pinhook.plugin.register('!roll') | ||||||
| def roll(msg): | def roll(msg): | ||||||
|     matches = dicepatern.match(msg.arg) |     matches = dicepattern.match(msg.arg) | ||||||
|     if matches: |     if matches: | ||||||
|         msg.logger.info('Valid dice roll: {}'.format(msg.arg)) |         msg.logger.info('Valid dice roll: {}'.format(msg.arg)) | ||||||
|         rolls = [random.randrange(1, int(matches.group('sides'))+1) for i in range(int(matches.group('amount')))] |         rolls = [random.randrange(1, int(matches.group('sides'))+1) for i in range(int(matches.group('amount')))] | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user