Open mertzjames opened 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.
One possible solution would be to use YAML with PyYAML. Or you can use the built-in json module as well.
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.