crazyoptimist / slack-rails-bot-starter Goto Github PK
View Code? Open in Web Editor NEWSlack Rails Bot Starter
License: MIT License
Slack Rails Bot Starter
License: MIT License
Hiya! I'm getting a weird error (see below). Any ideas on how I could go about debugging it?
(I am using Rails 3.0.1, but I get the same error with Rails 2.7.2)
โ rails s
Traceback (most recent call last):
57: from bin/rails:4:in `<main>'
56: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
55: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
54: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
53: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
52: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
51: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/commands.rb:18:in `<main>'
50: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/command.rb:46:in `invoke'
49: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/command/base.rb:69:in `perform'
48: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
47: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
46: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
45: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:138:in `perform'
44: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:138:in `tap'
43: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:141:in `block in perform'
42: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
41: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
40: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
39: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
38: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
37: from /Users/dharmon/Development/CMM/cipherbot/config/application.rb:20:in `<main>'
36: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler.rb:174:in `require'
35: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:58:in `require'
34: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:58:in `each'
33: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:69:in `block in require'
32: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:69:in `each'
31: from /Users/dharmon/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/bundler/runtime.rb:74:in `block (2 levels) in require'
30: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
29: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
28: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
27: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
26: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
25: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server.rb:13:in `<main>'
24: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
23: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
22: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
21: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
20: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
19: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
18: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api.rb:7:in `<main>'
17: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
16: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
15: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
14: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
13: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
12: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
11: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters.rb:7:in `<main>'
10: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
9: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
8: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
7: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
6: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
5: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
4: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:1:in `<main>'
3: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:2:in `<module:SlackRubyBotServer>'
2: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:3:in `<module:Api>'
1: from /Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:4:in `<module:Presenters>'
/Users/dharmon/.rvm/gems/ruby-2.7.2/gems/slack-ruby-bot-server-1.1.0/lib/slack-ruby-bot-server/api/presenters/team_presenter.rb:13:in `<module:TeamPresenter>': uninitialized constant SlackRubyBotServer::Api::Presenters::TeamPresenter::Boolean (NameError)
This project needs tests and CI. I was debugging #6 and am not sure that what I'm doing isn't breaking everything.
Newer bots can be entirely event based, without any real-time components. Need a feature in slack-ruby-bot-server to make RTM optional (possibly by doing slack-ruby/slack-ruby-bot-server#124) and explain here how to turn on/off various types of integrations.
I'm trying to get this repo set up, but I'm getting stuck on creating the Teams model for the database (I'm using pg
for this). When I run the server and try to add it to a workspace, I get this:
ERROR -- : ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "teams" does not exist
Trying something like rails g model Team
warns me that The name 'Team' is either already used in your application or reserved by Ruby on Rails.
This makes sense, but I'm not sure how to reconcile the two messages. I've never really used Grape, so I imagine I'm just missing something simple. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.