tts command fix
This commit is contained in:
parent
720921b83f
commit
9028b4ae33
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user