Initialises the cached inventory, retrieves data from the server. :param bot: Instance of the bot. :type bot: pokemongo_bot.PokemonGoBot :return: Nothing. :rtype: None
(bot)
| 1465 | # Only type return have been filled for now. It helps the IDE to suggest methods of the class. |
| 1466 | |
| 1467 | def init_inventory(bot): |
| 1468 | """ |
| 1469 | Initialises the cached inventory, retrieves data from the server. |
| 1470 | :param bot: Instance of the bot. |
| 1471 | :type bot: pokemongo_bot.PokemonGoBot |
| 1472 | :return: Nothing. |
| 1473 | :rtype: None |
| 1474 | """ |
| 1475 | global _inventory |
| 1476 | _inventory = Inventory(bot) |
| 1477 | |
| 1478 | |
| 1479 | def refresh_inventory(data=None): |