mirror of
https://github.com/thewesker/ebooks_example.git
synced 2025-12-21 21:01:07 -05:00
Remove load_model! method (we use make_model!)
This commit is contained in:
10
Gemfile.lock
10
Gemfile.lock
@@ -3,9 +3,13 @@ GEM
|
||||
specs:
|
||||
addressable (2.3.6)
|
||||
awesome_print (1.6.1)
|
||||
aws_cf_signer (0.1.3)
|
||||
bloomfilter-rb (2.1.1)
|
||||
redis
|
||||
buftok (0.2.0)
|
||||
cloudinary (1.0.81)
|
||||
aws_cf_signer
|
||||
rest-client
|
||||
coderay (1.1.0)
|
||||
dotenv (1.0.2)
|
||||
engtagger (0.2.0)
|
||||
@@ -27,14 +31,19 @@ GEM
|
||||
memoizable (0.4.2)
|
||||
thread_safe (~> 0.3, >= 0.3.1)
|
||||
method_source (0.8.2)
|
||||
mime-types (2.4.3)
|
||||
multipart-post (2.0.0)
|
||||
naught (1.0.0)
|
||||
netrc (0.10.2)
|
||||
oauth (0.4.7)
|
||||
pry (0.10.1)
|
||||
coderay (~> 1.1.0)
|
||||
method_source (~> 0.8.1)
|
||||
slop (~> 3.4)
|
||||
redis (3.2.0)
|
||||
rest-client (1.7.2)
|
||||
mime-types (>= 1.16, < 3.0)
|
||||
netrc (~> 0.7)
|
||||
rufus-scheduler (3.0.9)
|
||||
tzinfo
|
||||
simple_oauth (0.3.1)
|
||||
@@ -69,5 +78,6 @@ PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
cloudinary
|
||||
dotenv
|
||||
twitter_ebooks (= 3.0.7)
|
||||
|
||||
10
bots.rb
10
bots.rb
@@ -225,16 +225,6 @@ class BoodooBot
|
||||
text = obscure_curses(text)
|
||||
super(ev, text, opts)
|
||||
end
|
||||
|
||||
private
|
||||
def load_model!
|
||||
return if @model
|
||||
|
||||
@model_path ||= "model/#{original}.model"
|
||||
|
||||
log "Loading model #{model_path}"
|
||||
@model = Ebooks::Model.load(model_path)
|
||||
end
|
||||
end
|
||||
|
||||
BoodooBot.new(SETTINGS['BOT_NAME']) do |bot|
|
||||
|
||||
Reference in New Issue
Block a user