Open geekdave opened 7 years ago
Is the bot marked online? If so, you need to invite it to the channel.
I'm planning on revamping the deploy documentation and was planning on adding these instructions then. Sorry for the trouble in the internim!
EDIT: Oh, I see you tried PMing the bot. That strikes that theory. Gonna try deploying and seeing if I can find something.
@macobo Thanks for the response! The bot never gets marked online. I've tried both DMing the bot and inviting it to a channel, but since it never comes online I am unsure what the problem is. Anything look suspicious in the logs or screenshots? Thanks again!
Alternatively, I just pushed a few commits that add a bit of logging on connect/disconnect, would appreciate if you could test with that.
Unfortunately there isn't a good update mechanism with heroku button apps though normal heroku deploys would help, as would deleting and recreating the app.
Hey @macobo - Thanks for the tips. I cloned the repo just now, and installed via the heroku command line. I don't seem to see any of the new logging, and the Slack warnings are still there as well :(
Feb 09 11:53:50 cryptic-dusk-50242 app/bot.1: 2017-02-09 19:53:50.697433 I [4:70136728484220] PagerBot -- Starting application -- {:is_admin=>false, :argv=>[]}
Feb 09 11:53:51 cryptic-dusk-50242 app/bot.1: 2017-02-09 19:53:50.752317 I [4:70136728484220] PagerBot::PluginManager -- Loading plugin. -- {:name=>"add_alias", :class=>"PagerBot::Plugins::AddAlias", :config=>{}}
Feb 09 11:53:51 cryptic-dusk-50242 app/bot.1: 2017-02-09 19:53:50.753174 I [4:70136728484220] PagerBot::PluginManager -- Loading plugin. -- {:name=>"reload", :class=>"PagerBot::Plugins::Reload", :config=>{}}
Feb 09 11:53:51 cryptic-dusk-50242 app/bot.1: 2017-02-09 19:53:50.753552 I [4:70136728484220] PagerBot::PluginManager -- Loading plugin. -- {:name=>"schedule_override", :class=>"PagerBot::Plugins::ScheduleOverride", :config=>{}}
Feb 09 11:53:51 cryptic-dusk-50242 app/bot.1: 2017-02-09 19:53:50.754454 I [4:70136728484220] PagerBot::PluginManager -- Loading plugin. -- {:name=>"switch_shift", :class=>"PagerBot::Plugins::SwitchShift", :config=>{}}
Feb 09 11:53:57 cryptic-dusk-50242 app/bot.1: W, [2017-02-09T19:53:57.171772 #4] WARN -- : You are setting a key that conflicts with a built-in method Slack::Messages::Message#presence defined at /app/vendor/bundle/ruby/2.2.0/gems/slack-ruby-client-0.7.8/lib/slack/messages/message.rb:4. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
I do have your latest commits so I'm not sure what's up. Just sent you a hangout invite as well.
The root cause seems to be in: https://github.com/slack-ruby/slack-ruby-client/issues/134
Thanks so much for this project! Looks like exactly what my team needs.
This might be a n00b kind of problem, but I'm unable to get my Slackbot to come online.
I used the Heroku install. Here's what I did so far:
Set up PagerDuty:
Set up Slack:
Set up plugins (I only enabled the ones that didn't require inputs for now):
Deployed by switching off the web app and switching on the bot app.
I can see the bot in Slack but it won't come online:
Here are the logs when I start up the bot:
Hopefully I'm just doing something silly. Thanks again for your work on this!