poshbotio / PoshBot.Dilbert

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

Add Random switch to return a random comic #3

Closed csandfeld closed 5 years ago

csandfeld commented 5 years ago

Adds a Random parameter to support returning random comic

Description

Added a switch parameter named Random. When called with this switch, a random date between today and 1989-04-16 will be used to return a comic from that date

Related Issue

This adds the feature requested in issue #2

Motivation and Context

Not required at all, but nice to have same functionality as in the XKCD plugin

How Has This Been Tested?

Performed simple tests using PoshBot 0.11.5 running on Windows 10 with PowerShell 5.1, hooked up to a slack channel

Screenshots (if appropriate):

Types of changes

Checklist:

csandfeld commented 5 years ago

Woops ... committed with wrong user and email configured in git. Will close this PR for now and try to fix that before submitting again.