Add error message if you tweet from nonexistent bot
This commit is contained in:
		
							parent
							
								
									aed6787706
								
							
						
					
					
						commit
						50daa5ab03
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -264,6 +264,10 @@ STR | ||||||
|     model = Ebooks::Model.load(modelpath) |     model = Ebooks::Model.load(modelpath) | ||||||
|     statement = model.make_statement |     statement = model.make_statement | ||||||
|     bot = Ebooks::Bot.get(botname) |     bot = Ebooks::Bot.get(botname) | ||||||
|  |     if bot.nil? | ||||||
|  |       log "No such bot configured in bots.rb: #{botname}" | ||||||
|  |       exit 1 | ||||||
|  |     end | ||||||
|     bot.configure |     bot.configure | ||||||
|     bot.tweet(statement) |     bot.tweet(statement) | ||||||
|   end |   end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jaiden Mispy
						Jaiden Mispy