WIP: !pick

This commit is contained in:
gpkvt 2022-08-24 20:35:26 +02:00
parent 3867708acb
commit c223fc9036
1 changed files with 11 additions and 3 deletions

14
tts.py
View File

@ -30,7 +30,6 @@ import random
import logging
import datetime
import webbrowser
import urllib.parse
import urllib.request
from threading import Thread
@ -227,7 +226,11 @@ class IRC:
elif msg.startswith('!version'):
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'):
logging.debug("!dtts command detected")
@ -438,6 +441,11 @@ class IRC:
logging.info('Sending TTS message to raw_queue')
IRC.send_tts_msg(self, msg, tags)
def pick(self, msg):
""" !pick command """
pass
def addquote(self, tags, msg):
""" !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')
sys.tracebacklimit = 3
VERSION = "1.5.0"
VERSION = "1.6.0"
conf = {}
tts_done = []
msg_queue_raw = []