When invoking the !dilbert command, a URI with a protocol handler should be posted, and thus the image would be shown.
Example:http://assets.amuniversal.com/8c92b0a0f6940136776e005056a9545d
... or ...
https://assets.amuniversal.com/8c92b0a0f6940136776e005056a9545d
Possible Solution
Looks like the returned HTML source gives a URI without the protocol handler. Add protocol handler if it is missing. Alternatively use the links in the metadate for Twitter or Facebook Open Graph
Steps to Reproduce (for bugs)
Install PoshBot.Dilbert plugin
Invoke !dilbert
Observe posted value
Context
Your Environment
Using Slack backend
Module version used:
PoshBot 0.11.5
PoshBot.Dilbert 1.0.0
Operating System and PowerShell version:
Windows 10 Enterprise Version 1809 (OS Build 17763.316)
Dilbert comic is not shown because the returned URI does not include a
http:
orhttps:
protocol handler.Current Behavior
When invoking the
!dilbert
command, a URI without a protocol handler is posted, and no image is shown.Example:
//assets.amuniversal.com/8c92b0a0f6940136776e005056a9545d
Expected Behavior
When invoking the
!dilbert
command, a URI with a protocol handler should be posted, and thus the image would be shown.Example:
http://assets.amuniversal.com/8c92b0a0f6940136776e005056a9545d
... or ...https://assets.amuniversal.com/8c92b0a0f6940136776e005056a9545d
Possible Solution
Looks like the returned HTML source gives a URI without the protocol handler. Add protocol handler if it is missing. Alternatively use the links in the metadate for Twitter or Facebook Open Graph
Steps to Reproduce (for bugs)
!dilbert
Context
Your Environment
Using Slack backend