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
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