ZuraGuerra / polibot

Text adventure FB bot // Games and Politics game jam // 1st place winner

Home Page:https://goethejam002.itch.io/the-assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polibot

Add Get Started button

curl -X POST -H "Content-Type: application/json" -d '{
  "setting_type":"call_to_actions",
  "thread_state":"new_thread",
  "call_to_actions":[
    {
      "payload":"Let\'s run for presidency!"
    }
  ]
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_TOKEN"

Add Greeting message

curl -X POST -H "Content-Type: application/json" -d '{
  "setting_type":"greeting",
  "greeting":{
    "text":"Hello! I'm your new campaign assistant. Are you ready to run for the presidency?"
  }
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_ACCESS_TOKEN"

Persistent menu

curl -X POST -H "Content-Type: application/json" -d '{
  "setting_type" : "call_to_actions",
  "thread_state" : "existing_thread",
  "call_to_actions":[
    {
      "type":"postback",
      "title":"Reset game",
      "payload":"Reset"
    }
  ]
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_ACCESS_TOKEN"    

About

Text adventure FB bot // Games and Politics game jam // 1st place winner

https://goethejam002.itch.io/the-assistant


Languages

Language:Elixir 55.2%Language:JavaScript 42.6%Language:HTML 2.2%