Skip to content

Releases: AlexBurkey/MFAImageBot

Add list functionality

18 Aug 06:35
Compare
Choose a tag to compare

Adding functionality to parse lists of numbers in a line so commands like the following are valid. Also allows for whitespace separated lists or comma separated lists: 1 2 3 or 1,2,3 or 1, 2, 3.

!mfaimagebot <album-link> 2, 3, 42
!mfaimagebot 2, 3, 42

  • Order of the list is preserved: 2, 10, 1 links image 2, then 10, then 1
  • Repeated links are allowed: !mfaimagebot 1, 1, 1, 1 links image 1 four times
  • Being branded as a feature, negative numbers are valid: 0 links the last image in an album, -1 links the 2nd to last, etc.
  • Non-integers are silently ignored: !mfaimagebot notANormalCommandIntput 1, 3, 5.5, 10, <out-of-bounds>, 7, 3 should properly link image 1, then 3, then 10, then print an error for out of bounds, then image 3 again

Remove commands and positional arguments

10 Jul 09:28
072aa47
Compare
Choose a tag to compare

Bot now does not require use of op and link to distinguish between different types of requests. The presence of an imgur link will trigger the correct behavior.

Examples:

!MFAImageBot 12 - Looks in the OP for an Imgur link and comments with a link to image #12 if it's there.

!MFAImageBot 12 <album-link> or !MFAImageBot <album-link> 12 - Attempts to get image #12 from the provided

Bot also can easily run in a local testing environment pointing to a private test subreddit to read comments from and RESPOND set to False.

Initial Stable Version with deployment

10 Jul 08:57
2665e2c
Compare
Choose a tag to compare

First version of the bot with a stable deployment. Includes a run script which redeploys the bot and a script to create a cron job off of which restarts the bot when it dies.

Current version requires commands:

Usage: I respond to comments starting with !MFAImageBot.
!MFAImageBot help: Print this help message.
!MFAImageBot link <album-link> <number>: Attempts to directly link the image from
!MFAImageBot op <number>: Attempts to directly link the image from the album in the submission