diff --git a/README.md b/README.md index 5002e62..be7a2ce 100755 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Run `ebooks new ` to generate a new repository containing a sample bot # This is an example bot definition with event handlers commented out # You can define as many of these as you like; they will run simultaneously -Ebooks::Bot.new("./test") do |bot| +Ebooks::Bot.new("abby_ebooks") do |bot| # Consumer details come from registering an app at https://dev.twitter.com/ # OAuth details can be fetched with https://github.com/marcel/twurl bot.consumer_key = "" # Your app consumer key diff --git a/bin/ebooks b/bin/ebooks index 8f7b7da..e3e726a 100755 --- a/bin/ebooks +++ b/bin/ebooks @@ -15,16 +15,16 @@ module Ebooks exit end - reponame = "./#{reponame}" + path = "./#{reponame}" - if File.exists?(reponame) - log "#{reponame} already exists. Please remove if you want to recreate." + if File.exists?(path) + log "#{path} already exists. Please remove if you want to recreate." exit end - FileUtils.cp_r(SKELETON_PATH, reponame) + FileUtils.cp_r(SKELETON_PATH, path) - File.open(File.join(reponame, 'bots.rb'), 'w') do |f| + File.open(File.join(path, 'bots.rb'), 'w') do |f| template = File.read(File.join(SKELETON_PATH, 'bots.rb')) f.write(template.gsub("{{BOT_NAME}}", reponame)) end