Added RGB Config Controls

This commit is contained in:
Alex Orid 2021-04-07 17:36:55 -04:00
parent 7f1c991672
commit 1b317282c5
3 changed files with 31 additions and 23 deletions

View File

@ -17,6 +17,7 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta):
super().__init__(CommandRoll.command, n_args=3, command_type=AbstractCommand.CommandType.TWITCH)
def do_command(self, bot, twitch_message):
if bot.allow_rgbLightControl == True:
LightModule = lights_module.Lights_Module()
LightModule.main()
print("\nRGB Command Detected!")

View File

@ -11,7 +11,7 @@ test_module: bool = False
autoJoin_TwitchChannels = ["thecuriousnerd"]
whitelisted_TwitchPowerUsers = ["thecuriousnerd"]
#Twitch Module Configs
block_TwitchChannelsMessaging = [""] # Blocks the ability to send messages to twitch channels
blockAll_TwitchChatChannelsMessaging = False # Blocks the ability to send messages to twitch channels
@ -23,7 +23,9 @@ forceAll_TwitchChatChannelsTTS = False # forceAll supersedes the blockAll bool a
blockAll_TTS_URL_Twitch = True
autoEnabled_Twitch_rgbLightControl = False
#Discord Module Configs
block_DiscordChannelsMessaging = [""] # Blocks the ability to send messages to Discord channels
blockAll_DiscordChannelsMessaging = False # Blocks the ability to send messages to Discord channels
blockAll_DiscordPrivateMessaging = False # Private Messaging not yet implemented
@ -37,6 +39,9 @@ forceAll_DiscordChatChannelsTTS = False # forceAll supersedes the blockAll bool
blockAll_TTS_URL_Discord = True
autoEnabled_Discord_rgbLightControl = False
skip_splashScreen = False
skip_splashScreenClear = False

View File

@ -39,6 +39,8 @@ class Twitch_Module():
self.cooldownModule:Cooldown_Module = Cooldown_Module()
self.cooldownModule.setupCooldown("twitchChat", 20, 32)
self.allow_rgbLightControl = config.autoEnabled_Twitch_rgbLightControl
def join_channel(self, credential: credentials.Twitch_Credential, channel_name:str):
channel_name = "#" + channel_name
print("Connecting to Channel: " + channel_name + "...")