mirror of
				https://gitlab.com/gpvkt/twitchtts.git
				synced 2025-10-31 17:17:35 +01:00 
			
		
		
		
	Added --version parameter
This commit is contained in:
		
							parent
							
								
									5632eb6925
								
							
						
					
					
						commit
						5060d2a790
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		
							
								
								
									
										6
									
								
								tts.py
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								tts.py
									
										
									
									
									
								
							|  | @ -575,6 +575,12 @@ msg_queue = {} | ||||||
| logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(module)s %(threadName)s %(levelname)s: %(message)s') | logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(module)s %(threadName)s %(levelname)s: %(message)s') | ||||||
| sys.tracebacklimit = 0 | sys.tracebacklimit = 0 | ||||||
| 
 | 
 | ||||||
|  | if sys.argv[1:]: | ||||||
|  |     if sys.argv[1] == "--version": | ||||||
|  |         print('Simple TTS Bot') | ||||||
|  |         print('Version 1.1.0') | ||||||
|  |         sys.exit(1) | ||||||
|  | 
 | ||||||
| def main(): | def main(): | ||||||
|     """Main loop""" |     """Main loop""" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue