Closed DWOF closed 5 years ago
When setting the channel rules in the configuration it should replace the default rule that allows all commands in all channels
When setting the channel rules in the configuration it merges with the default rule that allows all commands in all channels
$botParams = @{ BackendConfiguration = @{ Name = 'SlackBackend' Token = 'XXXX' } ChannelRules = @( @{ Channel = 'bottestingfactory' IncludeCommands = @('*') ExcludeCommands = @() } ) } $myBotConfig = New-PoshBotConfiguration @botParams $myBotConfig.ChannelRules
Unable to limit commands in slack channels
Thanks @DWOF! Fix merged in.
Expected Behavior
When setting the channel rules in the configuration it should replace the default rule that allows all commands in all channels
Current Behavior
When setting the channel rules in the configuration it merges with the default rule that allows all commands in all channels
Steps to Reproduce (for bugs)
Context
Unable to limit commands in slack channels
Your Environment