mirror of
				https://github.com/miaowware/qrm2.git
				synced 2025-10-31 11:20:19 -04:00 
			
		
		
		
	ternary statements, ofc
This commit is contained in:
		
							parent
							
								
									4b6e8db257
								
							
						
					
					
						commit
						eaae8a7ece
					
				| @ -39,9 +39,7 @@ class BaseCog(commands.Cog): | ||||
|     @commands.command(name="ping") | ||||
|     async def _ping(self, ctx: commands.Context): | ||||
|         """Show the current latency to the discord endpoint.""" | ||||
|         content = '' | ||||
|         if random.random() < 0.05: | ||||
|             content = f'<@{ctx.message.author.id}>' | ||||
|         content = ctx.message.author.mention if random.random() < 0.05 else '' | ||||
|         embed = discord.Embed(title="**Pong!**", | ||||
|                               description=f'Current ping is {self.bot.latency*1000:.1f} ms', | ||||
|                               colour=self.gs.colours.neutral, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user