GhostWording / gw-config-apis

this repo contains static json that can live through apis with github management only
0 stars 7 forks source link

Bot actions: changes #21

Closed andreasdieryck closed 6 years ago

andreasdieryck commented 6 years ago

1. How to show a random GIF from a specific list

a. How we do it at the moment

{
  "Type": "Action",
  "Name": "ShowCards",
  "Parameters": {
    "Type": "Gif",
    "Path": "/data/common/giphycontent/hugs.json"
  }
}

b. How we suggest to do it now

{
  "Type": "Action",
  "Name": "ShowGifFromList",
  "Parameters": {
    "Path": "/data/common/giphycontent/hugs.json"
  }
}

2. How to show a random image from a specific theme

a. How we do it at the moment

{
  "Type": "Action",
  "Name": "ShowCards",
  "Parameters": {
    "Type": "Image",
    "Path": "themes/emojiCats"
  }
}

b. How we suggest to do it now

{
  "Type": "Action",
  "Name": "ShowImageFromTheme",
  "Parameters": {
    "Path": "/themes/emojiCats"
  }
}

3. How to show a random card (text+image) from a specific intention

a. How we do it at the moment

{
  "Type": "Action",
  "Name": "ShowCards",
  "Parameters": {
    "Type": "TextImage",
    "Id": "43B296"
  }
}

b. How we suggest to do it now

{
  "Type": "Action",
  "Name": "ShowCardForIntention",
  "Parameters": {
    "IntentionId": "43B296"
  }
}

4. How to show a random text from a specific intention

a. How we do it at the moment

{
  "Type": "Action",
  "Name": "ShowCards",
  "Parameters": {
    "Type": "Text",
    "Id": "43B296"
  }
}

b. How we suggest to do it now

{
  "Type": "Action",
  "Name": "ShowTextForIntention",
  "Parameters": {
    "IntentionId": "43B296"
  }
}