rikai / Showbot

🤖 An omnipresent multi-platform bot who's goal in life is become Skynet 🤖
MIT License
40 stars 18 forks source link

Don't fail if quotes file does not exist. #65

Closed rikai closed 8 years ago

rikai commented 8 years ago

Currently the bot fails to start if there's no quotes.yml.

Instead,we should either create a skeleton file if none exists or just not create a file until a quote is added.

ObserverHerb commented 8 years ago

Anybody running with this one? If not, I'll knock it out for my first crack at things.

ObserverHerb commented 8 years ago

What kind of skeleton file are you looking for here? One with actual values like quotes.yml.example or just an empty file (as if we just did touch quotes.yml) perhaps with a comment in it explaining what to do with it?

s0ph0s-dog commented 8 years ago

I introduced this bug, but I've gotten significantly busier lately and have very little time to fiddle with this. Go ahead and take it!

s0ph0s-dog commented 8 years ago

@herbmillerjr Copying quotes.yml.example sounds like a great solution, but what happens if that file doesn't exist? It might be better to just create a blank YAML file to store stuff in.

ObserverHerb commented 8 years ago

Mmm... actually I was just making a comparison to the example file, not suggesting copying it (for that very reason). Okay, blank it is.

rikai commented 8 years ago

Fixed by #69