diff --git a/channel_rewards/implemented/ChannelReward_Hydration.py b/channel_rewards/implemented/ChannelReward_Hydration.py index 7579170..9d932b3 100644 --- a/channel_rewards/implemented/ChannelReward_Hydration.py +++ b/channel_rewards/implemented/ChannelReward_Hydration.py @@ -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 diff --git a/commands/implemented/Command_tts_v2.py b/commands/implemented/Command_tts_v2.py index 6d59239..fbbaf86 100644 --- a/commands/implemented/Command_tts_v2.py +++ b/commands/implemented/Command_tts_v2.py @@ -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 diff --git a/config.py b/config.py index 6dc1cc0..efc54bc 100644 --- a/config.py +++ b/config.py @@ -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