mirror of
				https://gitlab.com/gpvkt/twitchtts.git
				synced 2025-10-31 17:17:35 +01:00 
			
		
		
		
	WIP: !pick
This commit is contained in:
		
							parent
							
								
									1c44257594
								
							
						
					
					
						commit
						a47ea9a2d7
					
				
					 1 changed files with 11 additions and 3 deletions
				
			
		
							
								
								
									
										14
									
								
								tts.py
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								tts.py
									
										
									
									
									
								
							|  | @ -30,7 +30,6 @@ import random | ||||||
| import logging | import logging | ||||||
| import datetime | import datetime | ||||||
| import webbrowser | import webbrowser | ||||||
| import urllib.parse |  | ||||||
| import urllib.request | import urllib.request | ||||||
| 
 | 
 | ||||||
| from threading import Thread | from threading import Thread | ||||||
|  | @ -227,7 +226,11 @@ class IRC: | ||||||
| 
 | 
 | ||||||
|             elif msg.startswith('!version'): |             elif msg.startswith('!version'): | ||||||
|                 logging.debug("!version command detected") |                 logging.debug("!version command detected") | ||||||
|                 self.sendmsg(conf['IRC_CHANNEL'], "/w @"+str(user), VERSION) |                 self.sendmsg(conf['IRC_CHANNEL'], "@"+str(user), VERSION) | ||||||
|  | 
 | ||||||
|  |             elif msg.startswith('!pick'): | ||||||
|  |                 logging.debug("!pick command detected") | ||||||
|  |                 self.Commands.pick(self, msg) | ||||||
| 
 | 
 | ||||||
|             elif msg.startswith('!dtts'): |             elif msg.startswith('!dtts'): | ||||||
|                 logging.debug("!dtts command detected") |                 logging.debug("!dtts command detected") | ||||||
|  | @ -438,6 +441,11 @@ class IRC: | ||||||
|                 logging.info('Sending TTS message to raw_queue') |                 logging.info('Sending TTS message to raw_queue') | ||||||
|                 IRC.send_tts_msg(self, msg, tags) |                 IRC.send_tts_msg(self, msg, tags) | ||||||
| 
 | 
 | ||||||
|  |         def pick(self, msg): | ||||||
|  |             """ !pick command """ | ||||||
|  | 
 | ||||||
|  |             pass | ||||||
|  | 
 | ||||||
|         def addquote(self, tags, msg): |         def addquote(self, tags, msg): | ||||||
|             """ !addquote command |             """ !addquote command | ||||||
| 
 | 
 | ||||||
|  | @ -1204,7 +1212,7 @@ if __name__ == "__main__": | ||||||
|     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 = 3 |     sys.tracebacklimit = 3 | ||||||
| 
 | 
 | ||||||
|     VERSION = "1.5.0" |     VERSION = "1.6.0" | ||||||
|     conf = {} |     conf = {} | ||||||
|     tts_done = [] |     tts_done = [] | ||||||
|     msg_queue_raw = [] |     msg_queue_raw = [] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue