ajette / DBStewardess

DBSteward's nagging alter ego embodied as a trolling IRC bot. Mostly started as a joke. Still a joke.
1 stars 3 forks source link

Allow regex triggers, custom caption 1, and backreferences in captions, and meme labels #2

Closed austinhyde closed 9 years ago

austinhyde commented 9 years ago

For example:

{
  "memeId": "61579",
  "memeLabel": "one does not simply",
  "memeText1": "one does not simply",
  "memeText2": "$1",
  "memeTrigger": "one does not simply (.*)"
},
{
  "memeId": "563423",
  "memeLabel": "that would be great",
  "memeText1": "$1",
  "memeText2": "$2",
  "memeTrigger": "^(if you (?:could|would) just .*),? (that'd be grea+t)$"
}

Existing memes need to be converted by changing the memeTrigger to "(.*)\\s<old trigger>" and the memeText1 to "$1"

austinhyde commented 9 years ago

This closes issue #1