tts command fix

This commit is contained in:
Alex Orid 2021-04-29 19:32:36 -04:00
parent 720921b83f
commit 9028b4ae33
3 changed files with 28 additions and 7 deletions

View File

@ -76,7 +76,7 @@ class ChannelReward_Hydration(AbstractChannelRewards, metaclass=ABCMeta):
pass
def get_Phrase(self, defaultRewardPrompt,
phrases = ["I demand you drink at once!", "I reccomend you drink some water uwu!", "Get a bucket and a mop cuz you need hydration!", "Hi, I think you look dehydrated, so go get some water!"]):
phrases = ["I demand you drink at once!", "I reccomend you drink some water oowu!", "Get a bucket and a mop cuz you need hydration!", "Hi, I think you look dehydrated, so go get some water!", "Thirsty streamer needs some water!"]):
phrases.append(defaultRewardPrompt)
totalPhrases = len(phrases) - 1

View File

@ -8,6 +8,8 @@ import requests
import config
import discord
import os
import praxis_logging
praxis_logger_obj = praxis_logging.praxis_logger()
@ -27,14 +29,32 @@ class Command_tts_v2(AbstractCommand, metaclass=ABCMeta):
self.isCommandEnabled = True
def do_command(self, source = AbstractCommand.CommandSource.default, user:str = "User", command = "", rest = "", bonusData = None):
returnString = ""
returnString = user + " sent a tts command!"
praxis_logger_obj.log("\n Command>: " + command + rest)
for name in config.allowedCommandsList_TwitchPowerUsers:
print(name)
tempName = user.lower()
if name == tempName:
self.send_TTS(user, rest)
if "Twitch" in source:
for name in config.allowedTTS_List:
print(name)
tempName = user.lower()
if name == tempName:
self.send_TTS(user, rest)
elif "Discord" in source:
for name in config.allowedTTS_List:
print(name)
tempName = user.lower()
if name == tempName:
self.send_TTS(user, rest)
else:
returnString = self.send_TTS(user, rest)
#for name in config.allowedCommandsList_TwitchPowerUsers:
#print(name)
#tempName = user.lower()
#if name == tempName:
#self.send_TTS(user, rest)
return returnString

View File

@ -12,6 +12,7 @@ user_module: bool = True
autoJoin_TwitchChannel = "thecuriousnerd"
autoJoin_TwitchChannels = ["thecuriousnerd"]
allowedCommandsList_TwitchPowerUsers = ["thecuriousnerd", "lakotor", "blastofcynicism"]
allowedTTS_List = ["thecuriousnerd", "lakotor", "blastofcynicism", "<@76078763984551936>"]
#Twitch Module Configs
block_TwitchChannelsMessaging = [""] # Blocks the ability to send messages to twitch channels