Hi, I need to save user_stats to a file and load them at the beginning of the code. So I added a save routine in stats_printer function to save user_stats each config.STATS_PRINT_PERIOD seconds. You can separate this section from stats_printer and make another async function runs each config.STATS_SAVE_PERIOD seconds for example.
Thanks.
Hi, I need to save user_stats to a file and load them at the beginning of the code. So I added a save routine in stats_printer function to save user_stats each config.STATS_PRINT_PERIOD seconds. You can separate this section from stats_printer and make another async function runs each config.STATS_SAVE_PERIOD seconds for example. Thanks.