`
{"DataTime":"2017-09-09
18:13:57Z","Class":"SlackBackend","Method":"AddReaction","Severity":"Error","LogLevel":"Info","Message":"Error adding
reaction to message","Data":{"ok":false,"error":"no_item_specified"}}
At line:6 char:9
Create a function that should fire upon an event being triggered. Example:
`
function WelcomeUserToRoom {
[PoshBot.BotCommand(
Command = $false,
TriggerType = 'event',
MessageType = 'PinAdded'
)]
[cmdletbinding()]
param(
[parameter(ValueFromRemainingArguments)]
$Dummy
)
Write-Output 'YO YO YO'
}
`
Trigger the function with the event (in the above case, pin a post).
The error will be triggered
Context
Event-based functions does not appear to function.
Expected Behavior
Should not error out.
Current Behavior
` {"DataTime":"2017-09-09 18:13:57Z","Class":"SlackBackend","Method":"AddReaction","Severity":"Error","LogLevel":"Info","Message":"Error adding reaction to message","Data":{"ok":false,"error":"no_item_specified"}} At line:6 char:9
Steps to Reproduce (for bugs)
Create a function that should fire upon an event being triggered. Example: ` function WelcomeUserToRoom { [PoshBot.BotCommand( Command = $false, TriggerType = 'event', MessageType = 'PinAdded' )] [cmdletbinding()] param( [parameter(ValueFromRemainingArguments)] $Dummy )
Write-Output 'YO YO YO' } `
Context
Event-based functions does not appear to function.
Your Environment
Server 2012 R2, WMF 5.1