WFP mVAM food security survey chatbot
Spike for a Telegram chatbot for running food security surveys for WFP mVAM. Powered by Pandorabots. Uses the Ruby Telegram Bot boilerplate.
Running the bot
First you need to install gems required to start a bot:
Then you need to create
secrets.yml where your bot unique token will be stored and
database.yml where database credentials will be stored. I've already created samples for you, so you can easily do:
cp config/database.yml.sample config/database.yml cp config/secrets.yml.sample config/secrets.yml
Alternatively, you can set the equivalent environment variables for secrets (in all caps) and
DATABASE_URL for connecting to the DB.
After this you need to create and migrate your database:
rake db:create db:migrate
Great! Now you can easily start your bot just by running this command: