progapandist / coordinator-bot

A tutorial that builds a simple bot for Facebook Messenger with Ruby and Sinatra
16 stars 6 forks source link

Error Launching bot at master branch #4

Closed axisepm closed 6 years ago

axisepm commented 6 years ago

Hi there!

It seems there is a bug with the current code at Master: whenever I try to launch the code I get the following error: ~/coordinator-bot$ rackup -p 5000

/home/seba/coordinator-bot/persistent_menu.rb:4:in enable': uninitialized constant Facebook::Messenger::Thread (NameError) Did you mean? Thread from /home/seba/coordinator-bot/bot.rb:12:in<top (required)>' from /home/seba/coordinator-bot/config.ru:2:in require_relative' from /home/seba/coordinator-bot/config.ru:2:inblock in

' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in instance_eval' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:55:ininitialize' from /home/seba/coordinator-bot/config.ru:in new' from /home/seba/coordinator-bot/config.ru:in
' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:in eval' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:49:innew_from_string' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/builder.rb:40:in parse_file' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:319:inbuild_app_and_options_from_config' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:219:in app' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:354:inwrapped_app' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:283:in start' from /var/lib/gems/2.3.0/gems/rack-2.0.3/lib/rack/server.rb:148:instart' from /var/lib/gems/2.3.0/gems/rack-2.0.3/bin/rackup:4:in <top (required)>' from /usr/local/bin/rackup:23:inload' from /usr/local/bin/rackup:23:in `
'

Regards, Sebastian

progapandist commented 6 years ago

Hi! This tutorial evolved into a project called Rubotnik, so I advise you to refer to this repo from now on, the README contains all instructions.

axisepm commented 6 years ago

thank you so much!