Skip to content

Latest commit

 

History

History
36 lines (34 loc) · 1.32 KB

README.md

File metadata and controls

36 lines (34 loc) · 1.32 KB

#Tamabotchi This is a Tamagochi-like bot for Facebook messenger. Feed at your own risk.

##Install / Run

  1. Clone the repo git clone https://github.com/dev-labs-bg/tamabotchi
  2. Install libgd BEFORE node install
    • On Debian/Ubuntu sudo apt-get install libgd2-dev
    • On RHEL/CentOS sudo yum install gd-devel
    • On Arch sudo pacman -S gd
    • For more info check out the Github repository
  3. Install the dependencies node install
  4. Install and start mongodb. On Arch:
    1. Install sudo pacman -S mongodb
    2. Start sudo systemctl start mongodb
    3. Autostart (on boot) sudo systemctl enable mongodb
  5. Create a new app from FB's website
  6. Add a config.json file, containing:
    • FB
      • ACCESS_TOKEN
      • VERIFICATION_TOKEN
    • DB
    • BOTKIT_PORT (Port for botkit server, webhook is at /facebook/receive)
    • WEB
      • PORT
      • ROOT_URL
      • PUBLIC_ROOT
    • IMAGE_FONT For help view config.json.sample
  7. Run with node app.js