mirror of
				https://github.com/NohamR/TransmissionBot.git
				synced 2025-10-31 14:19:30 +00:00 
			
		
		
		
	bugfix
missed some reaction cleanup when you fast-react to print the legend
This commit is contained in:
		
							parent
							
								
									00a05a21c9
								
							
						
					
					
						commit
						d6cd84dbcf
					
				
							
								
								
									
										9
									
								
								bot.py
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								bot.py
									
									
									
									
									
								
							| @ -752,7 +752,10 @@ async def summary(context, *, content="", repeat_msg_key=None): | ||||
| 					async for user in r.users(): | ||||
| 						if user.id in WHITELIST: | ||||
| 							if str(r.emoji) == '📜': | ||||
| 								if repeat_msg_key: | ||||
| 									await msg.clear_reaction('📜') | ||||
| 								else: | ||||
| 									await msg.clear_reactions() | ||||
| 								await legend(context) | ||||
| 								return | ||||
| 							elif str(r.emoji) == '❎': | ||||
| @ -1069,10 +1072,16 @@ async def list_transfers(context, *, content="", repeat_msg_key=None): | ||||
| 		try: | ||||
| 			reaction, user = await client.wait_for('reaction_add', timeout=60.0 if not repeat_msg_key else REPEAT_MSGS[repeat_msg_key]['freq'], check=check) | ||||
| 		except asyncio.TimeoutError: | ||||
| 			if not repeat_msg_key: | ||||
| 				await msg.clear_reactions() | ||||
| 				return | ||||
| 			pass | ||||
| 		else: | ||||
| 			if str(reaction.emoji) == '📜': | ||||
| 				if repeat_msg_key: | ||||
| 					await msg.clear_reaction('📜') | ||||
| 				else: | ||||
| 					await msg.clear_reactions() | ||||
| 				await legend(context) | ||||
| 				return | ||||
| 			elif str(reaction.emoji) == '🖨': | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tim Wilson
						Tim Wilson