Added RGB Config Controls
This commit is contained in:
parent
7f1c991672
commit
1b317282c5
@ -17,6 +17,7 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta):
|
|||||||
super().__init__(CommandRoll.command, n_args=3, command_type=AbstractCommand.CommandType.TWITCH)
|
super().__init__(CommandRoll.command, n_args=3, command_type=AbstractCommand.CommandType.TWITCH)
|
||||||
|
|
||||||
def do_command(self, bot, twitch_message):
|
def do_command(self, bot, twitch_message):
|
||||||
|
if bot.allow_rgbLightControl == True:
|
||||||
LightModule = lights_module.Lights_Module()
|
LightModule = lights_module.Lights_Module()
|
||||||
LightModule.main()
|
LightModule.main()
|
||||||
print("\nRGB Command Detected!")
|
print("\nRGB Command Detected!")
|
||||||
|
|||||||
@ -11,7 +11,7 @@ test_module: bool = False
|
|||||||
autoJoin_TwitchChannels = ["thecuriousnerd"]
|
autoJoin_TwitchChannels = ["thecuriousnerd"]
|
||||||
whitelisted_TwitchPowerUsers = ["thecuriousnerd"]
|
whitelisted_TwitchPowerUsers = ["thecuriousnerd"]
|
||||||
|
|
||||||
|
#Twitch Module Configs
|
||||||
block_TwitchChannelsMessaging = [""] # Blocks the ability to send messages to twitch channels
|
block_TwitchChannelsMessaging = [""] # Blocks the ability to send messages to twitch channels
|
||||||
blockAll_TwitchChatChannelsMessaging = False # 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
|
blockAll_TTS_URL_Twitch = True
|
||||||
|
|
||||||
|
autoEnabled_Twitch_rgbLightControl = False
|
||||||
|
|
||||||
|
#Discord Module Configs
|
||||||
block_DiscordChannelsMessaging = [""] # Blocks the ability to send messages to Discord channels
|
block_DiscordChannelsMessaging = [""] # Blocks the ability to send messages to Discord channels
|
||||||
blockAll_DiscordChannelsMessaging = False # 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
|
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
|
blockAll_TTS_URL_Discord = True
|
||||||
|
|
||||||
|
autoEnabled_Discord_rgbLightControl = False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
skip_splashScreen = False
|
skip_splashScreen = False
|
||||||
skip_splashScreenClear = False
|
skip_splashScreenClear = False
|
||||||
|
|||||||
@ -39,6 +39,8 @@ class Twitch_Module():
|
|||||||
self.cooldownModule:Cooldown_Module = Cooldown_Module()
|
self.cooldownModule:Cooldown_Module = Cooldown_Module()
|
||||||
self.cooldownModule.setupCooldown("twitchChat", 20, 32)
|
self.cooldownModule.setupCooldown("twitchChat", 20, 32)
|
||||||
|
|
||||||
|
self.allow_rgbLightControl = config.autoEnabled_Twitch_rgbLightControl
|
||||||
|
|
||||||
def join_channel(self, credential: credentials.Twitch_Credential, channel_name:str):
|
def join_channel(self, credential: credentials.Twitch_Credential, channel_name:str):
|
||||||
channel_name = "#" + channel_name
|
channel_name = "#" + channel_name
|
||||||
print("Connecting to Channel: " + channel_name + "...")
|
print("Connecting to Channel: " + channel_name + "...")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user