From c223fc9036bdcfd014000fe26c56b9d7d175faaa Mon Sep 17 00:00:00 2001 From: gpkvt Date: Wed, 24 Aug 2022 20:35:26 +0200 Subject: [PATCH] WIP: !pick --- tts.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tts.py b/tts.py index ded0fb7..8e5ad20 100644 --- a/tts.py +++ b/tts.py @@ -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 = []