forked from dymik739/modular-bot-framework-for-telegram
		
	add new module: pingtools
This commit is contained in:
		
							parent
							
								
									187d990d2b
								
							
						
					
					
						commit
						b5a37acecb
					
				
							
								
								
									
										4
									
								
								modules/pingtools/index.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								modules/pingtools/index.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
text = self.MESSAGE.text
 | 
			
		||||
 | 
			
		||||
if text == "!ping":
 | 
			
		||||
    self.RESPONSE = f"Pong in {time.time() - 7200 - float(self.MESSAGE.date.strftime('+%s'))} seconds"
 | 
			
		||||
							
								
								
									
										6
									
								
								modules/pingtools/meta.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								modules/pingtools/meta.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
    "start_on_boot": true,
 | 
			
		||||
    "alias": "pingtools",
 | 
			
		||||
    "version": 1,
 | 
			
		||||
    "index_file": "index.py"
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user