poshbotio / PoshBot.Dilbert

PoshBot module for retrieving Dilbert comics
MIT License
1 stars 3 forks source link

Adds a -Random switch parameter to return a random comic #4

Closed csandfeld closed 5 years ago

csandfeld commented 5 years ago

Adds a -Random switch parameter to Get-Dilbert. When called with -Random it will return a random comic

Description

When called with the -Random parameter, a random date between now and '1989-04-16' is used when fetching the comit

Related Issue

Adds the functionality requested in #2

Motivation and Context

Not required at all, but nice to be able to get a random comic, similar to what can be done with the XKCD plugin

How Has This Been Tested?

Simple usage test performed running PoshBot 0.11.5 in PowerShell 5.1 on Windows 10, hooked up to a Slack channel.

Screenshots (if appropriate):

Types of changes

Checklist:

csandfeld commented 5 years ago

Sorry about the confusion with the other PR. This one should be good. Please approve or reject as you see fit :-)

devblackops commented 5 years ago

Looks good @csandfeld. Thanks!