Sign inSign up

spalladino/mvam-chatbot-spike

By spalladino

Updated over 10 years ago

Spike for a telegram chatbot for WFP mVAM food collection surveys

Image
0

542

spalladino/mvam-chatbot-spike repository overview

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:

bin/bot

Tag summary

Content type

Image

Digest

Size

275.2 MB

Last updated

over 10 years ago

docker pull spalladino/mvam-chatbot-spike