Public | Automated Build

Last pushed: 2 years ago
Short Description
Spike for a telegram chatbot for WFP mVAM food collection surveys
Full Description

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:

bundle install

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

Then you need to fill your Telegram bot unique token and your Pandorabots credentials to the secrets.yml file and your database credentials to database.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:

Docker Pull Command
Source Repository