lib/chatterbot/skeleton.rb
#
# generate a template file for the specified bot
# @param [Bot] bot object
#
generate a template file for the specified bot
generate a template file for the specified bot
def generate(bot)
        path = File.join(Chatterbot.libdir, "..", "templates", "skeleton.txt")
        src = File.read(path)
        opts = bot.config.to_h.merge({
          :name => bot.botname,
          :timestamp => Time.now
        })
        src % opts
      end
def generate ( bot ) path = File . join ( Chatterbot . libdir , ".." , "templates" , "skeleton.txt" ) src = File . read ( path ) opts = bot . config . to_h . merge ( { :name => bot . botname , :timestamp => Time . now } ) src % opts end
generate a template file for the specified bot
generate a template file for the specified bot
bot
<not_specific>
<not_specific>
None