mertzjames / x1627

MIT License
7 stars 0 forks source link

cache the comment responses #3

Open mertzjames opened 8 years ago

mertzjames commented 8 years ago

Instead of loading the comics from xkcd one by one each time the bot is instantiated, you could cache the responses by using a flat file storage, or database. In this case, I think I prefer the flat file save.

mertzjames commented 8 years ago

One possible solution would be to use YAML with PyYAML. Or you can use the built-in json module as well.