-
-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Labels
Description
When CommandPrefix is set to '.', it causes the bot to respond to all messages with:
No command found matching [typed message]
Commands prefixed with a period still work though.
Expected Behavior
What should happen is the bot should not respond to any messages except for commands prefixed with a period.
Current Behavior
Currently when CommandPrefix is set to '.' the bot responds to all messages with:
No command found matching [typed message]
Possible Solution
No idea. You mentioned you think that some where
"some message" -match '.'
Is evaluating to $true.
Steps to Reproduce (for bugs)
Here's my bot config:
$botParams = @{
name = 'snipperbot'
BotAdmins = @('anthony')
CommandPrefix = '.'
LogLevel = 'Verbose'
PluginDirectory = 'C:\PoshBot\Plugins'
BackendConfiguration = @{
Name = 'SlackBackend'
token = '<removed for privacy>'
}
}
$botConfig = New-PoshBotConfiguration @botParams
Context
I was simply trying to use a period as the command prefix. Less of a stretch than an exclamation point.
Your Environment
- Module version used: 0.11.0
- Operating System: Windows 10,
- PS version: 5.1.17134.228
Reactions are currently unavailable