Repository navigation
Invoke SlackBot
Start a Slack Bot.
Invoke-SlackBot [[-Token] <String>] [[-LogPath] <String>] [[-PSSlackConfigPath] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Starts a long running script which connects to the Slack API via websockets to listen to and respond to Slack messages.
Invoke-SlackBot
Starts the SlackBot which will look for Token.XML and PSSlackConfig.xml in the parent of the current directory for credentials to the Slack API and config for the PSSlack module.
Your token for connecting to the Slack API.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: (Import-Clixml (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'Token.xml'))
Accept pipeline input: False
Accept wildcard characters: FalseA path where activity logs should be written, default: Logs/SlackBot.log in the current user's profile folder.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: (Join-Path -Path (Join-Path -Path ([Environment]::GetFolderPath('UserProfile')) -ChildPath 'Logs') -ChildPath 'SlackBot.log')
Accept pipeline input: False
Accept wildcard characters: FalsePath to the configuration file for the PSSlack module.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'PSSlackConfig.xml')
Accept pipeline input: False
Accept wildcard characters: False{{Fill ProgressAction Description}}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).